/* =========================================
   HFP LAW FIRM — GLOBAL STYLESHEET
   ========================================= */

/* 1. VARIABLES */
:root {
  --primary: #842322;
  --primary-dark: #6B1A1A;
  --primary-light: #A83130;
  --off-white: #FAF9F7;
  --ink: #1A1A1A;
  --ink-soft: #3D3D3D;
  --ink-muted: #767676;
  --gold: #C9A84C;
  --warm: #E8E0D4;
  --border: #E0D8CF;
  --section-1: #F5F0EA;
  --section-2: #EEF1F5;
  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --nav-h: 72px;
  --max-w: 1200px;
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--off-white); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
p { color: var(--ink-soft); line-height: 1.75; }

/* 4. LAYOUT */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.section { padding: 6rem 0; }
.pt-nav { padding-top: var(--nav-h); }

/* 5. SECTION LABEL */
.section-label {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.25rem;
}
.section-label::before { content: ''; display: block; width: 1.5rem; height: 2px; background: var(--primary); flex-shrink: 0; }
.section-label.light { color: rgba(255,255,255,0.6); }
.section-label.light::before { background: rgba(255,255,255,0.4); }
.section-label.centered { justify-content: center; display: flex; }

/* 6. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; border-radius: 2px;
  transition: all 0.2s ease; cursor: pointer; white-space: nowrap; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: #fff; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--off-white); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.65rem; }
.btn-lg { padding: 1rem 2rem; font-size: 0.75rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* 7. NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; transition: padding 0.3s;
}
.navbar.scrolled .navbar-inner { padding: 0.75rem 0; }
.navbar-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.navbar-logo img { width: 40px; height: 40px; object-fit: contain; }
.navbar-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; white-space: nowrap; }
@media (max-width: 400px) { .navbar-logo-text { font-size: 1.05rem; } }
.navbar-links { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 900px) { .navbar-links { display: flex; } }
.navbar-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }
.navbar-actions { display: none; align-items: center; gap: 1.25rem; border-left: 1px solid var(--border); padding-left: 1.25rem; }
@media (min-width: 900px) { .navbar-actions { display: flex; } }
.lang-toggle { display: flex; align-items: center; gap: 0.375rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.lang-btn { color: var(--ink-muted); transition: color 0.2s; padding: 2px; }
.lang-btn:hover, .lang-btn.active { color: var(--primary); }
.lang-sep { color: var(--border); font-size: 0.75rem; }
.navbar-cta { flex-shrink: 0; }

/* Mobile nav */
.mobile-nav-top { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 900px) { .mobile-nav-top { display: none; } }
.mobile-lang-toggle { display: flex; align-items: center; gap: 0.375rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.mobile-lang-btn { color: var(--ink-muted); transition: color 0.2s; }
.mobile-lang-btn.active { color: var(--primary); }
.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; padding: 10px; margin-right: -10px; }
.hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%); transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 1.125rem; right: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--ink); border-radius: 2px; z-index: 1001; transition: all 0.2s; }
.mobile-menu-close:hover { background: var(--off-white); border-color: var(--ink-muted); }
.mobile-menu-close svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .mobile-menu-close { display: none; } }
.mobile-menu-links { display: flex; flex-direction: column; gap: 0; }
.mobile-menu-links a {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 500;
  color: var(--ink); padding: 1.25rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu-links a:hover { color: var(--primary); }
.mobile-menu-cta { margin-top: 2rem; }

/* 8. HERO */
.hero {
  background: var(--ink); min-height: 100vh; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 4rem;
  position: relative; overflow: hidden;
}
.hero-bg-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
}
.hero-bg-text span {
  font-family: var(--font-display); font-size: 38vw; font-weight: 700;
  color: rgba(255,255,255,0.03); line-height: 1; transform: rotate(-12deg);
  user-select: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: #fff; margin-bottom: 2rem; line-height: 1.1; }
.hero-desc { color: rgba(255,255,255,0.7); font-size: 1.0625rem; margin-bottom: 2.5rem; max-width: 36rem; }
.hero-btns { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 480px) { .hero-btns { flex-direction: row; flex-wrap: wrap; } }
.hero-trust {
  margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hero-trust-dot { width: 5px; height: 5px; background: rgba(255,255,255,0.2); border-radius: 50%; flex-shrink: 0; }
.hero-image { position: relative; }
.hero-image-wrap {
  position: relative; overflow: hidden; border-radius: 2px;
  aspect-ratio: 4/5;
}
@media (min-width: 1024px) { .hero-image-wrap { aspect-ratio: 1/1; } }
.hero-image-wrap::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
  transform: translate(1.5rem, 1.5rem); z-index: 2; pointer-events: none;
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-wrap-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.55), transparent); z-index: 1; }

/* 9. STATS */
.stats-bar { background: var(--primary); padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }
.stat-item { text-align: center; color: #fff; padding: 1.5rem 0.75rem; position: relative; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 700; color: #fff; margin-bottom: 0.5rem; line-height: 1; }
.stat-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); line-height: 1.4; }
@media (max-width: 767px) { .stat-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.15); } }
@media (min-width: 768px) { .stat-item:not(:nth-child(3n+1)) { border-left: 1px solid rgba(255,255,255,0.15); } }
@media (min-width: 1200px) { .stat-item:not(:nth-child(even)):not(:first-child) { border-left: none; } .stat-item:not(:first-child) { border-left: 1px solid rgba(255,255,255,0.15); } }

/* 10. SERVICE CARDS */
.service-card {
  display: block; background: #fff; padding: 2.5rem;
  border: 1px solid var(--border); transition: all 0.25s ease;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 12px 48px rgba(0,0,0,0.09); transform: translateY(-4px); }
.service-icon {
  width: 56px; height: 56px; background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem; border-radius: 2px; transition: all 0.25s ease; color: var(--ink);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; transition: color 0.2s; }
.service-card:hover h3 { color: var(--primary); }
.service-card-desc { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 2rem; line-height: 1.7; }
.service-card-cta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary); opacity: 0; transform: translateX(-10px); transition: all 0.25s ease;
}
.service-card:hover .service-card-cta { opacity: 1; transform: translateX(0); }
.service-card-cta svg { width: 14px; height: 14px; }

/* 11. NEWS CARDS */
.news-card { background: #fff; padding: 2rem 2.5rem; border: 1px solid var(--border); transition: border-color 0.2s; }
.news-card:hover { border-color: var(--primary); }
.news-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.news-category { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; background: var(--off-white); color: var(--primary); padding: 0.25rem 0.625rem; border-radius: 2px; }
.news-date { display: flex; align-items: center; gap: 0.375rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); }
.news-date svg { width: 12px; height: 12px; }
.news-card h3 { font-size: 1.5rem; margin-bottom: 1rem; transition: color 0.2s; line-height: 1.25; }
.news-card:hover h3 { color: var(--primary); }
.news-card p { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 2rem; }
.news-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); transition: color 0.2s; }
.news-link:hover { color: var(--primary); }
.news-link svg { width: 14px; height: 14px; }

/* 12. GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(132,35,34,0.2); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* 13. TESTIMONIALS */
.testimonial-card { background: #fff; padding: 2rem 2.5rem; border: 1px solid var(--border); position: relative; transition: border-color 0.2s; }
.testimonial-card:hover { border-color: var(--primary); }
.quote-icon { position: absolute; top: 1.75rem; right: 1.75rem; color: rgba(132,35,34,0.07); transition: color 0.2s; }
.testimonial-card:hover .quote-icon { color: rgba(132,35,34,0.14); }
.quote-icon svg { width: 32px; height: 32px; fill: currentColor; }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; }
.stars svg { width: 16px; height: 16px; fill: var(--gold); color: var(--gold); }
.testimonial-text { font-size: 0.9375rem; color: var(--ink-soft); font-style: italic; margin-bottom: 2rem; line-height: 1.75; }
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.author-avatar { width: 40px; height: 40px; background: var(--off-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.author-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.author-role { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-top: 2px; }

/* 14. CTA BANNER */
.cta-banner { background: var(--primary); padding: 6rem 0; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; right: -5%; width: 36rem; height: 36rem; background: rgba(255,255,255,0.05); border-radius: 50%; }
.cta-banner::after { content: ''; position: absolute; bottom: -50%; left: -5%; width: 48rem; height: 48rem; background: rgba(255,255,255,0.04); border-radius: 50%; }
.cta-inner { text-align: center; max-width: 48rem; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; margin-bottom: 1.5rem; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; margin-bottom: 3rem; }
.cta-contact { color: rgba(255,255,255,0.5); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 1.5rem; }

/* 15. FOOTER */
footer, .footer { background: var(--ink); color: #fff; }

/* Top info bar */
.footer-topbar { background: rgba(0,0,0,0.38); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.8rem 0; }
.footer-topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.footer-topbar-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.footer-topbar-brand { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.footer-topbar-reg { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.1); padding: 0.2rem 0.5rem; border-radius: 2px; }
.footer-topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.footer-topbar-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-topbar-item svg { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
.footer-topbar-item:hover { color: rgba(255,255,255,0.85); }
@media (max-width: 767px) { .footer-topbar-left { display: none; } .footer-topbar-inner { justify-content: center; } .footer-topbar-right { gap: 0.875rem; justify-content: center; } }

/* Main body */
.footer-body { padding: 4.5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2.2fr 1.25fr 1.5fr 2fr; gap: 1.75rem; } }

.footer-brand-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.footer-brand-logo img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; flex-shrink: 0; }
.footer-brand-logo span { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: #fff; }
.footer-tagline { font-size: 0.8125rem; color: rgba(255,255,255,0.4); line-height: 1.8; max-width: 20rem; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.45); transition: all 0.22s; border-radius: 2px; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h4 { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; color: var(--gold); margin-bottom: 1.25rem; padding-bottom: 0.625rem; border-bottom: 1px solid rgba(201,168,76,0.18); letter-spacing: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a { font-size: 0.8125rem; color: rgba(255,255,255,0.42); transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; opacity: 0.75; }
.footer-contact-icon svg { width: 14px; height: 14px; }
.footer-contact-text { font-size: 0.8125rem; color: rgba(255,255,255,0.42); line-height: 1.65; transition: color 0.2s; }
.footer-contact-text:hover { color: rgba(255,255,255,0.9); }
.footer-hours-label { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; opacity: 0.85; }
.footer-hours-val { font-size: 0.8125rem; color: rgba(255,255,255,0.42); line-height: 1.6; }

/* Divider + bottom bar */
.footer-divider-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3) 30%, rgba(201,168,76,0.3) 70%, transparent); }
.footer-bottom-wrap { padding: 1.375rem 0; }
.footer-bottom { display: flex; flex-direction: column; gap: 0.375rem; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.28); font-weight: 500; letter-spacing: 0.02em; }

/* 16. FLOATING WHATSAPP */
.floating-wa {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0; transform: scale(0); pointer-events: none;
}
.floating-wa.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.floating-wa:hover { transform: scale(1.1); }
.floating-wa svg { width: 28px; height: 28px; fill: #fff; }
.floating-wa-label {
  position: absolute; right: calc(100% + 0.875rem);
  background: #fff; color: var(--ink); font-size: 0.75rem; font-weight: 700;
  padding: 0.375rem 0.75rem; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12); opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.floating-wa:hover .floating-wa-label { opacity: 1; }

/* 17. PAGE HEADER */
.page-header { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 0; }
.page-header-inner { max-width: 52rem; margin-bottom: 4rem; }
.page-header-inner h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--ink); margin-bottom: 1.5rem; line-height: 1.1; }
.page-header-inner h1.big { font-size: clamp(2.75rem, 6vw, 5rem); }
.page-header-inner .subtitle { font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.75; }

/* 18. SECTION HEADER WITH LINK */
.section-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-header-content { max-width: 40rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
.see-all-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); transition: gap 0.2s; flex-shrink: 0; white-space: nowrap; }
.see-all-link:hover { gap: 1rem; }
.see-all-link svg { width: 16px; height: 16px; }

/* 19. BACK LINK */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); transition: color 0.2s; margin-bottom: 3rem; }
.back-link:hover { color: var(--primary); }
.back-link svg { width: 14px; height: 14px; }
.back-link.light { color: rgba(255,255,255,0.45); }
.back-link.light:hover { color: #fff; }

/* 20. SIDEBAR */
.sidebar-cta { background: var(--ink); padding: 2rem; color: #fff; border-radius: 2px; position: sticky; top: calc(var(--nav-h) + 1.5rem); border-top: 3px solid var(--gold); }
.sidebar-cta h4 { font-family: var(--font-display); font-size: 1.375rem; color: var(--gold); margin-bottom: 1rem; }
.sidebar-cta p { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 1.5rem; line-height: 1.65; }
.sidebar-cta-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 1.5rem 0; padding-top: 1.5rem; }
.sidebar-cta-detail { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.sidebar-cta-val { font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; }
.sidebar-links { background: var(--off-white); padding: 1.5rem; border: 1px solid var(--border); border-radius: 2px; margin-top: 1rem; }
.sidebar-links h5 { font-size: 0.75rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.sidebar-links a { display: block; font-size: 0.875rem; color: var(--ink-soft); transition: color 0.2s; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--primary); }

/* 21. PROSE CONTENT */
.prose h2 { font-size: 1.625rem; color: var(--ink); margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.3125rem; color: var(--ink); margin-top: 2rem; margin-bottom: 0.875rem; }
.prose p { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.25rem; }
.prose .lead { font-size: 1.125rem; color: var(--ink); font-weight: 500; }
.prose ul { margin: 1rem 0 1.5rem; }
.prose ul li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.625rem; font-size: 0.9375rem; color: var(--ink-soft); }
.prose ul li .marker { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.prose section { margin-bottom: 2.5rem; }
.prose .highlight-box { background: rgba(132,35,34,0.05); border: 1px solid rgba(132,35,34,0.2); padding: 1.5rem; margin: 1.25rem 0; }
.prose .info-box { border: 1px solid var(--border); padding: 1.5rem; margin: 1.25rem 0; border-radius: 2px; }
.prose .border-left { border-left: 4px solid var(--primary); padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose .border-left-gold { border-left: 4px solid var(--gold); padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose .border-left h4, .prose .border-left-gold h4 { font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; font-family: var(--font-sans); font-size: 0.9375rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1.25rem 0; }
.prose table thead tr { background: var(--ink); color: #fff; }
.prose table th { padding: 0.75rem 1rem; text-align: left; font-weight: 700; }
.prose table td { padding: 0.75rem 1rem; border: 1px solid var(--border); color: var(--ink-soft); }
.prose table tr:nth-child(even) td { background: var(--off-white); }
.prose .example-box { background: var(--off-white); border: 1px solid var(--border); padding: 1.25rem; }
.prose .cta-block { background: var(--ink); padding: 2rem; color: #fff; border-radius: 2px; margin-top: 2.5rem; }
.prose .cta-block h3 { font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; }
.prose .cta-block p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }

/* 22. TEAM CARD */
.team-card { display: block; background: #fff; border: 1px solid var(--border); padding: 2rem; transition: border-color 0.2s; }
.team-card:hover { border-color: var(--primary); }
.team-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.25; transition: color 0.2s; }
.team-card:hover .team-card-name { color: var(--primary); }
.team-card-role { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); margin-top: 0.25rem; }
.team-card-bio { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.team-card-cta { display: flex; align-items: center; gap: 0.375rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); opacity: 0; transition: opacity 0.2s; }
.team-card:hover .team-card-cta { opacity: 1; }
.team-card-cta svg { width: 12px; height: 12px; }

/* 23. TEAM PROFILE PAGE */
.team-profile-hero { background: var(--ink); padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 5rem; position: relative; overflow: hidden; }
.team-profile-hero-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0.03; pointer-events: none; overflow: hidden; }
.team-profile-hero-bg span { font-family: var(--font-display); font-size: 28vw; font-weight: 700; color: #fff; line-height: 1; user-select: none; }
.team-profile-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: end; position: relative; z-index: 1; }
@media (min-width: 1024px) { .team-profile-grid { grid-template-columns: 1fr 1fr; } }
.team-role-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.375rem; padding-bottom: 0.875rem; position: relative; display: inline-block; }
.team-role-label::after { content: ''; position: absolute; bottom: 0; left: 0; width: 1.75rem; height: 2px; background: var(--gold); opacity: 0.7; }
.team-profile-name { font-size: clamp(2.25rem, 5vw, 3.75rem); color: #fff; margin-bottom: 2rem; }
.team-about-text { color: rgba(255,255,255,0.7); font-size: 1.0625rem; line-height: 1.7; max-width: 32rem; }
.team-hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.team-hero-link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.55); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1rem; transition: all 0.2s; }
.team-hero-link:hover { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.team-hero-link svg { width: 14px; height: 14px; }
.team-profile-photo-wrap { position: relative; max-width: 280px; margin-left: auto; }
@media (max-width: 1023px) { .team-profile-photo-wrap { max-width: 240px; margin: 0 auto; } }
.team-profile-photo-wrap::before { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.1); transform: translate(1rem, 1rem); z-index: 0; pointer-events: none; }
.team-profile-photo-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; position: relative; z-index: 1; }
.team-profile-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.35), transparent); z-index: 2; }
.profile-section { margin-bottom: 4rem; }
.profile-section-title { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 2rem; }
.profile-section-icon { width: 40px; height: 40px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.profile-section-icon svg { width: 20px; height: 20px; }
.profile-section-title h2 { font-size: 1.625rem; color: var(--ink); }
.edu-item { display: flex; gap: 1.25rem; background: var(--off-white); border: 1px solid var(--border); padding: 1.125rem 1.5rem; margin-bottom: 0.75rem; }
.edu-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.edu-degree { font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; font-size: 0.9375rem; }
.edu-inst { font-size: 0.875rem; color: var(--ink-soft); }
.exp-item { display: flex; gap: 0.875rem; align-items: flex-start; margin-bottom: 0.875rem; }
.exp-chevron { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.exp-chevron svg { width: 16px; height: 16px; }
.exp-text { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.7; }
.spec-item { border-left: 4px solid var(--primary); padding-left: 1.5rem; padding-top: 0.125rem; margin-bottom: 1.75rem; }
.spec-title { font-family: var(--font-display); font-size: 1.125rem; color: var(--ink); margin-bottom: 0.5rem; }
.spec-desc { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; }

/* 24. ARTICLE HERO */
.article-hero { position: relative; height: 300px; overflow: hidden; }
@media (min-width: 768px) { .article-hero { height: 420px; } }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.7); }
.article-hero-content { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 2.5rem; }
.article-hero-content h1 { font-size: clamp(1.75rem, 4vw, 3rem); color: #fff; max-width: 48rem; line-height: 1.2; }

/* 25. CONTACT */
.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .contact-info-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-item { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-icon { width: 48px; height: 48px; background: var(--off-white); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.contact-icon svg { width: 24px; height: 24px; }
.contact-item h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.contact-item p, .contact-item a { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.65; }
.contact-item a.link { color: var(--primary); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; transition: text-decoration 0.2s; }
.contact-item a.link:hover { text-decoration: underline; }
.contact-cta-card { background: var(--primary); padding: 3rem; color: #fff; }
.contact-cta-card h3 { font-family: var(--font-display); font-size: 2rem; color: #fff; margin-bottom: 1.5rem; }
.contact-cta-card p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; line-height: 1.7; }
.map-wrap { overflow: hidden; border-radius: 2px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: none; filter: grayscale(1) contrast(1.2); opacity: 0.8; display: block; }
@media (min-width: 1024px) { .map-wrap iframe { min-height: 700px; } }

/* 26. SERVICE DETAIL */
.service-detail-header { max-width: 52rem; margin-bottom: 5rem; }
.service-detail-subtitle { font-size: 1.25rem; color: var(--ink-soft); font-style: italic; line-height: 1.7; border-left: 4px solid var(--primary); padding-left: 2rem; margin-top: 1.5rem; }
.service-items-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.875rem; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.65; }
.service-items-list li::before { content: '·'; color: var(--primary); font-size: 1.5rem; line-height: 0.9; flex-shrink: 0; }
.faq-item { border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 0.875rem; }
.faq-q { font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; font-size: 0.9375rem; }
.faq-a { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-num { font-family: var(--font-display); font-size: 3rem; color: var(--gold); opacity: 0.3; line-height: 1; margin-bottom: 1rem; }
.process-step h4 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.75rem; }
.process-step p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; }

/* 27. VISION/MISSION */
.vm-block { background: var(--primary); padding: 5rem; position: relative; overflow: hidden; }
@media (max-width: 767px) { .vm-block { padding: 3rem 1.5rem; } }
.vm-block::before { content: ''; position: absolute; top: 0; right: 0; width: 18rem; height: 18rem; background: rgba(255,255,255,0.05); border-radius: 50%; transform: translate(50%, -50%); }
.vm-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; position: relative; z-index: 1; }
@media (min-width: 1024px) { .vm-grid { grid-template-columns: 1fr 1fr; } }
.vm-title { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold); margin-bottom: 1.5rem; }
.vm-vision { color: #fff; font-size: 1.25rem; font-style: italic; line-height: 1.7; }
.mission-list li { display: flex; gap: 1rem; color: rgba(255,255,255,0.8); font-size: 0.9375rem; margin-bottom: 1rem; line-height: 1.65; }
.mission-num { color: var(--gold); font-weight: 700; flex-shrink: 0; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-item { text-align: center; }
.value-icon { width: 64px; height: 64px; background: var(--off-white); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--primary); }
.value-icon svg { width: 30px; height: 30px; }
.value-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 0.75rem; }
.value-desc { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; }

/* 28. TRACK RECORD */
.track-main-card { background: #fff; border: 1px solid var(--border); padding: 2.5rem 3rem; transition: border-color 0.2s; }
.track-main-card:hover { border-color: var(--primary); }
.track-main-icon { width: 64px; height: 64px; background: var(--off-white); display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; transition: all 0.2s; }
.track-main-icon svg { width: 32px; height: 32px; }
.track-main-card:hover .track-main-icon { background: var(--primary); color: #fff; }
.track-date { display: flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; }
.track-date svg { width: 14px; height: 14px; }
.track-main-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.track-sm-card { cursor: pointer; }
.track-sm-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 1.5rem; border-radius: 2px; }
.track-sm-img-wrap img { width: 100%; height: 100%; object-fit: contain; background: var(--off-white); transition: transform 0.7s; }
.track-sm-card:hover .track-sm-img-wrap img { transform: scale(1.05); }
.track-sm-img-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.5); display: flex; align-items: flex-end; padding: 1.25rem; }
.track-sm-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; }
.track-sm-icon svg { width: 20px; height: 20px; }
.track-sm-date { display: flex; align-items: center; gap: 0.375rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.75rem; }
.track-sm-date svg { width: 12px; height: 12px; }
.track-sm-card h3 { font-size: 1.375rem; margin-bottom: 1rem; transition: color 0.2s; line-height: 1.25; }
.track-sm-card:hover h3 { color: var(--primary); }
.track-ext-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); transition: color 0.2s; }
.track-ext-link:hover { color: var(--ink); }
.track-ext-link svg { width: 12px; height: 12px; }
.full-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .full-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .full-gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.full-gallery-item { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 2px; }
.full-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.full-gallery-item:hover img { transform: scale(1.1); }
.full-gallery-hover { position: absolute; inset: 0; background: rgba(26,26,26,0.45); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; }
.full-gallery-item:hover .full-gallery-hover { opacity: 1; }
.full-gallery-badge { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,0.35); padding: 0.3rem 0.7rem; }

/* 28b. ARTICLE CARDS */
.article-card { background: #fff; border: 1px solid var(--border); transition: border-color 0.2s; }
.article-card:hover { border-color: var(--primary); }
.article-card > a { display: block; }
.article-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: contain; background: var(--off-white); transition: transform 0.7s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.article-card-badge-ext { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.article-card .article-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin: 2rem 2.5rem 1rem; }
.article-card .article-meta svg { width: 12px; height: 12px; }
.article-card h3 { font-size: 1.375rem; line-height: 1.3; margin: 0 2.5rem 1rem; transition: color 0.2s; }
.article-card:hover h3 { color: var(--primary); }
.article-card p { font-size: 0.875rem; color: var(--ink-soft); margin: 0 2.5rem 1.5rem; }
.article-card .article-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); margin: 0 2.5rem 2.5rem; transition: gap 0.2s; }
.article-card:hover .article-link { gap: 1rem; }
.article-card .article-link svg { width: 14px; height: 14px; }
.newsletter-block { background: var(--ink); padding: 4rem 3rem; text-align: center; margin-top: 4rem; border-radius: 2px; }
.newsletter-icon { width: 64px; height: 64px; background: rgba(201,168,76,0.12); color: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; border-radius: 50%; }
.newsletter-block h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.newsletter-block p { color: rgba(255,255,255,0.7); max-width: 36rem; margin: 0 auto 2rem; }
.newsletter-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.newsletter-links a { display: inline-flex; align-items: center; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,0.25); padding: 0.625rem 1.5rem; transition: all 0.2s; }
.newsletter-links a:hover { border-color: var(--gold); color: var(--gold); }

/* 29. SCROLL ANIMATIONS */
/* Base: always visible (progressive enhancement) */
.fade-up, .fade-in { }
/* JS adds .will-animate only to below-fold elements */
.will-animate { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.will-animate { transform: none; }
.will-animate.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 30. UTILITIES */
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--ink-muted); }
.text-white { color: #fff; }
.text-italic { font-style: italic; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.0625rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-2-1 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .grid-2-1 { grid-template-columns: 2fr 1fr; } }
.grid-3-1 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .grid-3-1 { grid-template-columns: 2fr 1fr; } }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-auto { margin-top: auto; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pl-8 { padding-left: 2rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.sticky { position: sticky; }
.bg-white { background: #fff; }
.bg-off-white { background: var(--off-white); }
.bg-ink { background: var(--ink); }
.bg-primary { background: var(--primary); }
.bg-section-1 { background: var(--section-1); }
.bg-section-2 { background: var(--section-2); }
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.rounded { border-radius: 2px; }
.hidden { display: none !important; }
.block { display: block; }
@media (min-width: 768px) { .md\:grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* =========================================
   32. PHOTO-FORWARD TEAM CARDS
   ========================================= */

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) { .team-photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .team-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 420px)  { .team-photo-grid { grid-template-columns: 1fr; } }

.team-card-photo {
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.team-card-photo:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(0,0,0,0.09);
}

/* Photo */
.tcp-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--off-white);
  flex-shrink: 0;
}
.tcp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.65s ease;
}
.team-card-photo:hover .tcp-img img { transform: scale(1.05); }

/* Initials fallback */
.tcp-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(132,35,34,0.18);
  background: var(--off-white);
}

/* Body */
.tcp-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tcp-role {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.625rem;
}
.tcp-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.875rem;
  transition: color 0.2s;
}
.team-card-photo:hover .tcp-name { color: var(--primary); }
.tcp-bio {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Buttons */
.tcp-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.btn-tcp-profile,
.btn-tcp-consult {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-tcp-profile {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-tcp-profile:hover { background: var(--primary); border-color: var(--primary); }
.btn-tcp-consult {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.btn-tcp-consult:hover { border-color: var(--primary); color: var(--primary); }

/* Mobile */
@media (max-width: 767px) {
  .tcp-body { padding: 1.125rem; }
  .tcp-name { font-size: 1.125rem; }
  .tcp-bio { -webkit-line-clamp: 2; margin-bottom: 1.125rem; font-size: 0.8125rem; }
  .tcp-role { font-size: 0.55rem; }
  .btn-tcp-profile, .btn-tcp-consult { font-size: 0.55rem; padding: 0.625rem 0.75rem; min-height: 40px; }
}
@media (max-width: 420px) {
  .tcp-body { padding: 1.5rem; }
  .tcp-name { font-size: 1.25rem; }
  .tcp-bio { -webkit-line-clamp: 3; }
  .btn-tcp-profile, .btn-tcp-consult { font-size: 0.6rem; min-height: 44px; }
}

/* =========================================
   31. MOBILE ENHANCEMENTS
   ========================================= */

/* Touch devices: always show hover-only CTAs */
@media (hover: none), (pointer: coarse) {
  .service-card-cta { opacity: 1; transform: none; }
  .team-card-cta { opacity: 1; }
  .track-sm-card h3 { color: var(--ink); }
}

/* ── All mobile (< 768px) ── */
@media (max-width: 767px) {

  /* Section vertical rhythm */
  .section { padding: 3.5rem 0; }
  .page-header { padding-top: calc(var(--nav-h) + 1.75rem); }
  .page-header-inner { margin-bottom: 2rem; }
  .page-header-inner h1.big { font-size: clamp(2.25rem, 9vw, 3.25rem); }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 3rem; }
  .hero-grid { gap: 2rem; }
  .hero-image-wrap { aspect-ratio: 4/3; }
  .hero-image-wrap::before { transform: translate(0.75rem, 0.75rem); }
  .hero-trust { margin-top: 2rem; gap: 0.5rem 0.75rem; font-size: 0.6rem; }
  .hero-trust-dot { width: 4px; height: 4px; }

  /* Stats bar */
  .stats-bar { padding: 2.5rem 0; }
  .stat-item { padding: 1.25rem 0.625rem; }
  .stat-label { font-size: 0.55rem; }

  /* Service cards */
  .service-card { padding: 1.75rem 1.5rem; }
  .service-card h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
  .service-card-cta { opacity: 1; transform: none; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; }

  /* News cards */
  .news-card { padding: 1.5rem; }
  .news-card h3 { font-size: 1.25rem; }

  /* Testimonial cards */
  .testimonial-card { padding: 1.5rem; }
  .quote-icon { top: 1.25rem; right: 1.25rem; }

  /* Gallery */
  .gallery-grid { gap: 0.5rem; }

  /* CTA Banner */
  .cta-banner { padding: 4rem 0; }

  /* Section headers */
  .section-header { margin-bottom: 2.25rem; }
  .section-header h2 { font-size: clamp(1.875rem, 7vw, 2.5rem); }

  /* Grid gaps */
  .grid-2 { gap: 1.25rem; }
  .grid-3 { gap: 1.25rem; }
  .grid-2-1 { gap: 2.5rem; }
  .grid-3-1 { gap: 2.5rem; }
  .grid-4 { gap: 1rem; }
  .values-grid { gap: 2rem; }

  /* Team cards */
  .team-card { padding: 1.5rem; }
  .team-card-cta { opacity: 1; }
  .team-card-bio { -webkit-line-clamp: 3; }

  /* Team profile hero */
  .team-profile-hero { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem; }
  .team-profile-name { margin-bottom: 1.25rem; }
  .team-about-text { font-size: 0.9375rem; }
  .team-hero-links { margin-top: 2rem; gap: 0.5rem; }
  .team-hero-link { font-size: 0.6rem; padding: 0.5rem 0.875rem; }
  .profile-section { margin-bottom: 3rem; }
  .edu-item { padding: 1rem 1.25rem; }
  .spec-item { padding-left: 1.25rem; }

  /* Vision/Mission */
  .vm-block { padding: 2.75rem 1.5rem; }
  .vm-title { font-size: 2rem; margin-bottom: 1.25rem; }
  .vm-vision { font-size: 1.0625rem; }
  .vm-grid { gap: 2.5rem; }
  .mission-list li { font-size: 0.9rem; }

  /* Process grid */
  .process-grid { gap: 1.75rem; }
  .process-num { font-size: 2.5rem; margin-bottom: 0.75rem; }

  /* Track record */
  .track-main-card { padding: 1.75rem; }
  .track-sm-img-wrap { aspect-ratio: 3/2; }
  .full-gallery-grid { gap: 0.5rem; }
  .full-gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Article cards */
  .article-card .article-meta { margin: 1.5rem 1.5rem 0.625rem; }
  .article-card h3 { margin: 0 1.5rem 0.625rem; font-size: 1.2rem; }
  .article-card p { margin: 0 1.5rem 0.875rem; }
  .article-card .article-link { margin: 0 1.5rem 1.5rem; }
  .newsletter-block { padding: 2.5rem 1.5rem; margin-top: 2.5rem; }
  .newsletter-icon { width: 52px; height: 52px; margin-bottom: 1.5rem; }

  /* Article hero */
  .article-hero { height: 220px; }
  .article-hero-content h1 { font-size: clamp(1.375rem, 5vw, 2rem); }
  .article-hero-content { padding-bottom: 1.75rem; }

  /* Contact page */
  .contact-info-grid { gap: 1.5rem; }
  .contact-cta-card { padding: 2rem 1.5rem; }
  .contact-cta-card h3 { font-size: 1.5rem; }
  .map-wrap iframe { min-height: 260px; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-icon svg { width: 20px; height: 20px; }

  /* Sidebar */
  .sidebar-cta { position: static; top: auto; margin-bottom: 2rem; }
  .sidebar-links { margin-top: 0.75rem; }

  /* Prose */
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
  .prose h2 { font-size: 1.4375rem; margin-top: 2rem; }
  .prose h3 { font-size: 1.1875rem; margin-top: 1.75rem; }
  .prose .cta-block { padding: 1.5rem; }
  .prose .cta-block h3 { font-size: 1.25rem; }
  .prose .border-left { border-left-width: 3px; }
  .prose .border-left-gold { border-left-width: 3px; }

  /* Service detail */
  .service-detail-header { margin-bottom: 3rem; }
  .service-detail-subtitle { font-size: 1.0625rem; padding-left: 1.25rem; }
  .faq-item { padding: 1.25rem; }
  .process-grid.four-col { grid-template-columns: repeat(2, 1fr); }

  /* Back link */
  .back-link { margin-bottom: 2rem; }

  /* Footer */
  .footer-body { padding: 3rem 0 2rem; }
  .footer-grid { margin-bottom: 0; gap: 2rem; }
  .footer-bottom { gap: 0.375rem; text-align: center; }
  .footer-topbar-right { gap: 0.75rem; }
  .footer-brand-logo { margin-bottom: 1.25rem; }
  .footer-tagline { margin-bottom: 1.25rem; max-width: 100%; }

  /* Floating WhatsApp — safe area + size */
  .floating-wa {
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem));
    right: 1.25rem;
    width: 54px;
    height: 54px;
    box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  }
  .floating-wa svg { width: 26px; height: 26px; }

  /* Button touch targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 44px; padding: 0.625rem 1.25rem; }

  /* Mobile menu polish */
  .mobile-menu { padding: 5rem 1.5rem 3rem; }
  .mobile-menu-cta .btn { min-height: 52px; font-size: 0.8rem; }
  .mobile-menu-links a { font-size: 1.625rem; padding: 1.125rem 0; }
}

/* ── Small phones (< 420px) ── */
@media (max-width: 419px) {
  .container { padding: 0 1.125rem; }
  .section { padding: 3rem 0; }

  .hero { padding-top: calc(var(--nav-h) + 1.25rem); }
  .hero h1 { font-size: clamp(1.875rem, 9.5vw, 2.5rem); }
  .hero-desc { font-size: 0.9375rem; }
  .hero-btns { gap: 0.75rem; }
  .hero-btns .btn-lg { width: 100%; justify-content: center; }
  .hero-trust { gap: 0.375rem 0.5rem; }
  .hero-trust-dot { display: none; }

  .stats-bar { padding: 2rem 0; }
  .stat-value { font-size: clamp(1.5rem, 6vw, 2rem); }
  .stat-label { font-size: 0.5rem; letter-spacing: 0.12em; }

  .section-header h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .page-header-inner h1.big { font-size: clamp(2rem, 9vw, 2.75rem); }

  .cta-inner h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .cta-contact { display: none; }

  .mobile-menu-links a { font-size: 1.5rem; padding: 1rem 0; }

  .vm-block { padding: 2.25rem 1.125rem; }
  .vm-title { font-size: 1.75rem; }

  .team-profile-photo-wrap { max-width: 200px; }

  .footer-col h4 { font-size: 0.9375rem; }
}

/* ── Tablet (768px – 1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .section { padding: 5rem 0; }
  .hero { padding-bottom: 5rem; }
  .hero-image-wrap { aspect-ratio: 3/4; }
  .stats-bar { padding: 3rem 0; }
  .sidebar-cta { position: static; top: auto; }
  .cta-banner { padding: 5rem 0; }
  .footer-body { padding: 3.5rem 0 2rem; }
  .service-card { padding: 2rem; }
  .vm-block { padding: 4rem 2.5rem; }
  .contact-cta-card { padding: 2.5rem; }
  .map-wrap iframe { min-height: 320px; }
  .newsletter-block { padding: 3rem 2rem; }
}
