/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f7f8fc;
  --warm-white: #fdfeff;
  --blush: #e8ecf8;
  --terracotta: #1a3aad;
  --terracotta-dark: #122d8a;
  --gold: #b8922a;
  --charcoal: #1c2035;
  --muted: #6b7080;
  --border: #dde1ee;
  --radius: 12px;
  --font-serif: 'Syne', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
p { color: var(--muted); }
em { font-style: normal; color: var(--terracotta); }
a { text-decoration: none; color: inherit; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .75rem;
}

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { color: var(--charcoal); margin-top: .5rem; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  color: var(--charcoal);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  border: 2px solid var(--border);
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(255, 252, 249, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.02em;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--charcoal); }

.btn-nav {
  background: var(--terracotta) !important;
  color: #fff !important;
  padding: .55rem 1.25rem !important;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--terracotta-dark) !important; color: #fff !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--charcoal); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr .8fr;
  min-height: 80vh;
  background: var(--cream);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 2.5rem;
  max-width: 620px;
  margin-left: auto;
}

.hero-logo {
  height: 108px;
  width: auto;
  display: block;
  align-self: center;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--font-sans);
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.55;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-inner { padding: 3rem 1.5rem 2rem; margin: 0; max-width: 100%; }
  .hero-logo { height: 80px; margin-bottom: 1.25rem; }
  .hero-image { height: 280px; }
}

/* ── Services ── */
.services { background: var(--warm-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(44,40,37,.07); }

.service-icon { margin-bottom: 1.25rem; display: flex; align-items: center; }
.service-card h3 { color: var(--charcoal); }
.service-card p { font-size: .9rem; margin-top: .4rem; }

/* ── Clients / Carousel ── */
.clients { background: var(--cream); }

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 28s linear infinite;
  padding: 1rem 0;
}
.carousel-track:hover { animation-play-state: paused; }

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  flex-shrink: 0;
  transition: border-color .2s, opacity .2s;
}
.logo-item:hover { border-color: var(--terracotta); opacity: .85; }
.logo-item img {
  max-height: 64px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  opacity: .9;
  transition: opacity .2s;
}
.logo-item:hover img { opacity: 1; }

/* ── Photos ── */
.photos { background: var(--warm-white); }

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

.photo-grid-item {
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.photo-grid-item:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid-item { height: 160px; }
}

/* ── Testimonials ── */
.testimonials { background: var(--warm-white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blush);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--terracotta);
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--charcoal);
}
.author-title {
  font-size: .8rem;
  color: var(--muted);
}

/* ── About ── */
.about { background: var(--warm-white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .eyebrow { margin-bottom: .75rem; }
.about-text h2 { color: var(--charcoal); margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; line-height: 1.8; }
.about-text .btn-primary { margin-top: .75rem; }

.about-photo-crop {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 380px;
  margin: 0 auto;
}

.about-photo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transform: scale(1.05);
  filter: contrast(1.18) saturate(1.3) brightness(0.91);
}

/* ── Contact ── */
.contact { background: var(--cream); padding: 3rem 0; }

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: .75rem;
}

.contact-detail { text-align: center; }

.contact-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .25rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.contact .section-header { margin-bottom: 1.5rem; }
.contact .section-header h2 { font-size: 2rem; }

.contact-value a {
  color: var(--charcoal);
  transition: color .2s;
}
.contact-value a:hover { color: var(--terracotta); }

/* ── Footer ── */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { color: var(--muted); font-size: .8rem; }
.footer-links a { color: var(--muted); font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--terracotta); }

/* ── Scroll animations ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--warm-white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    z-index: 99;
  }
  .hero { min-height: auto; padding: 4rem 1.5rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { order: -1; }
  .footer-inner { flex-direction: column; text-align: center; }
}
