@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #f7f5f2;
  --bg-card: #ffffff;
  --dark: #14121f;
  --dark-soft: #2a2738;
  --accent: #c45d3e;
  --accent-hover: #a84d32;
  --teal: #2d6a6a;
  --muted: #7a7689;
  --line: rgba(20, 18, 31, 0.08);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(20, 18, 31, 0.08);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color 0.25s, opacity 0.25s; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }

p { color: var(--muted); margin: 0 0 1rem; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(196, 93, 62, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--dark);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover { background: var(--dark-soft); color: #fff; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-nav.scrolled {
  background: rgba(247, 245, 242, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-nav .inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-soft);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--dark); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 93, 62, 0.12), transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 106, 106, 0.1), transparent 70%);
  bottom: -60px;
  left: -100px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy p.lead {
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}

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

.hero-visual {
  position: relative;
}

.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}

.hero-float.one { bottom: 30px; left: -30px; }
.hero-float.two { top: 40px; right: -20px; animation-delay: 1.2s; }

.hero-float strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.hero-float small { color: var(--muted); font-size: 0.78rem; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Sections ── */
section { padding: 100px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Services cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(196, 93, 62, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.service-card:nth-child(2) .service-icon { background: rgba(45, 106, 106, 0.12); color: var(--teal); }
.service-card:nth-child(3) .service-icon { background: rgba(20, 18, 31, 0.07); color: var(--dark); }

.service-card h3 { margin-bottom: 10px; }

.service-card p { font-size: 0.92rem; margin: 0; }

/* ── Portfolio grid ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.project-card {
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.35s, box-shadow 0.35s;
}

.project-card.wide { grid-column: span 8; }
.project-card.tall .project-thumb img { height: 420px; }

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-thumb {
  overflow: hidden;
  position: relative;
}

.project-thumb img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-body { padding: 24px 26px 28px; }

.project-body h3 { font-size: 1.35rem; margin-bottom: 6px; }

.project-body p { font-size: 0.88rem; margin: 0; }

/* ── Process timeline ── */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  padding: 28px 24px;
  border-left: 2px solid var(--line);
}

.process-step .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: rgba(196, 93, 62, 0.35);
  line-height: 1;
  margin-bottom: 12px;
}

.process-step h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p { font-size: 0.86rem; margin: 0; }

/* ── Testimonials ── */
.testimonial-section {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 22rem;
  line-height: 1;
  position: absolute;
  top: -40px;
  left: 4%;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}

.testimonial-section h2 { color: #fff; }
.testimonial-section .eyebrow { color: rgba(255,255,255,0.5); }
.testimonial-section p { color: rgba(255,255,255,0.65); }

.testimonial-slider { position: relative; min-height: 220px; }

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-slide blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.92);
  border: none;
  padding: 0;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.testimonial-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-member {
  text-align: center;
}

.team-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 4/5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s, transform 0.4s;
}

.team-member:hover .team-photo img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team-member h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-member span { font-size: 0.82rem; color: var(--accent); }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--teal), #1f4545);
  border-radius: calc(var(--radius) + 6px);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
}

.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,0.75); margin: 8px 0 0; }

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-block {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 38px;
}

.contact-info-block h3 { color: #fff; }

.contact-info-block p { color: rgba(255,255,255,0.6); }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.contact-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 38px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--dark-soft);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  background: var(--bg);
  transition: border-color 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.form-msg.success { display: block; background: #ecfdf5; color: #065f46; }
.form-msg.error { display: block; background: #fef2f2; color: #991b1b; }

/* ── Page header (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  background: linear-gradient(180deg, #edeae4 0%, var(--bg) 100%);
}

.page-hero h1 { max-width: 700px; }
.page-hero p { max-width: 540px; font-size: 1.05rem; }

/* ── Case study ── */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-meta div span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.case-meta div strong { font-size: 0.95rem; }

.case-gallery {
  display: grid;
  gap: 20px;
  margin: 40px 0;
}

.case-gallery img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.case-gallery .full { height: 460px; }
.case-gallery .half-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.case-gallery .half-row img { height: 300px; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-grid .logo { color: #fff; margin-bottom: 14px; display: inline-block; }

.footer-grid p { color: rgba(255,255,255,0.45); font-size: 0.88rem; }

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
  font-weight: 600;
}

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

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ── Cookie bar ── */
#cookieBar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 9999;
  display: none;
  animation: slideUp 0.5s ease;
}

#cookieBar.show { display: block; }

#cookieBar p { color: rgba(255,255,255,0.65); font-size: 0.84rem; margin-bottom: 14px; }

#cookieBar a { color: var(--accent); text-decoration: underline; }

#cookieBar .btn { padding: 10px 22px; font-size: 0.82rem; }

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

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card img { height: 380px; }
  .hero-float { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid .project-card,
  .portfolio-grid .project-card.wide { grid-column: span 6; }
  .process-row { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 30px; }
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-grid img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s, opacity 0.35s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }

  .services-grid,
  .team-grid,
  .process-row { grid-template-columns: 1fr; }

  .portfolio-grid .project-card,
  .portfolio-grid .project-card.wide { grid-column: span 12; }

  .form-row { grid-template-columns: 1fr; }
  .case-gallery .half-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
