/* =========================================================
   Texas Truck Permits — Main Stylesheet v3
   Aesthetic: Industrial Bold / American Highway  
   Fonts: Barlow Condensed (display) + Barlow (body)
   ========================================================= */

:root {
  --red:        #CC1E2B;
  --red-dark:   #9E1520;
  --red-light:  #E8303F;
  --navy:       #1B2B4B;
  --navy-light: #253A63;
  --navy-dark:  #0F1A2E;
  --gold:       #F0C040;
  --gold-dark:  #C99A20;
  --white:      #FFFFFF;
  --off-white:  #F4F6F8;
  --gray-100:   #EEF1F5;
  --gray-200:   #DDE2EB;
  --gray-300:   #C5CAD4;
  --gray-500:   #7E8899;
  --gray-700:   #3D4757;
  --text:       #171E2C;
  --radius:     4px;
  --radius-lg:  10px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.18);
  --transition: 220ms ease;
  --container:  1200px;
  --header-h:   72px;   /* used for offset calculations */
  --topbar-h:   36px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.05rem; font-weight: 600; font-family: 'Barlow', sans-serif; }
p  { font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(204,30,43,.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-outline-dark { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline-dark:hover { background: var(--red); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 800; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-lg { padding: .9rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ====================================================
   TOPBAR
   ==================================================== */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  font-family: 'Barlow', sans-serif;
  letter-spacing: .03em;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  min-width: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.topbar-sep { opacity: .25; margin: 0 .4rem; }
.topbar-item { color: rgba(255,255,255,.7); white-space: nowrap; }
.topbar-phone { color: var(--gold) !important; font-weight: 600; white-space: nowrap; }
.topbar a { color: var(--gold); transition: color var(--transition); }
.topbar a:hover { color: var(--white); }

/* ---- Language Switcher ---- */
.lang-switcher { display: flex; gap: .25rem; }
.lang-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .18rem .5rem;
  border-radius: 3px;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  transition: all var(--transition);
  line-height: 1.4;
}
.lang-btn.active, .lang-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ====================================================
   HEADER / NAV
   ==================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  /* constrain height so logo doesn't burst out of header */
  height: calc(var(--header-h) - 8px);
  overflow: hidden;
}
.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --- Main Nav --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  padding: .5rem .65rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--red); background: rgba(204,30,43,.06); }
.nav-caret { font-size: .6rem; opacity: .7; margin-left: .1rem; }
.nav-cta { margin-left: .5rem; }

/* --- Dropdown --- */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: .5rem 0 .75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 500;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .88rem;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--red); padding-left: 1.5rem; }
.dropdown-label {
  display: block;
  padding: .6rem 1.25rem .2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  pointer-events: none;
  border-top: 1px solid var(--gray-100);
  margin-top: .25rem;
}
.dropdown-label:first-child { border-top: none; margin-top: 0; }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: .3rem 0; }

/* --- Mobile hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .28s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-lang-mobile { display: none; }

/* ====================================================
   HERO — HOMEPAGE
   ==================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
/* Subtle grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.012) 0px,
    rgba(255,255,255,.012) 1px,
    transparent 1px,
    transparent 100px
  );
  pointer-events: none;
}
/* Red diagonal accent */
.hero::after {
  content: '';
  position: absolute;
  right: -2%;
  top: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(150deg, transparent 30%, rgba(204,30,43,.18) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 500px; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.trust-item::before { content: '✓'; color: var(--gold); font-size: .9rem; }

/* --- Hero Form Card --- */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  border-top: 4px solid var(--red);
  position: relative;
  z-index: 2;
}
.hero-form-card h3 {
  color: var(--navy);
  margin-bottom: .25rem;
  font-size: 1.4rem;
}
.hero-form-card > p {
  color: var(--gray-500);
  font-size: .88rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* ====================================================
   FORMS
   ==================================================== */
.form-group { margin-bottom: .9rem; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: 'Barlow Condensed', sans-serif;
}
.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,30,43,.1); }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right .6rem center;
  background-repeat: no-repeat;
  background-size: 1.2em;
  padding-right: 2.5rem;
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ====================================================
   SECTION UTILITIES
   ==================================================== */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--navy); color: var(--white); }
.section-navy { background: var(--navy-dark); color: var(--white); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--gray-700); font-size: .97rem; }
.section-dark .section-header p,
.section-navy .section-header p { color: rgba(255,255,255,.7); }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ====================================================
   SERVICE CARDS
   ==================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 46px; height: 46px;
  background: rgba(204,30,43,.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .9rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--navy); }
.service-card p { font-size: .87rem; color: var(--gray-700); margin-bottom: .9rem; line-height: 1.5; }
.card-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
}
.card-link::after { content: ' →'; }

/* ====================================================
   WHY US / STATS
   ==================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.why-item { display: flex; gap: .9rem; align-items: flex-start; }
.why-check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--red);
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  margin-top: 2px;
}
.why-item h4 { margin-bottom: .2rem; color: var(--navy); }
.why-item p { font-size: .88rem; color: var(--gray-700); }

.why-visual {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-visual::before {
  content: '';
  position: absolute;
  bottom: -20%; right: -8%;
  width: 200px; height: 200px;
  background: var(--red);
  border-radius: 50%;
  opacity: .12;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-box { text-align: center; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-top: .2rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ====================================================
   PROCESS STEPS
   ==================================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 54px; height: 54px;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.section-alt .step-num { border-color: var(--gray-100); }
.step h4 { margin-bottom: .4rem; color: var(--navy); font-size: .97rem; }
.step p { font-size: .84rem; color: var(--gray-700); }

/* ====================================================
   PACKAGES
   ==================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.package-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}
.package-card:hover { box-shadow: var(--shadow); }
.package-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(204,30,43,.08), var(--shadow-lg);
  transform: scale(1.03);
}
.package-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}
.package-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.package-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: .2rem;
}
.package-note { font-size: .8rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.package-features { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .55rem; }
.package-features li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .88rem; color: var(--gray-700);
}
.package-features li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }

/* ====================================================
   BLOG CARDS
   ==================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--red); }
.blog-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.blog-card-body { padding: 1.35rem; }
.blog-date {
  font-size: .75rem;
  color: var(--gray-500);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--navy); }
.blog-card p { font-size: .86rem; color: var(--gray-700); margin-bottom: .9rem; }
.blog-read-more {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ====================================================
   FAQ
   ==================================================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .4rem; }
.faq-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--red); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: .97rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--gray-100); }
.faq-item.open .faq-q { background: rgba(204,30,43,.04); color: var(--red); }
.faq-chevron { flex-shrink: 0; transition: transform var(--transition); color: var(--red); font-size: 1rem; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 1.25rem 1.25rem; font-size: .93rem; color: var(--gray-700); line-height: 1.65; }

/* ====================================================
   CTA BANNER
   ==================================================== */
.cta-banner {
  background: var(--red);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(255,255,255,.03) 24px, rgba(255,255,255,.03) 48px);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: .6rem; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.75rem; font-size: 1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ====================================================
   PAGE HERO (inner pages)
   ==================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 2.75rem 0;
  color: var(--white);
  border-bottom: 3px solid var(--red);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: .3rem; }
.page-hero p { color: rgba(255,255,255,.72); margin-top: .4rem; font-size: .97rem; max-width: 560px; }

/* Service page hero (richer variant) */
.service-page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--red);
}
.service-page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(204,30,43,.12) 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.service-page-hero .container { position: relative; z-index: 1; }
.service-page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: .4rem; }
.service-page-hero p { color: rgba(255,255,255,.75); margin-top: .5rem; max-width: 580px; }

/* ====================================================
   BREADCRUMB
   ==================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .77rem;
  color: rgba(255,255,255,.45);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ====================================================
   CONTENT + SIDEBAR LAYOUT
   ==================================================== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.sticky-sidebar { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 1.5rem); }
.sidebar-cta-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  color: var(--white);
}
.sidebar-cta-box h3 { color: var(--white); font-size: 1.25rem; margin-bottom: .3rem; }
.sidebar-cta-box p { color: rgba(255,255,255,.7); font-size: .86rem; margin-bottom: 1.2rem; line-height: 1.5; }
.sidebar-cta-box .btn { width: 100%; text-align: center; display: block; margin-bottom: .6rem; }
.sidebar-services-list { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-services-list h4 {
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  font-family: 'Barlow Condensed', sans-serif;
}
.sidebar-services-list a { display: block; color: rgba(255,255,255,.6); font-size: .84rem; padding: .22rem 0; }
.sidebar-services-list a:hover { color: var(--gold); }
.sidebar-services-list a::before { content: '→ '; }

/* ====================================================
   CONTENT ARTICLE STYLES
   ==================================================== */
.article-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--gray-100);
}
.article-content h2:first-child { margin-top: 0; }
.article-content p { color: var(--gray-700); margin-bottom: .9rem; line-height: 1.7; }
.article-content a { color: var(--red); font-weight: 500; }

/* ====================================================
   INFO BOXES
   ==================================================== */
.info-box {
  background: var(--gray-100);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.info-box h4 { color: var(--navy); margin-bottom: .3rem; font-size: 1rem; }
.info-box p { font-size: .88rem; color: var(--gray-700); margin: 0; }
.info-box.info-navy {
  background: var(--navy);
  border-color: var(--gold);
}
.info-box.info-navy h4 { color: var(--gold); }
.info-box.info-navy p { color: rgba(255,255,255,.78); }
.info-box.info-warn {
  background: #FFF8E1;
  border-color: var(--gold-dark);
}
.info-box.info-warn h4 { color: #7A5C00; }
.info-box.info-warn p { color: #5A4400; }

/* ====================================================
   CHECKLIST
   ==================================================== */
.checklist { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.checklist li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .93rem; color: var(--gray-700); line-height: 1.55;
}
.checklist li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; line-height: 1.55; }

/* ====================================================
   LOCATION HIGHLIGHTS
   ==================================================== */
.location-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.location-highlight-item {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
}
.location-highlight-icon { font-size: 1.6rem; margin-bottom: .35rem; }
.location-highlight-item h4 { font-size: .9rem; color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; }
.location-highlight-item p { font-size: .77rem; color: var(--gray-500); margin-top: .2rem; line-height: 1.4; }

/* ====================================================
   ALERTS
   ==================================================== */
.alert { padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: #D1FAE5; border: 1px solid #34D399; color: #065F46; }
.alert-error { background: #FEE2E2; border: 1px solid #F87171; color: #991B1B; }

/* ====================================================
   BILINGUAL BANNER
   ==================================================== */
.bilingual-banner {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 1.5rem 0;
  text-align: center;
}
.bilingual-banner h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .3rem; }
.bilingual-banner p { color: rgba(255,255,255,.85); margin-bottom: .9rem; font-size: .92rem; }

/* ====================================================
   CONTACT PAGE
   ==================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.35rem; }
.contact-info-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info-icon {
  width: 42px; height: 42px;
  background: rgba(204,30,43,.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: .2rem; color: var(--navy); font-size: .97rem; }
.contact-info-item p, .contact-info-item a { font-size: .92rem; color: var(--gray-700); }
.contact-form-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 4px solid var(--red);
}
.contact-form-card h3 { color: var(--navy); margin-bottom: .25rem; }
.contact-form-card > p { color: var(--gray-500); font-size: .88rem; margin-bottom: 1.5rem; }

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.68); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col p { font-size: .87rem; margin-bottom: .6rem; line-height: 1.55; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul a { color: rgba(255,255,255,.58); font-size: .86rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-brand .logo-img { height: 56px; margin-bottom: .9rem; }
.footer-phone a {
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer-trust {
  display: flex; flex-direction: column; gap: .3rem;
  margin-top: 1rem;
  font-size: .77rem;
  color: rgba(255,255,255,.4);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-col .btn { width: 100%; text-align: center; margin-bottom: .6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.1rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.32);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.38); }
.footer-bottom a:hover { color: var(--white); }

/* ====================================================
   ADMIN PANEL
   ==================================================== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy-dark); padding: 0; display: flex; flex-direction: column; }
.admin-sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .5rem;
}
.admin-sidebar-logo .logo-img { height: 44px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.58);
  font-size: .87rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-left-color: var(--red);
}
.admin-main { padding: 2rem; background: var(--gray-100); }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th {
  text-align: left;
  padding: .6rem 1rem;
  background: var(--gray-100);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
}
.admin-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(0,0,0,.018); }
.badge {
  display: inline-block;
  padding: .18rem .65rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-new { background: #FEF3C7; color: #92400E; }
.badge-contacted { background: #DBEAFE; color: #1E40AF; }
.badge-closed { background: #D1FAE5; color: #065F46; }
.badge-published { background: #D1FAE5; color: #065F46; }
.badge-draft { background: #F3F4F6; color: #6B7280; }

/* ====================================================
   UTILITIES
   ==================================================== */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .package-card.featured { transform: scale(1); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 520px; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .location-highlights { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { max-width: none; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* Hide desktop nav; show hamburger */
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 4.5rem 0 2rem;
    box-shadow: -6px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    z-index: 800;
    gap: 0;
  }
  .main-nav.open { transform: translateX(0); }
  .hamburger { display: flex; }

  .nav-link { padding: .75rem 1.25rem; border-radius: 0; font-size: 1rem; }
  .nav-cta { margin: .75rem 1.25rem; width: calc(100% - 2.5rem); text-align: center; }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--red);
    opacity: 1 !important;
    pointer-events: all;
    transform: none !important;
    padding: .25rem 0 .5rem .75rem;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-label { padding: .3rem .75rem .1rem; font-size: .65rem; }
  .dropdown-divider { display: none; }

  .nav-lang-mobile {
    display: flex;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin: .35rem 0;
  }
  .nav-lang-mobile .lang-btn { color: var(--navy); border-color: var(--gray-300); }
  .nav-lang-mobile .lang-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

  /* Topbar collapses gracefully */
  .topbar-item:not(.topbar-phone) { display: none; }
  .topbar-sep { display: none; }
  .topbar-left { gap: 0; }
  .topbar-right { display: none; }
  .topbar-phone { display: flex; margin-left: auto; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: .75rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-steps { grid-template-columns: 1fr 1fr; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }

  /* Contact */
  .contact-form-card { padding: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 480px) {
  .location-highlights { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .packages-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
