:root {
  --bg: #0c0c0d;
  --bg-elevated: #141416;
  --surface: #1a1a1d;
  --text: #f4f3ef;
  --text-muted: #a39e96;
  --accent: #c9a962;
  --accent-soft: rgba(201, 169, 98, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 24px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #d4bc6e 0%, #b8943f 100%);
  color: #1a1510;
  box-shadow: 0 10px 40px rgba(201, 169, 98, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 50px rgba(201, 169, 98, 0.35);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(12, 12, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #8a7340 100%);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-mobile-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--bg);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 899;
  border-top: 1px solid var(--border);
}

.nav-mobile-panel.open {
  display: flex;
}

.nav-mobile-panel a {
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3.5rem 0 10rem;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg-elevated) 100%
  );
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 1.2rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Sections */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 50% at 70% 0%,
      rgba(201, 169, 98, 0.12),
      transparent
    ),
    linear-gradient(
      180deg,
      rgba(12, 12, 13, 0.3),
      rgba(12, 12, 13, 0.95)
    ),
    url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  max-width: 14ch;
  margin: 0 0 1.25rem;
}

.hero-tag {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: fadeUp 0.9s var(--ease) forwards;
}

.hero-sub {
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 1.06rem;
  margin-bottom: 2rem;
  animation: fadeUp 1s var(--ease) 0.1s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 1.1s var(--ease) 0.2s forwards;
  opacity: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
}

.stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  margin: 0 0 0.85rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 98, 0.35);
}

.card-image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem 1.65rem 1.75rem;
}

.card-body h3 {
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-card figcaption {
  margin-top: 1rem;
}

.project-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.35s var(--ease);
}

.testimonial-card:hover {
  border-color: rgba(201, 169, 98, 0.3);
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.stars {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.testimonial-quote {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonial-meta strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Forms */
.form-shell {
  max-width: 560px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

label span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(72, 120, 80, 0.2);
  border: 1px solid rgba(120, 180, 130, 0.4);
}

/* Page hero small */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
      180deg,
      rgba(201, 169, 98, 0.06),
      transparent
    ),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 58ch;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.65rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

/* WhatsApp FAB */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 5.75rem;
  z-index: 950;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s var(--ease);
}

.wa-float:hover {
  transform: scale(1.06);
  text-decoration: none;
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1.25rem;
  transform: translateY(110%);
  transition: transform 0.55s var(--ease);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-inner a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-settings-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-settings-panel.open {
  display: flex;
}

.cookie-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 1.75rem;
}

.cookie-modal h3 {
  margin: 0 0 1rem;
}

.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cookie-modal input[type="checkbox"] {
  width: auto;
}

@media (max-width: 920px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .wa-float {
    right: 1rem;
    bottom: 5.25rem;
  }
}
