/* ============================================
   CARTÓRIO 32° Cartório - Capela do Socorro — HOMEPAGE
   Clean, institutional, editorial design
   ============================================ */

:root {
  --primary: #14516f;
  --primary-light: #1a6a90;
  --primary-dark: #0e3a4f;
  --primary-faded: rgba(20, 81, 111, 0.07);
  --primary-faded-2: rgba(20, 81, 111, 0.04);

  --text: #1a2a33;
  --text-secondary: #4a6370;
  --text-muted: #7a9aa8;

  --bg: #fafbfc;
  --color-surface: #ffffff;
  --color-surface-warm: #f5f7f9;
  --color-border: #e2e8ec;
  --color-border-light: #eef2f5;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(20, 81, 111, 0.06);
  --shadow-md: 0 4px 20px rgba(20, 81, 111, 0.08);
  --shadow-lg: 0 12px 40px rgba(20, 81, 111, 0.1);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--primary);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 251, 252, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-faded);
}

.nav-link--cta {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  margin-left: 8px;
  padding: 8px 22px;
  border-radius: var(--radius-md);
}

.nav-link--cta:hover {
  background: var(--primary-light);
  color: #fff;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  position: relative;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--primary);
  background: var(--primary-faded);
}

.nav-dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
  opacity: 0.5;
}

.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  line-height: 1.35;
}

.nav-dropdown-menu a:hover {
  color: var(--primary);
  background: var(--primary-faded);
}

.nav-dropdown-menu a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.4;
  transition: var(--transition);
}

.nav-dropdown-menu a:hover svg {
  opacity: 0.7;
  color: var(--primary);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 4px 8px;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  /* SUBSTITUA pela imagem real do cartório */
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover no-repeat;
  transform: scale(1.03);
  animation: heroZoom 20s ease-in-out alternate infinite;
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 36, 50, 0.82) 0%, rgba(20, 81, 111, 0.6) 50%, rgba(10, 36, 50, 0.75) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
}

.hero-pattern::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  animation: heroCircle 30s linear infinite;
}

.hero-pattern::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  animation: heroCircle 40s linear infinite reverse;
}

@keyframes heroCircle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px var(--space-lg) 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.2s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.35s ease forwards;
}

.hero-title-accent {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  font-weight: 500;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.5s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.65s ease forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(20, 81, 111, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(20, 81, 111, 0.25);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-faded);
}

/* Variante branca para uso sobre fundos escuros */
.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.hero-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: fadeInUp 0.8s 1s ease forwards;
}

.hero-scroll-line {
  width: 40px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ABOUT / SOBRE NÓS
   ============================================ */
.about {
  padding: var(--space-3xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.about-text:last-of-type {
  margin-bottom: var(--space-xl);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ---- DIVIDER ---- */
.divider {
  padding: 0;
}

.divider-line {
  height: 1px;
  background: var(--color-border);
}

/* ============================================
   SERVICES / SERVIÇOS
   ============================================ */
.services {
  padding: var(--space-3xl) 0;
}

.services-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.services-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--color-surface);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: var(--transition);
  cursor: default;
}

.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-border);
  transition: var(--transition);
}

.service-card:hover {
  background: var(--primary-faded-2);
}

.service-card:hover::before {
  color: var(--primary);
  opacity: 0.3;
}

.service-icon {
  width: 42px;
  height: 42px;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================
   VISIT / VENHA NOS VISITAR
   ============================================ */
.visit {
  padding: var(--space-3xl) 0;
  background: var(--color-surface-warm);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: center;
}

.visit-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-xl);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.visit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit-item-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}

.visit-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
  display: block;
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(20, 81, 111, 0.08);
}

/* ============================================
   CONTACT / CONTATO
   ============================================ */
.contact {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-channel:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-faded);
}

.contact-channel svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Form */
.contact-form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 81, 111, 0.08);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a9aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  padding: 16px 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo-icon {
  color: rgba(255, 255, 255, 0.85);
}

.footer .logo-title {
  color: #fff;
}

.footer .logo-subtitle {
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: var(--space-xl);
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 14px 16px;
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile dropdown overrides */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    font-size: 1rem;
    padding: 14px 16px;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
    padding: 4px 0 4px 12px;
  }

  .nav-dropdown-menu a {
    font-size: 0.92rem;
    padding: 10px 16px;
    border-left: 2px solid var(--color-border-light);
  }

  .nav-dropdown-menu a:hover {
    border-left-color: var(--primary);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-lg);
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .hero-content {
    padding: 120px var(--space-lg) 100px;
  }

  .hero-scroll {
    display: none;
  }

  .map-wrapper {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header-inner {
    padding: 0 var(--space-md);
  }

  .hero-content {
    padding: 110px var(--space-md) 60px;
  }

  .logo-subtitle {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ============================================
   SERVICE PAGES — INTERNAL PAGES
   ============================================ */

/* ---- HERO PAGE (internal compact hero) ---- */
.hero-page {
  position: relative;
  padding: 140px 0 60px;
  background: var(--primary-dark);
  overflow: hidden;
}

.hero-page .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-page .hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover no-repeat;
}

.hero-page .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 36, 50, 0.88) 0%, rgba(20, 81, 111, 0.7) 50%, rgba(10, 36, 50, 0.85) 100%);
}

.hero-page-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.hero-page-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .breadcrumb-sep {
  font-size: 0.7rem;
  opacity: 0.4;
}

/* ---- SERVICE DETAIL (2 columns) ---- */
.service-detail {
  padding: var(--space-3xl) 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: start;
}

.service-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.service-detail-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.service-detail-text p:last-child {
  margin-bottom: 0;
}

/* ---- DOCUMENTS LIST ---- */
.documents-section {
  padding: var(--space-3xl) 0;
  background: var(--color-surface-warm);
}

.documents-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-xl);
}

.documents-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  list-style: none;
}

.documents-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.documents-list li:hover {
  border-color: var(--primary);
  background: #fff;
}

.documents-list .doc-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 1px;
}

/* ---- FAQ ACCORDION ---- */
.faq-section {
  padding: var(--space-3xl) 0;
}

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-xl);
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  padding: var(--space-3xl) 0;
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.cta-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-lg);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.cta-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-actions .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* ---- SERVICE CARD LINK ---- */
a.service-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.service-card .service-card-arrow {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 20px;
  height: 20px;
  color: var(--color-border);
  transition: var(--transition);
}

a.service-card:hover .service-card-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ---- SERVICE PAGES FOOTER LINK ADJUSTMENT ---- */
.footer-page .logo-icon svg rect[fill] {
  fill: var(--primary-dark);
}

/* ---- RESPONSIVE for service pages ---- */
@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .documents-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-page {
    padding: 120px 0 40px;
  }

  .cta-banner {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .hero-page-content {
    padding: 0 var(--space-md);
  }
}
