/* ============================================================
   TCTG Advogados Associados — New Design System
   ============================================================ */

/* — CSS Custom Properties — */
:root {
  --navy: #101A2B;
  --navy-light: #17243A;
  --navy-dark: #0C1422;
  --gold: #C5A64E;
  --gold-light: #D8C47F;
  --gold-dark: #A98A35;
  --cream: #F5F2EC;
  --cream-dark: #E9E4DA;
  --white: #FFFFFF;
  --text: #162136;
  --text-light: #6F7888;
  --text-muted: #9299A6;
  --border: rgba(16, 26, 43, .13);
  --shadow-sm: 0 1px 3px rgba(16, 26, 43, .08);
  --shadow-md: 0 10px 26px rgba(16, 26, 43, .08);
  --shadow-lg: 0 20px 44px rgba(16, 26, 43, .10);
  --shadow-xl: 0 30px 72px rgba(16, 26, 43, .18);
  --radius: 4px;
  --radius-lg: 5px;
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
}

/* — Reset & Base — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--navy); font-weight: 700; line-height: 1.25; }

/* — Container — */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 3vw, 32px); width: 100%; }

/* — Utility — */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100000;
  padding: 10px 16px;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(196,160,82,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(15,27,45,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: 10px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo img {
  height: 50px; width: auto;
  transition: height var(--transition);
}
.scrolled .logo img { height: 40px; }

/* Desktop Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 500;
  letter-spacing: .3px;
  padding: 8px 18px;
  border-radius: 4px;
  transition: all var(--transition);
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(196,160,82,.08);
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 50%; }

/* CTA Button in nav */
.nav-cta {
  margin-left: 12px;
  padding: 10px 24px !important;
  background: var(--gold) !important;
  color: var(--white) !important;
  border-radius: 4px;
  font-weight: 600 !important;
  letter-spacing: .5px;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  color: var(--white) !important;
}
.nav-cta::after { display: none !important; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px 6px; position: relative;
  flex-direction: column; justify-content: space-between;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px; transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 8999;
  background: rgba(15,27,45,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: max(96px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  opacity: 0; transition: opacity .35s;
}
.mobile-nav-overlay.active { display: flex; opacity: 1; }
.mobile-nav-overlay a {
  color: var(--white); font-size: 22px; font-family: var(--font-heading);
  padding: 12px 30px; transition: color var(--transition);
}
.mobile-nav-overlay a:hover { color: var(--gold); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,27,45,.88) 0%, rgba(15,27,45,.65) 50%, rgba(15,27,45,.80) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 108px 24px 180px;
}
.hero-label {
  display: block;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp .8s .3s forwards;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: 1.04;
  letter-spacing: -.05em;
  margin-bottom: 24px;
  opacity: 0; animation: fadeInUp .8s .5s forwards;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,.7);
  max-width: 580px;
  margin: 24px auto 32px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  opacity: 0; animation: fadeInUp .8s .7s forwards;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeInUp .8s .9s forwards;
}

/* Hero Services Bar */
.hero-services-bar {
  position: absolute; bottom: 0; left: 50%; right: auto; z-index: 3;
  width: min(1200px, calc(100% - 64px));
  transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-service-panel {
  appearance: none;
  border: 0;
  width: 100%;
  margin: 0;
  position: relative;
  display: flex; align-items: center; gap: 16px;
  min-height: 132px;
  padding: 22px 24px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: rgba(248,246,241,.92);
  backdrop-filter: blur(8px);
  transition: background .5s, box-shadow .5s;
  overflow: hidden;
}
.hero-service-panel:not(:last-child) {
  border-right: 1px solid rgba(0,0,0,.06);
}
.hero-service-panel:hover {
  background: rgba(248,246,241,1);
}
.hero-service-panel.active {
  background: var(--gold);
}
.hero-service-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  width: 0; background: var(--navy);
  transition: none;
}
.hero-service-panel.active .hero-service-progress {
  animation: progressFill 5s linear forwards;
}
@keyframes progressFill {
  from { width: 0; }
  to   { width: 100%; }
}
.hero-service-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: rgba(16, 26, 43, .04);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .5s, background .5s;
}
.hero-service-panel.active .hero-service-icon {
  border-color: var(--white);
  background: rgba(255,255,255,.15);
}
.hero-service-icon i {
  font-size: 21px; color: var(--navy);
  transition: color .5s;
}
.hero-service-panel.active .hero-service-icon i {
  color: var(--white);
}
.hero-service-label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: #888; letter-spacing: .3px;
  margin-bottom: 6px;
  transition: color .5s;
}
.hero-service-panel.active .hero-service-label {
  color: rgba(255,255,255,.75);
}
.hero-service-title {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy); font-size: 17px; font-weight: 700;
  margin: 0; line-height: 1.3;
  transition: color .5s;
}
.hero-service-panel.active .hero-service-title {
  color: var(--white);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: .5px;
  border: none; border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold); color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196,160,82,.35);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy); color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: clamp(72px, 7vw, 100px) 0; }
.section-sm { padding: clamp(52px, 5vw, 70px) 0; }
.section-bg { background: var(--cream); }
.section-dark { background: var(--navy); }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 18px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p {
  color: var(--text-light);
  font-size: 16px; line-height: 1.75;
}
.section-dark .section-header p { color: rgba(255,255,255,.6); }

/* — Reveal Animation — */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s, transform .7s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  position: relative;
  padding: clamp(136px, 15vw, 160px) 0 clamp(58px, 7vw, 80px);
  background: var(--navy);
  overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/images/page-title.jpg') center/cover;
  opacity: .15;
}
.page-banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}
.page-banner p {
  color: rgba(255,255,255,.6);
  font-size: 17px;
}
.page-banner .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.45);
}
.page-banner .breadcrumb a { color: var(--gold); }
.page-banner .breadcrumb span { color: rgba(255,255,255,.3); }

/* ============================================================
   PRACTICE AREAS / SERVICES CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--white);
  min-height: 218px;
  padding: 25px 24px 23px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex; flex-direction: column; align-items: stretch;
}
.service-card::before {
  display: none;
}
.service-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 24px;
}
.service-card-icon {
  width: 42px; height: 42px;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(16, 26, 43, .07);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.service-card:hover .service-card-icon { background: rgba(16, 26, 43, .12); }
.service-card-icon i {
  font-size: 17px; color: var(--navy);
  transition: color var(--transition);
}
.service-card:hover .service-card-icon i { color: var(--navy-light); }
.service-card h3 {
  min-height: 50px; margin-bottom: 8px; font-size: 18px;
  font-family: var(--font-body); font-weight: 700;
}
.service-card-summary {
  min-height: 42px; margin-bottom: 16px;
  color: var(--text-light); font-size: 12px; line-height: 1.7;
}
.service-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy); font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(197, 166, 78, .62); box-shadow: var(--shadow-lg); }

/* ============================================================
   ABOUT / INFO SPLIT SECTION
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-section > *, .contact-grid > *, .blog-layout > *, .services-detail-layout > * { min-width: 0; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
/* About Home — 3-column layout (reference: text | STF | Cristo) */
.about-home-grid {
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(0, 1.07fr) minmax(0, .93fr);
  gap: 14px;
  align-items: stretch;
}
.about-home-text {
  align-self: center;
  padding: 0 54px 0 0;
}
.about-home-text .section-label {
  margin-bottom: 12px;
}
.about-home-text h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}
.about-home-text p {
  color: var(--text-light); font-size: 16px;
  line-height: 1.7; margin-bottom: 24px;
}
.about-home-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 15px; font-weight: 600;
  text-decoration: none; transition: gap var(--transition);
}
.about-home-link:hover { gap: 14px; }
.about-home-link i { font-size: 13px; }
.about-home-img-stf,
.about-home-img-cristo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
}
.about-home-img-stf { margin-bottom: 42px; }
.about-home-img-cristo { margin-top: 42px; }
.about-home-img-stf img,
.about-home-img-cristo img {
  width: 100%; height: 410px;
  border-radius: var(--radius);
  object-fit: cover;
}
.about-home-grid figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 8px 11px;
  color: var(--white); background: rgba(10, 18, 31, .78);
  border-radius: 3px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
}
.split-content .section-label { margin-bottom: 14px; }
.split-content h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 20px;
}
.split-content p {
  color: var(--text-light); font-size: 16px;
  line-height: 1.8; margin-bottom: 16px;
  text-align: justify;
}
.split-content .btn { margin-top: 10px; }

/* ============================================================
   HOME CAROUSELS
   ============================================================ */
.home-carousel { position: relative; }
.home-carousel-viewport { overflow: hidden; }
.home-carousel-track { display: flex; gap: 18px; transition: transform .45s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.home-carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 18px; }
.home-carousel-controls button { display: grid; width: 44px; height: 44px; place-items: center; color: var(--navy); background: transparent; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.home-carousel-controls button:hover:not(:disabled) { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.home-carousel-controls button:disabled { cursor: not-allowed; opacity: .38; }
.testimonials-carousel .carousel-item { flex: 0 0 calc((100% - 18px) / 2); }
.team-carousel .carousel-item { flex: 0 0 calc((100% - 36px) / 3); }

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.team-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-6px); }
.team-card-img {
  width: 100%; aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  margin: 0;
  filter: grayscale(20%);
  transition: filter var(--transition), box-shadow var(--transition);
}
.team-card:hover .team-card-img { filter: grayscale(0%); box-shadow: var(--shadow-lg); }
.team-card h4 { margin: 17px 18px 4px; font-size: 16px; font-family: var(--font-body); font-weight: 700; }
.team-card span { display: block; margin: 0 18px 18px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--navy); }
.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .home-carousel-controls button { color: var(--white); border-color: rgba(255, 255, 255, .22); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  min-height: 270px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.testimonial-card .quote-icon {
  color: var(--gold); font-size: 28px; margin-bottom: 18px; display: block;
}
.testimonial-card p {
  color: rgba(255,255,255,.75);
  font-size: 14px; line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author h5 {
  color: var(--white); font-size: 16px; font-family: var(--font-body); font-weight: 700;
  margin-bottom: 4px;
}
.testimonial-author span { color: var(--gold); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--gold);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item h3 { color: var(--white); font-size: 42px; font-family: var(--font-heading); margin-bottom: 6px; }
.stat-item p { color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   BLOG / ARTICLES
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-card-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .5s;
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-img-wrap { overflow: hidden; }
.blog-card-body { padding: 28px; }
.blog-card-cat {
  display: inline-block;
  background: var(--cream); color: var(--gold-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 3px;
  margin-bottom: 14px;
}
.blog-card-body h3 { font-size: 19px; margin-bottom: 12px; line-height: 1.4; font-family: var(--font-body); font-weight: 700; }
.article-title-button {
  appearance: none; border: 0; padding: 0; background: transparent;
  color: var(--navy); font: inherit; font-weight: inherit;
  line-height: inherit; text-align: left; cursor: pointer;
  transition: color var(--transition);
}
.article-title-button:hover { color: var(--gold); }
.read-more-btn { font-size: 13px; padding: 8px 20px; margin-bottom: 18px; }
.blog-card-body p { color: var(--text-light); font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--text-muted); }
.blog-card-meta i { margin-right: 4px; color: var(--gold); }

/* Article Modal */
.article-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(15,27,45,.85); backdrop-filter: blur(8px);
  align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.article-modal-overlay.active { display: flex; }
.article-modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 820px; width: 100%; margin: auto; position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn .35s cubic-bezier(.22,.68,0,1.2) both;
}
.article-modal-scroll {
  max-height: calc(100svh - 48px);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  border-radius: inherit;
}
@keyframes modalIn { from { opacity:0; transform: translateY(40px) scale(.97); } to { opacity:1; transform: translateY(0) scale(1); } }
.article-modal-close {
  position: absolute; top: -14px; right: -14px;
  background: var(--navy); color: var(--white);
  border: 3px solid var(--white); border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background var(--transition);
}
.article-modal-close:hover { background: var(--gold); }
.article-modal-img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.article-modal-img img { width: 100%; max-height: 340px; object-fit: cover; }
.article-modal-body { padding: 32px 40px 44px; overflow-wrap: break-word; }
.article-modal-body .blog-card-cat { margin-bottom: 16px; }
.article-modal-body h2 { font-size: 23px; margin-bottom: 14px; line-height: 1.4; }
.article-modal-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 24px; }
.article-modal-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; display: flex; gap: 24px; flex-wrap: wrap; }
.article-modal-meta span { display: flex; align-items: center; gap: 6px; }
#modal-content p { color: var(--text-light); font-size: 15px; line-height: 1.85; text-align: justify; margin-bottom: 18px; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-info-card,
.contact-form-card {
  border-radius: 0;
  padding: 42px 38px;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
}
.contact-info-card h3 {
  color: var(--white); font-size: 26px; margin-bottom: 8px;
}
.contact-info-card > p { color: rgba(255,255,255,.6); font-size: 15px; margin-bottom: 36px; }
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 28px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 38px; height: 38px; min-width: 38px;
  background: rgba(196,160,82,.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon i { color: var(--gold); font-size: 18px; }
.contact-info-item h5 { color: var(--gold); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.contact-info-item p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.contact-info-item a { color: rgba(255,255,255,.7); }
.contact-info-item a:hover { color: var(--gold); }
.contact-phones { display: flex; gap: 30px; }

/* Contact Form */
.contact-form-card {
  background: var(--cream);
  border: 0;
}
.contact-form-card h3 { font-size: 26px; margin-bottom: 8px; }
.contact-form-card > p { color: var(--text-light); font-size: 15px; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px; color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all var(--transition);
  outline: none;
}
.form-group input { min-height: 50px; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196,160,82,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-submit { display: flex; align-items: center; gap: 16px; }
.form-submit .btn { min-width: 160px; justify-content: center; }
#form-loader { display: none; }
#form-success, #form-error { display: none; font-size: 14px; font-weight: 600; }
#form-success { color: #27ae60; }
#form-error { color: #e74c3c; }

/* ============================================================
   DIFFERENTIALS CARDS
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.diff-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.diff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-bottom-color: var(--gold); }
.diff-card-icon {
  width: 72px; height: 72px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  transition: background var(--transition);
}
.diff-card:hover .diff-card-icon { background: var(--gold); }
.diff-card-icon i { font-size: 32px; color: var(--navy); transition: color var(--transition); }
.diff-card:hover .diff-card-icon i { color: var(--white); }
.diff-card h4 { font-size: 16px; font-family: var(--font-body); font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.diff-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */
.legal-content { max-width: 800px; padding: 80px 0; }
.legal-content .legal-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 2px solid var(--cream-dark); }
.legal-content .legal-header .label-top {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.legal-content .legal-header h2 { font-size: 32px; margin-bottom: 12px; }
.legal-content .legal-header .update-date { font-size: 13px; color: var(--text-muted); }
.legal-content h3 {
  font-size: 18px; font-family: var(--font-body); font-weight: 700; color: var(--navy);
  margin: 36px 0 12px; padding-left: 14px; border-left: 3px solid var(--gold);
}
.legal-content p { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 14px; text-align: justify; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 6px; list-style: disc; }
.legal-content .contact-box {
  background: var(--cream); border-left: 4px solid var(--navy);
  padding: 22px 26px; margin-top: 40px; border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-content .contact-box p { margin: 0; color: var(--text); }
.legal-content .contact-box strong { color: var(--navy); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column;
}
.error-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 160px 20px 100px;
  min-height: 60vh;
}
.error-num {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: clamp(120px, 20vw, 260px); font-weight: 900; color: var(--navy);
  opacity: .04; pointer-events: none; user-select: none; line-height: 1;
}
.error-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px; position: relative; z-index: 2;
}
.error-icon i { font-size: 40px; color: var(--navy); }
.error-title { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; position: relative; z-index: 2; }
.error-text { color: var(--text-light); font-size: 16px; max-width: 500px; margin: 0 auto 40px; line-height: 1.85; position: relative; z-index: 2; }
.error-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.error-btns .btn-outline { color: var(--navy); border-color: var(--border); }
.error-btns .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ------------------------------------------------------------
   Página 404 (body.page-error)

   As demais páginas abrem com .page-banner, um bloco escuro que
   corre por baixo do header fixo e transparente e dá contraste ao
   menu, que é branco. A 404 não tem banner, e como ela cabe na
   viewport também nunca rola, então a classe .scrolled que o
   script.js aplica a partir de 60px de scroll jamais entraria.
   Sem as duas coisas o menu fica branco sobre fundo branco, isto
   é, invisível. Aqui o header já nasce sólido.
   ------------------------------------------------------------ */
.page-error .site-header {
  background: rgba(15,27,45,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* Conteúdo e rodapé ocupam exatamente a altura da janela, sem
   rolagem. O header é fixed e não entra no fluxo. A unidade dvh
   acompanha a barra de endereço que aparece e some no celular;
   vh fica de fallback para navegador que não suporta dvh. */
.page-error { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-error main { flex: 1; display: flex; }
/* min-height:auto derruba o min-height:100vh do .error-page e o 60vh do
   .error-wrap, que somados ao rodapé é que criavam a rolagem. Usar auto, e
   não 0, é deliberado: auto ancora o piso no tamanho do conteúdo, então numa
   janela baixa demais a página rola. Com 0 os blocos encolheriam abaixo do
   conteúdo e o overflow:hidden do .error-wrap cortaria os botões sem deixar
   rolar até eles. Conteúdo cortado é pior que rolagem. */
.page-error .error-page { flex: 1; min-height: auto; }
/* O .container entre .error-page e .error-wrap é block por padrão, o que
   anulava o flex:1 do .error-wrap e prendia o conteúdo no topo. Ele precisa
   crescer e virar contêiner flex para o wrap poder centralizar de fato. */
.page-error .error-page > .container { flex: 1; display: flex; flex-direction: column; }
.page-error .error-wrap { min-height: auto; padding: 110px 20px 40px; }

/* Janelas baixas (celular deitado, Android pequeno). Aqui a altura é o
   recurso escasso, então o ícone, que é decorativo, sai para o título, o
   texto e os botões caberem sem rolagem. O rodapé também encolhe. */
@media (max-height: 640px) {
  /* Header compacto: 86px de altura fixa custam caro aqui, e encolher o logo
     não esconde nada. O padding-top do wrap acompanha para o conteúdo não
     passar por baixo do header. */
  .page-error .site-header { padding: 8px 0; }
  .page-error .site-header .logo img { height: 36px; }
  .page-error .error-wrap { padding: 60px 16px 20px; }
  .page-error .error-icon { display: none; }
  .page-error .error-title { font-size: clamp(18px, 4vh, 24px); margin-bottom: 8px; }
  .page-error .error-text { font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
  .page-error .site-footer { padding: 14px 0; }
}

/* ============================================================
   SERVICES DETAIL (service-single)
   ============================================================ */
.services-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 50px;
  align-items: start;
}
.services-sidebar {
  position: sticky; top: 100px;
}
.services-sidebar-nav { margin-bottom: 28px; }
.services-sidebar-nav a {
  display: block; padding: 12px 18px;
  color: var(--text-light); font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.services-sidebar-nav a:hover,
.services-sidebar-nav a.active {
  color: var(--navy); border-left-color: var(--gold);
  background: var(--cream);
}
.services-sidebar .download-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  transition: background var(--transition);
}
.services-sidebar .download-link:hover { background: var(--navy-light); color: var(--white); }
.services-sidebar .download-link i { color: var(--gold); }

.service-block { margin-bottom: 60px; scroll-margin-top: 110px; }
.service-block:last-child { margin-bottom: 0; }
.service-block h2 { font-size: 26px; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.service-block p { color: var(--text-light); font-size: 15px; line-height: 1.85; margin-bottom: 16px; text-align: justify; }
.service-block h3 { font-size: 17px; font-family: var(--font-body); font-weight: 700; margin: 24px 0 14px; color: var(--navy); }
.service-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; }
.service-features li {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--text-light); font-size: 14px; line-height: 1.8;
}
.service-features li i { color: var(--gold); font-size: 12px; flex-shrink: 0; }

/* ============================================================
   BLOG SIDEBAR (articles page)
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}
.blog-sidebar .widget { margin-bottom: 32px; }
.blog-sidebar .widget h3 {
  font-size: 17px; font-family: var(--font-body); font-weight: 700; color: var(--navy);
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--cream-dark);
}
.blog-sidebar .search-form {
  display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.blog-sidebar .search-form input {
  flex: 1; padding: 12px 16px; border: none; font-size: 14px;
  font-family: var(--font-body); outline: none; background: transparent;
}
.blog-sidebar .search-form button {
  padding: 12px 16px; background: var(--navy); border: none; color: var(--white); cursor: pointer;
  transition: background var(--transition);
}
.blog-sidebar .search-form button:hover { background: var(--gold); }
.blog-sidebar .category-list li { margin-bottom: 8px; }
.filter-button { font: inherit; cursor: pointer; }
.blog-sidebar .category-list a,
.blog-sidebar .category-list .filter-button {
  display: flex; justify-content: space-between;
  width: 100%; min-height: 44px; align-items: center;
  color: var(--text-light); font-size: 14px; padding: 8px 0;
  background: transparent; border: 0; text-align: left;
  border-bottom: 1px solid var(--cream-dark);
  transition: color var(--transition);
}
.blog-sidebar .category-list a:hover,
.blog-sidebar .category-list .filter-button:hover,
.blog-sidebar .category-list .filter-button.active { color: var(--gold); }
.blog-sidebar .category-list span { color: var(--text-muted); font-size: 13px; }

.blog-sidebar .recent-post {
  display: flex; width: 100%; gap: 14px; margin-bottom: 18px; padding: 0;
  background: transparent; border: 0; text-align: left; cursor: pointer;
}
.blog-sidebar .recent-post img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.blog-sidebar .recent-post-copy { flex: 1; min-width: 0; }
.blog-sidebar .recent-post-title {
  display: block; color: var(--navy); font-size: 14px;
  font-family: var(--font-body); font-weight: 600;
  line-height: 1.4; margin-bottom: 4px;
  transition: color var(--transition);
}
.blog-sidebar .recent-post:hover .recent-post-title { color: var(--gold); }
.blog-sidebar .recent-post .date { font-size: 12px; color: var(--text-muted); }
.blog-sidebar .recent-post .date i { margin-right: 4px; color: var(--gold); }

.blog-sidebar .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-sidebar .tag-list a,
.blog-sidebar .tag-list .filter-button {
  padding: 5px 14px; background: var(--cream); color: var(--text-light);
  border: 0;
  font-size: 12px; font-weight: 500; border-radius: 20px;
  transition: all var(--transition);
}
.blog-sidebar .tag-list a:hover,
.blog-sidebar .tag-list .filter-button:hover,
.blog-sidebar .tag-list .filter-button.active { background: var(--gold); color: var(--white); }

/* Blog pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-light);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* Blog "no results" */
#no-results-msg { display: none; padding: 40px 0; text-align: center; }
#no-results-msg i { font-size: 36px; color: var(--gold); display: block; margin-bottom: 14px; }
#no-results-msg p:first-of-type { color: var(--navy); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
#no-results-msg p:last-of-type { color: var(--text-muted); font-size: 14px; }

/* ============================================================
   GOOGLE MAP
   ============================================================ */
.map-section iframe {
  width: 100%; height: 450px; border: 0;
  border-radius: var(--radius-lg);
  filter: grayscale(30%) contrast(1.05);
  transition: filter var(--transition);
}
.map-section iframe:hover { filter: grayscale(0%); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  padding: 28px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-inner p { color: rgba(255,255,255,.45); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: max(94px, calc(env(safe-area-inset-bottom) + 70px));
  right: max(20px, env(safe-area-inset-right));
  z-index: 9000;
  width: 56px; height: 56px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  transition: all var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #128c7e; transform: scale(1.1);
  color: #fff; text-decoration: none;
}
.whatsapp-tooltip {
  position: fixed; bottom: max(110px, calc(env(safe-area-inset-bottom) + 86px)); right: 88px; z-index: 9000;
  background: var(--white); color: var(--text);
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: tooltipPulse 3s ease-in-out infinite;
}
@keyframes tooltipPulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); right: max(27px, env(safe-area-inset-right)); z-index: 8000;
  width: 44px; height: 44px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .services-detail-layout { grid-template-columns: 1fr; }
  .services-sidebar { position: static; display: none; }
  .blog-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .about-home-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-home-text { grid-column: 1 / -1; padding-right: 0; }
  .about-home-img-cristo { margin-top: 0; }
  .hero-services-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-service-panel:nth-child(2) { border-right: none; }
  .hero-service-panel:nth-child(1),
  .hero-service-panel:nth-child(2) { border-bottom: 1px solid rgba(0,0,0,.06); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form-card { padding: 32px 24px; }
  .contact-phones { flex-direction: column; gap: 8px; }
  .service-features { grid-template-columns: 1fr; }
  .about-home-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-home-text { grid-column: auto; }
  .about-home-img-stf img { height: 260px; }
  .about-home-img-cristo { margin-top: 0; }
  .about-home-img-cristo img { height: 260px; }
  /* Hero mobile: barra sai do posicionamento absoluto e flui abaixo do conteúdo */
  .hero { flex-direction: column; align-items: stretch; min-height: 100svh; }
  .hero-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 90px; padding-bottom: 40px; }
  .hero-services-bar { position: relative; bottom: auto; left: auto; right: auto; width: 100%; transform: none; grid-template-columns: 1fr; }
  .hero-service-panel:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(0,0,0,.06); }
  .hero-service-panel { padding: 18px 22px; gap: 14px; }
  .hero-service-icon { width: 52px; height: 52px; }
  .hero-service-icon i { font-size: 22px; }
  .hero-service-title { font-size: 16px; }
  .hero-service-label { font-size: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-links a { padding: 8px 0; }
  .article-modal-body { padding: 24px 22px 32px; }
  .article-modal-close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .whatsapp-tooltip { display: none; }
  .diff-grid { grid-template-columns: 1fr; }
  .split-content p,
  .service-block p,
  .legal-content p,
  #modal-content p { text-align: left; }
  .form-submit { align-items: stretch; flex-direction: column; }
  .form-submit .btn { width: 100%; }
}

@media (min-width: 600px) and (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-carousel .carousel-item { flex-basis: calc((100% - 18px) / 2); }
  .about-home-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-home-text { grid-column: 1 / -1; padding: 0 0 26px; }
  .about-home-img-stf { margin-bottom: 28px; }
  .about-home-img-cristo { margin-top: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .section { padding: 64px 0; }
  .hero { min-height: 100svh; }
  .hero-content { padding: 112px 20px 48px; }
  .hero h1 { font-size: clamp(36px, 11vw, 44px); }
  .hero-services-bar { position: relative; left: auto; width: 100%; transform: none; grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { min-height: auto; }
  .service-card h3, .service-card-summary { min-height: 0; }
  .about-home-grid { grid-template-columns: 1fr; }
  .about-home-text { padding: 0 0 24px; }
  .about-home-img-stf, .about-home-img-cristo { margin: 0; }
  .about-home-img-stf img, .about-home-img-cristo img { height: 300px; }
  .testimonials-carousel .carousel-item, .team-carousel .carousel-item { flex-basis: 100%; }
  .testimonial-card { min-height: 300px; }
  .contact-info-card, .contact-form-card { padding: 30px 22px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: min(100%, 260px); justify-content: center; }
  .hero-label { letter-spacing: 2px; }
  .error-btns { flex-direction: column; align-items: center; }
  .error-btns .btn { width: min(100%, 260px); justify-content: center; }
  .page-banner { padding: 128px 0 54px; }
  .page-banner p { font-size: 15px; }
  .article-modal-overlay { padding: 12px; }
  .article-modal-scroll { max-height: calc(100svh - 24px); }
  .legal-content { padding: 56px 0; }
  .legal-content .legal-header h2 { font-size: 27px; }
  .map-section iframe { height: 340px; }
}

@media (max-width: 360px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-service-panel { padding: 16px 18px; }
  .article-modal-body { padding: 22px 18px 28px; }
}

@media (max-height: 700px) {
  .hero { min-height: 700px; }
}

@media (min-width: 769px) and (max-width: 1024px) and (max-height: 700px) {
  .hero { min-height: 820px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .home-carousel-track { transition: none !important; }
  .service-card:hover, .team-card:hover, .testimonial-card:hover { transform: none; }
}
