/* ── Tokens ── */
:root {
  --green:      #8a9e7e;
  --green-light:#c8d9be;
  --orange:     #d9896a;
  --orange-light:#f0c4ae;
  --brown:      #8c6a50;
  --brown-light:#c4a882;
  --cream:      #faf7f2;
  --white:      #ffffff;
  --text-dark:  #2e2a25;
  --text-mid:   #5a524a;
  --text-light: #8c8278;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.07);
  --nav-h:   64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-light);
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--brown);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-avatar {
  display: none !important;
  width: 40px;
  height: 40px;
  max-width: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  image-orientation: from-image;
  border: 2px solid var(--green-light);
  flex-shrink: 0;
}

/* ── Shared section layout ── */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
section:first-of-type { padding-top: calc(var(--nav-h) + 4rem); }

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
}
.quote-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--green-light);
}
/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  max-width: 100%;
  background: linear-gradient(135deg, var(--cream) 60%, var(--green-light) 100%);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-text { flex: 1; }
.hero-image {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
}
.hero-photo {
  width: 380px;
  height: 480px;
  object-fit: cover;
  object-position: center 20%;
  image-orientation: from-image;
  border-radius: 200px 200px 160px 160px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--orange); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown-light);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Hero associates ── */
.hero-associates {
  margin-top: 2rem;
}
.associates-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.associates-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.associates-logos {
  display: flex;
  align-items: flex-start;
}
.associate-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.75;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.associate-link:hover { opacity: 1; }
.associate-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 1.25rem;
}
.associate-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-mid);
  text-align: center;
}

/* ── Body links ── */
.body-link {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--brown-light);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.body-link:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

/* ── Approach ── */
.approach-bg {
  background: linear-gradient(315deg, var(--cream) 60%, var(--green-light) 100%);
  width: 100%;
}
#approach {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1100px;
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.approach-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.approach-photo {
  width: 100%;
  max-width: 480px;
  height: 340px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  image-orientation: from-image;
}

/* ── Services ── */
#services { background: var(--cream); }
.services-grid {
  display: grid;
 grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

/* Flip card structure */
.service-card-wrap {
  perspective: 1000px;
  height: 300px;
}
.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.service-card-wrap:hover .service-card-inner,
.service-card-wrap.flipped .service-card-inner {
  transform: rotateY(180deg);
}
.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.75rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.service-card-front {
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}
.service-card-wrap:nth-child(2) .service-card-front { border-top-color: var(--orange); }
.service-card-wrap:nth-child(3) .service-card-front { border-top-color: var(--brown-light); }
.service-card-back {
  background: var(--green);
  box-shadow: var(--shadow);
  transform: rotateY(180deg);
  justify-content: space-between;
}
.service-card-wrap:nth-child(2) .service-card-back { background: var(--orange); }
.service-card-wrap:nth-child(3) .service-card-back { background: var(--brown); }

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}
.service-card-back .service-card-title { color: var(--white); }
.service-card-back p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.service-icon {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
.service-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* Tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-bottom: 2.25rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--green-light);
  color: var(--text-dark);
}
.service-card-wrap:nth-child(2) .tag { background: var(--orange-light); }
.service-card-wrap:nth-child(3) .tag { background: var(--brown-light); }

/* Flip hint */
.flip-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.flip-hint-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flip-hint-text {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
}
.mobile-hint { display: none; }

/* Back card action buttons */
.service-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-back-primary {
  background: var(--white);
  color: var(--green);
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
}
.service-card-wrap:nth-child(2) .btn-back-primary { color: var(--orange); }
.service-card-wrap:nth-child(3) .btn-back-primary { color: var(--brown); }
.btn-back-secondary {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.5);
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
}

/* Mobile: tap to flip, show mobile hint */
@media (hover: none) {
  .desktop-hint { display: none; }
  .mobile-hint { display: inline; }
}

/* ── Testimonials ── */
#testimonials {
  background: var(--green);
  border-radius: var(--radius);
  max-width: 1100px;
  color: var(--white);
}
#testimonials .section-label { color: var(--orange-light); }
#testimonials .section-title { color: var(--white); }

.testimonials-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}
.testimonials-carousel {
  overflow: hidden;
  width: 100%;
}
.testimonials-track {
  display: flex;
  gap: 1.75rem;
  transition: transform 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: grab;
}
.testimonials-track.grabbing { cursor: grabbing; }
.testimonial-card {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(4px);
  flex: 0 0 calc((100% - 3.5rem) / 3);
  min-width: 0;
}
.quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--orange-light);
  margin-bottom: 0.5rem;
}
.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--orange-light);
}
.carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.35); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}
.carousel-mobile-arrows {
  display: none;
}
@media (max-width: 700px) {
  .testimonial-card { flex: 0 0 100%; }
  .carousel-dots { display: none; }
  .carousel-btn-prev, .carousel-btn-next { display: none; }
  .carousel-mobile-arrows {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
  }
}

/* ── Bio ── */
#bio { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.bio-photo-wrap {
  display: flex;
  justify-content: center;
}
.bio-photo-placeholder {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
  border: 6px solid var(--white);
  box-shadow: 0 0 0 3px var(--green-light);
  text-align: center;
  padding: 1rem;
}
.bio-text p { color: var(--text-mid); margin-bottom: 1rem; }

/* ── Blogs ── */
#blogs { background: var(--cream); }
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-thumb {
  height: 215px;
  background: var(--brown-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 500;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card:nth-child(2) .blog-thumb { background: var(--green); }
.blog-card:nth-child(3) .blog-thumb { background: var(--orange); }
.blog-body { padding: 1.5rem; }
.blog-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.blog-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
}
.blog-body p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 1.25rem; }
.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown);
  border-bottom: 1px solid var(--brown-light);
  transition: color 0.2s;
}
.read-more:hover { color: var(--orange); }

/* ── Contact ── */
#contact { background: var(--cream); }
.contact-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--green-light);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: var(--orange);
  color: var(--orange);
}
.contact-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.contact-svg-icon {
  width: 26px;
  height: 26px;
  display: block;
  filter: invert(59%) sepia(20%) saturate(500%) hue-rotate(70deg) brightness(85%);
}
.contact-chip-icon.linkedin-icon {
  background: var(--orange-light);
  color: var(--brown);
}

/* ── Footer ── */
#site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--green-light);
  margin-top: 4rem;
}
/* ── Responsive ── */
@media (max-width: 900px) {
  .approach-grid,
  .bio-grid { grid-template-columns: 1fr; }
  .services-grid,
  .testimonials-grid,
  .blogs-grid { grid-template-columns: 1fr 1fr; }
  .bio-photo-wrap { order: -1; }
}

.hero-image-mobile { display: none; }

@media (max-width: 600px) {
  .services-grid,
  .testimonials-grid,
  .blogs-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-avatar { display: block !important; }
  .hero-inner { flex-direction: column; gap: 1rem; }
  .hero-title { font-size: 2.5rem; }
  .section-label { order: 0; }
  .hero-subtitle { display: none; }
  .hero-image { display: none; }
  .hero-image-mobile { display: flex; justify-content: center; margin: 1rem 0; }
  .hero-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn {
    text-align: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
  }
  .hero-associates { order: 3; }
  .hide-mobile { display: none; }
}
