/* === Variables === */
:root {
  --bg:           #0E0D0B;
  --surface:      #131108;
  --accent:       #C9903A;
  --accent-dim:   rgba(201, 144, 58, 0.1);
  --text:         #EDE8DB;
  --text-muted:   #7A7060;
  --border:       #232018;
  --radius:       5px;
  --max-width:    1100px;
  --nav-h:        64px;
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Nav === */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14, 13, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 2.25rem; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* === Hero === */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero-content {
  padding: 8rem 2rem;
  width: 100%;
}
.hero-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 8vw, 8rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2.25rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.9;
  margin-bottom: 3.25rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0A0900;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
  line-height: 1;
}
.btn:hover { background: #B8822E; }
.btn:active { transform: scale(0.98); }
.btn[data-fs-submit-btn]:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.btn-text:hover { color: var(--text); }

/* === Section label === */
.section-label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 2.75rem;
  display: block;
}

/* === Services === */
.services {
  padding: 8rem 0;
  background: var(--surface);
}
.services-list { }
.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
  cursor: default;
}
.service-item:last-child { border-bottom: 1px solid var(--border); }
.service-item:hover { border-top-color: var(--accent); }
.service-item:hover + .service-item { border-top-color: var(--border); }
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.55;
  align-self: start;
  padding-top: 0.15rem;
  transition: opacity 0.2s;
}
.service-item:hover .service-num { opacity: 1; }
.service-body h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.service-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
}
.service-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-6px, 4px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
.service-item:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* === About === */
.about { padding: 9rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}
.about-statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 1rem;
}
.about-statement em {
  font-style: italic;
  color: var(--accent);
}
.about-right {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-right p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.95;
}

/* === Contact === */
.contact {
  padding: 8rem 0;
  background: var(--surface);
}
.contact-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.75rem);
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 4.5rem;
}
.contact-headline em {
  font-style: italic;
  color: var(--accent);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 6rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-entry {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-entry:first-child { border-top: 1px solid var(--border); }
.contact-entry__label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.contact-entry__value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  word-break: break-all;
}
.contact-entry__value:hover { color: var(--accent); }
.contact-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.55;
  margin-top: 1.5rem;
}

/* === Form === */
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}
.form-row label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-row input,
.form-row textarea {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-muted); opacity: 0.4; }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: rgba(201, 144, 58, 0.04);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.field-error {
  font-size: 0.74rem;
  color: #d46060;
  margin-top: 0.3rem;
  min-height: 1em;
}
.form-success {
  display: none;
  background: var(--accent-dim);
  border: 1px solid rgba(201, 144, 58, 0.25);
  border-radius: var(--radius);
  padding: 0.875rem 1.1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.form-error:not(:empty) {
  background: rgba(212, 96, 96, 0.07);
  border: 1px solid rgba(212, 96, 96, 0.25);
  border-radius: var(--radius);
  padding: 0.875rem 1.1rem;
  color: #d46060;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.45;
  width: 100%;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.is-visible { opacity: 1; transform: none; }

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(14, 13, 11, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-link { display: block; padding: 0.9rem 2rem; font-size: 1rem; }
  .services, .about, .contact { padding: 5rem 0; }
  .hero-content { padding: 5rem 2rem; }
  .service-item { grid-template-columns: 3.25rem 1fr; gap: 1.25rem; }
  .service-arrow { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
