@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:           #f5f2ec;
  --bg-2:         #ede9e1;
  --bg-3:         #e4dfd5;
  --text:         #2c2a24;
  --text-muted:   #6b6b62;
  --border:       #d8d3c8;

  --dark-bg:      #0f100f;
  --dark-bg-2:    #191c19;
  --dark-bg-3:    #272e27;
  --dark-text:    #edf0e8;
  --dark-muted:   #6b7a6b;
  --dark-border:  #272e27;

  --accent:       #5a8060;
  --accent-2:     #a0687a;
  --neutral:      #6b6b62;

  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width:    1200px;
  --gap:          clamp(1.5rem, 4vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Dark section ---- */
.dark-section { background: var(--dark-bg); color: var(--dark-text); }
.dark-section .eyebrow { color: var(--accent); }
.dark-section p { color: var(--dark-muted); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
p { max-width: 60ch; }
p + p { margin-top: 1rem; }

/* ---- Layout ---- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-header { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-header .eyebrow { margin-bottom: 0.8rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--dark-bg); }
.btn-primary:hover { background: #6a9070; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); transform: translateY(-2px); }
.dark-section .btn-outline { color: var(--dark-text); border-color: var(--dark-border); }
.dark-section .btn-outline:hover { border-color: var(--dark-text); }

/* ---- Divider ---- */
.divider { width: 40px; height: 1px; background: var(--accent); margin: 1.5rem 0; }

/* ---- Tags ---- */
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---- Page hero ---- */
.page-hero {
  padding-top: clamp(4rem, 10vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

/* ---- About page ---- */
.about-hero {
  padding-top: clamp(4rem, 10vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.about-layout {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(3rem, 8vw, 6rem);
}
.about-body h2 { margin-bottom: 1.5rem; }
.about-body p { color: var(--text-muted); }
.sidebar-block { padding: 2rem; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.sidebar-block h4 { margin-bottom: 1.2rem; color: var(--text-muted); }
.sidebar-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li strong { color: var(--text); font-weight: 400; display: block; }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.expertise-item { background: var(--bg); padding: 2rem; }
.expertise-item h4 { margin-bottom: 0.75rem; }
.expertise-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Carousel (image galleries on case pages) ---- */
.drawer-carousel { position: relative; width: 100%; margin-bottom: 2rem; background: var(--bg-2); overflow: hidden; }
.carousel-track { position: relative; width: 100%; }
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(245,242,236,0.8); border: 1px solid var(--border); color: var(--text);
  width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; z-index: 2; transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: rgba(138,170,122,0.15); border-color: var(--accent); }
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }
.carousel-counter {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  font-size: 0.7rem; letter-spacing: 0.12em; color: var(--text-muted);
  background: rgba(245,242,236,0.85); padding: 0.25rem 0.6rem;
}
.carousel-thumbs { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.75rem 0 0.25rem; scrollbar-width: none; }
.carousel-thumbs::-webkit-scrollbar { display: none; }
.carousel-thumb {
  flex-shrink: 0; width: 64px; height: 44px; border: 2px solid transparent;
  background: var(--bg-3); padding: 0; cursor: pointer; overflow: hidden;
  transition: border-color 0.2s, opacity 0.2s; opacity: 0.45;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-thumb:hover { opacity: 0.75; }
.carousel-thumb.active { border-color: var(--accent); opacity: 1; }

/* ---- Video ---- */
.featured-video { padding: clamp(4rem, 8vw, 7rem) 0; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg-3); overflow: hidden;
}
.video-frame-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6; transition: opacity 0.4s ease;
}
.video-frame:hover .video-frame-poster { opacity: 0.45; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; z-index: 2; cursor: pointer; background: none; border: none; padding: 0;
}
.video-play-circle {
  width: 72px; height: 72px; border: 1px solid rgba(44,42,36,0.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.video-play-btn:hover .video-play-circle { background: rgba(138,170,122,0.15); border-color: var(--accent); transform: scale(1.1); }
.video-play-circle svg { width: 20px; height: 20px; fill: var(--text); margin-left: 4px; }
.video-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 1rem;
}
.video-meta-left .eyebrow { margin-bottom: 0.3rem; }
.video-meta-left h4 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.video-meta-right { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .carousel-thumbs { display: none; }
}
