@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --ink: #1f1d1a;
  --muted: #676057;
  --line: #e5dfd3;
  --accent: #b59b73;
  --accent-soft: #f0e5d3;
  --ring: rgba(181, 155, 115, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 82% -8%, #ece3d4 0%, transparent 65%),
    radial-gradient(700px 360px at -12% 20%, #f0eadf 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dfceb0;
  color: #14110d;
}

.display {
  font-family: 'Instrument Serif', Georgia, serif;
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 0.95;
}

.glass-nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 253, 248, 0.78);
  border-bottom: 1px solid rgba(229, 223, 211, 0.95);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: '';
  width: 1.4rem;
  height: 1px;
  background: var(--line);
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 253, 247, 0.96));
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(30, 26, 18, 0.09);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 29, 26, 0.2);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #cfc5b4;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(210, 198, 177, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(210, 198, 177, 0.16) 1px, transparent 1px);
  background-size: 36px 36px;
}

.metric {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

.service-card,
.portfolio-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover,
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(31, 29, 26, 0.08);
  border-color: #d2c6b1;
}

.form-control {
  width: 100%;
  border: 1px solid #d8cfbf;
  border-radius: 12px;
  padding: 0.86rem 0.95rem;
  background: #fffdf9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #bfa376;
  box-shadow: 0 0 0 4px var(--ring);
}

#form-success {
  display: none;
}

#form-success.show {
  display: block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .metric {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 0.9rem;
  }
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  gap: 5px;
  z-index: 60;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246, 244, 239, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-family: 'Instrument Serif', Georgia, serif;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav a:nth-child(5) { transition-delay: 0.25s; }

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
}

.mobile-nav a.active {
  color: var(--accent);
}

body.nav-open {
  overflow: hidden;
}

/* Testimonials */
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a443c;
  margin: 0 0 1rem 0;
  font-style: italic;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: #6e665b;
}

.testimonial-card cite strong {
  display: block;
  font-weight: 600;
  color: #3a352f;
  margin-bottom: 0.15rem;
}
