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

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

:root {
  --paper: #f3ede3;
  --paper-2: #efe4d5;
  --ink: #1f1b18;
  --muted: #5f554d;
  --olive: #5d6a4d;
  --cocoa: #4a382e;
  --accent: #b5835a;
  --blush: #e7b2b9;
  --line: #d7cbbd;
  --shadow: 0 18px 40px rgba(27, 24, 21, 0.12);
  --radius: 18px;
  --header-h: 72px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.65), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.4), transparent 52%),
    repeating-linear-gradient(90deg, rgba(210, 200, 188, 0.25) 0 1px, transparent 1px 120px),
    var(--paper);
  overflow-x: hidden;
}

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

::selection {
  background: rgba(231, 178, 185, 0.45);
  color: var(--cocoa);
}

/* Typography */
.eyebrow {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blush);
  box-shadow: 0 0 0 2px rgba(231, 178, 185, 0.28);
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 .6rem;
  line-height: 1.15;
  color: var(--cocoa);
}

h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 4.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.9rem);
  font-weight: 600;
}

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

ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
li { margin: .3rem 0; }

/* Layout helpers */
.section {
  padding: 4.8rem 1.5rem;
  scroll-margin-top: var(--header-h);
}

.section.alt {
  background: linear-gradient(135deg, rgba(239, 228, 213, 0.7), rgba(231, 178, 185, 0.18));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 237, 227, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  height: var(--header-h);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--cocoa);
  font-weight: 600;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.brand-logo {
  flex-shrink: 0;
  display: block;
}

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

.nav-toggle .bar {
  height: 2px;
  width: 20px;
  background: var(--cocoa);
  display: block;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-link,
.submenu-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.submenu-link:hover { color: var(--cocoa); }

.has-submenu { position: relative; }

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s ease;
}

.submenu-toggle:hover {
  color: var(--cocoa);
}

.submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: .6rem;
  list-style: none;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 10;
}

.submenu a {
  display: block;
  padding: .6rem .75rem;
  border-radius: 10px;
}

.submenu a:hover { background: rgba(181, 131, 90, 0.1); }

/* Hero */
.hero {
  padding: 4.5rem 1.5rem 5.5rem;
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
  align-content: start;
}

.hero-copy p {
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.8rem;
}

.hero-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.detail-title {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: .35rem;
}

.detail-text { margin: 0; font-size: .95rem; }

.media-stack {
  position: relative;
  padding: 0;
}

.media-main {
  border-radius: 0;
  box-shadow: none;
  border: 0;
  border-bottom: 3px solid var(--cocoa);
  width: 90%;
  height: auto;
  margin: 0 auto;
}

.hero-caption {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cocoa);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--cocoa);
  background: var(--cocoa);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .03em;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, letter-spacing .3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 24, 21, 0.25), 0 0 0 3px rgba(231, 178, 185, 0.3);
  letter-spacing: .08em;
}

.btn:active {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--cocoa);
  border-color: rgba(231, 178, 185, 0.8);
}

.btn.ghost:hover {
  background: rgba(231, 178, 185, 0.18);
}

/* Intro section */
.section-intro .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  border-top: 1px solid rgba(74, 56, 46, 0.75);
  border-bottom: 1px solid rgba(231, 178, 185, 0.85);
  padding: 1rem 0;
}

/* ¿Para quién es esta consulta? */
.para-quien {
  background: var(--cream, #f3ede3);
}

.para-quien-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(74, 56, 46, 0.2);
  border-bottom: 1px solid rgba(74, 56, 46, 0.2);
  padding: 2.5rem 0;
}

.para-quien-inner h2 {
  margin-bottom: 1rem;
}

.para-quien-inner > p {
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 1.25rem;
}

.para-quien-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.para-quien-list li {
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent, #e7b2b9);
  text-align: left;
  font-size: 0.97rem;
  background: rgba(255,255,255,0.45);
  border-radius: 0 4px 4px 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes hover-lift {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s ease, transform .4s ease;
}

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

/* Staggered reveal for card grids */
.education-grid .education-card.reveal { transition-delay: 0ms; }
.education-grid .education-card.reveal:nth-child(2) { transition-delay: 40ms; }
.education-grid .education-card.reveal:nth-child(3) { transition-delay: 80ms; }
.education-grid .education-card.reveal:nth-child(4) { transition-delay: 120ms; }

.insights-grid .insight-card.reveal { transition-delay: 0ms; }
.insights-grid .insight-card.reveal:nth-child(2) { transition-delay: 40ms; }
.insights-grid .insight-card.reveal:nth-child(3) { transition-delay: 80ms; }
.insights-grid .insight-card.reveal:nth-child(4) { transition-delay: 120ms; }
.insights-grid .insight-card.reveal:nth-child(5) { transition-delay: 160ms; }
.insights-grid .insight-card.reveal:nth-child(6) { transition-delay: 200ms; }
.insights-grid .insight-card.reveal:nth-child(7) { transition-delay: 240ms; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.service-media img {
  border-radius: var(--radius);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  transition: transform .4s ease, box-shadow .4s ease, filter .4s ease;
}

.service-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(231, 178, 185, 0.28));
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.service-media:hover::after {
  opacity: 0.55;
}

.service-media:hover img {
  transform: scale(1.02);
  box-shadow: 0 24px 48px rgba(27, 24, 21, 0.18);
  filter: saturate(1.05);
}

.service-text h3 {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding: 0.35rem 0;
}

.service-text > .btn {
  margin-top: 1.75rem;
  align-self: flex-start;
}

.section.service.alt .service-media { order: 2; }
.section.service.alt .service-text { order: 1; }

/* Feature */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 2rem;
  align-items: center;
}

.feature-media img {
  border-radius: var(--radius);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}

/* Quote */
.quote {
  text-align: center;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.4rem);
  color: var(--cocoa);
  margin-bottom: .6rem;
}

.quote-credit {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .7rem;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}

.about-specialties {
  width: 100%;
  margin-top: 2.4rem;
}

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(231, 178, 185, 0.2), rgba(255, 255, 255, 0.5));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.marquee-row {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
  will-change: transform;
}

.marquee-row + .marquee-row {
  margin-top: 0.6rem;
}

.marquee-row--secondary {
  display: none;
  animation-duration: 26s;
  animation-direction: reverse;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.2vw + 0.8rem, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cocoa);
}

.marquee-sep {
  color: var(--accent);
  opacity: 0.85;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row {
    animation: none;
    transform: translateX(0);
  }
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.hl-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.hl-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(27, 24, 21, 0.1);
  border-color: var(--blush);
}

.hl-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.hl-icon svg {
  width: 100%;
  height: 100%;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hl-title {
  margin: 0;
  font-weight: 600;
  color: var(--cocoa);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hl-text { margin: 0; font-size: .95rem; }

/* Education */
.education-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(74, 56, 46, 0.75);
  border-bottom: 1px solid rgba(231, 178, 185, 0.85);
  padding: 1rem 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.education-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(27, 24, 21, 0.08);
}

.education-card h3 {
  font-size: 1.35rem;
}

.education-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .9rem;
}

.education-list li {
  display: grid;
  gap: .2rem;
}

.edu-title {
  font-weight: 600;
  color: var(--cocoa);
}

.edu-meta {
  font-size: .92rem;
  color: var(--muted);
}

/* Insights */
.insights-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 26px rgba(27, 24, 21, 0.08);
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .4s ease, border-color .3s ease;
}

.insight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(27, 24, 21, 0.15);
  border-color: var(--blush);
}

/* Flip card animations */
.flip-card {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.insight-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.flip-card.flipped .insight-flip {
  transform: rotateY(180deg);
}

.insight-front,
.insight-back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}

.insight-back {
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
}

.insight-front {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.insight-front img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  flex-shrink: 0;
}

.insight-front .insight-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.insight-front .insight-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.insight-front .insight-body p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

.insight-card:nth-child(1) .insight-front img {
  height: 400px;
}

.insight-back {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  overflow: hidden;
}

.insight-back img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0.2;
  z-index: 1;
  filter: brightness(1) saturate(0.8);
}

.insight-back .insight-body {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(243, 237, 227, 0.99) 0%, rgba(243, 237, 227, 1) 100%);
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding-right: 1.2rem;
}

.insight-back .insight-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cocoa);
  margin: 0;
}

.insight-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.insight-card:nth-child(2) {
  grid-column: span 1;
}

.insight-card:nth-child(3) {
  grid-column: span 1;
}

.insight-card:nth-child(4) {
  grid-column: span 2;
}

.insight-card:nth-child(5) {
  grid-column: span 2;
}

.insight-card:nth-child(6) {
  grid-column: span 1;
}

.insight-card:nth-child(7) {
  grid-column: span 1;
}

.insight-body {
  padding: 1.2rem 1.2rem 1.4rem;
}

.insight-body h3 {
  margin-bottom: .4rem;
}

/* Contact */
.contact-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1.8rem;
  align-items: start;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--cocoa);
  transition: color .3s ease;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease, transform .3s ease;
}

.contact-form select {
  cursor: pointer;
  padding: .75rem .85rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(231, 178, 185, 0.55);
  border-color: var(--blush);
  box-shadow: 0 0 0 4px rgba(231, 178, 185, 0.18);
  transform: translateY(-2px);
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form select:focus + label {
  color: var(--cocoa);
}

.contact-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cocoa);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.contact-data {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.contact-data li {
  margin-bottom: .9rem;
  line-height: 1.6;
}

.contact-data a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-data a:hover {
  text-decoration: underline;
}

.btn-whats {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: background .3s ease;
}

.btn-whats:hover {
  background: #1eaa50;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-links li {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin-bottom: .8rem;
  transition: transform .3s ease;
}

.contact-links li:hover {
  transform: translateX(6px);
}

.contact-links a {
  color: var(--cocoa);
  text-decoration: none;
  transition: color .3s ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-meta a {
  display: inline-block;
  margin-top: .35rem;
  font-size: .9rem;
  color: var(--olive);
  text-decoration: none;
  transition: color .3s ease;
}

.contact-meta a:hover {
  color: var(--accent);
}

.icon-wrap {
  width: 22px;
  height: 22px;
  color: var(--olive);
  transition: transform .3s ease, color .3s ease;
}

.contact-links li:hover .icon-wrap {
  transform: scale(1.2) rotate(-5deg);
  color: var(--accent);
}

.icon { width: 22px; height: 22px; display: block; }

/* Footer */
.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-link {
  font-weight: 700;
  color: var(--cocoa);
  text-decoration: none;
  transition: color .3s ease, opacity .3s ease;
}

.footer-link:hover {
  color: var(--blush);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 0.8rem;
  }
  
  .nav-link,
  .submenu-toggle {
    font-size: .88rem;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .service-grid,
  .feature-grid,
  .about-grid,
  .education-head,
  .insights-head,
  .contact-head,
  .section-intro .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }


  .highlights { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  
  .insight-card:nth-child(1),
  .insight-card:nth-child(2),
  .insight-card:nth-child(3),
  .insight-card:nth-child(4),
  .insight-card:nth-child(5),
  .insight-card:nth-child(6),
  .insight-card:nth-child(7) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .education-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  .insight-card:nth-child(1),
  .insight-card:nth-child(2),
  .insight-card:nth-child(3),
  .insight-card:nth-child(4),
  .insight-card:nth-child(5),
  .insight-card:nth-child(6),
  .insight-card:nth-child(7) {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  
  .brand {
    font-size: 1.05rem;
    max-width: 60%;
    white-space: normal;
    line-height: 1.2;
  }

  .nav-menu {
    position: absolute;
    inset: var(--header-h) 1rem auto 1rem;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 178, 185, 0.16));
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu[data-open="true"] { 
    max-height: 70vh; 
    overflow-y: auto;
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(215, 203, 189, 0.4);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 0.5rem;
    width: 100%;
    text-align: left;
    white-space: normal;
  }
  
  .submenu-toggle {
    width: 100%;
    padding: 1rem 0.5rem;
    text-align: left;
    justify-content: space-between;
  }

  .submenu {
    position: static;
    margin-top: 0;
    margin-bottom: 0.5rem;
    box-shadow: none;
    background: rgba(243, 237, 227, 0.4);
    border: none;
  }
  
  .submenu li {
    border-bottom: 1px solid rgba(215, 203, 189, 0.3);
  }
  
  .submenu li:last-child {
    border-bottom: none;
  }
  
  .submenu a {
    padding: 0.7rem 1rem;
  }
  
  .hero {
    padding: 3rem 1.5rem 4rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-details { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .marquee-row--secondary { display: inline-flex; }
  .marquee-row--secondary {
    border-top: 1px solid var(--cocoa);
    padding-top: 0.6rem;
  }
}
