/* ═══════════════════════════════════════════════════
   LONE STAR VEIN INSTITUTE — Global Stylesheet
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a2332;
  background: #ffffff;
  overflow-x: hidden;
}

:root {
  --navy:   #0d2244;
  --blue:   #1a5f9e;
  --sky:    #3b9bd4;
  --ice:    #e8f4fb;
  --gold:   #c5a355;
  --white:  #ffffff;
  --gray:   #f5f7fa;
  --text:   #1a2332;
  --muted:  #5a6a7e;
  --border: #dde6f0;
}

/* ── UTILITY ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 12px;
}
h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--navy); line-height: 1.18;
}
h2.section-title span { color: var(--sky); }

.btn-primary {
  display: inline-block; background: var(--gold); color: var(--white);
  font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 15px 34px; border-radius: 3px;
  text-decoration: none; transition: background .25s, transform .2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: #a8873f; transform: translateY(-1px); }

.btn-outline {
  display: inline-block; background: transparent; color: var(--white);
  font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 14px 34px; border-radius: 3px;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.6);
  transition: all .25s;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: white; }

.btn-navy {
  display: inline-block; background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 15px 34px; border-radius: 3px;
  text-decoration: none; transition: background .25s; border: none; cursor: pointer;
}
.btn-navy:hover { background: var(--blue); }

/* ── TOPBAR ── */
.topbar { background: var(--navy); color: rgba(255,255,255,.75); font-size: 13px; padding: 9px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-phone { color: var(--gold) !important; font-weight: 600; font-size: 14px; letter-spacing: .04em; }

/* ── NAV ── */
nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(13,34,68,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; max-width: 1160px; margin: 0 auto; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px; background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--navy); display: block; }
.logo-sub { font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; gap: 2px; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 13.5px; font-weight: 500; color: var(--text);
  text-decoration: none; padding: 8px 13px; border-radius: 4px;
  transition: color .2s, background .2s; display: flex; align-items: center; gap: 4px;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--blue); background: var(--ice); }

/* Dropdown */
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px; min-width: 220px;
  box-shadow: 0 12px 40px rgba(13,34,68,.12);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .22s; z-index: 200;
}
.dropdown a {
  display: block; padding: 9px 14px; font-size: 13.5px;
  color: var(--text); text-decoration: none; border-radius: 6px;
  transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--ice); color: var(--blue); }
.chevron { font-size: 10px; opacity: .5; }

.nav-cta { margin-left: 10px; white-space: nowrap; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all .3s; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--navy);
  z-index: 300; flex-direction: column; align-items: center;
  justify-content: center; gap: 22px; overflow-y: auto; padding: 80px 0 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: white; text-decoration: none; }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }
.mobile-nav-section { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: 10px; }

/* ── HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #0a1a30 0%, #0d2244 60%, #112a54 100%);
  padding: 80px 0 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,95,158,.35), transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,.45); margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 18px;
}
.page-hero h1 span { color: var(--sky); }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.7); max-width: 580px; line-height: 1.75; margin-bottom: 28px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; }

/* ── MINI CONTACT CARD ── */
.mini-contact-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px; padding: 28px 26px; backdrop-filter: blur(10px);
}
.mini-contact-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: white; margin-bottom: 6px; }
.mini-contact-card p { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.mini-form .form-group { margin-bottom: 12px; }
.mini-form .form-group input,
.mini-form .form-group select {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px; padding: 10px 13px; font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; color: white; outline: none;
}
.mini-form .form-group input::placeholder { color: rgba(255,255,255,.3); }
.mini-form .form-group select option { background: var(--navy); }
.mini-form .form-group input:focus,
.mini-form .form-group select:focus { border-color: var(--sky); }
.mini-submit {
  width: 100%; background: var(--gold); color: white; border: none;
  border-radius: 6px; padding: 12px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: background .25s;
}
.mini-submit:hover { background: #a8873f; }

/* ── TRUST STRIP ── */
.trust-strip { background: var(--ice); border-bottom: 1px solid var(--border); padding: 14px 0; }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: nowrap; overflow: hidden; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.trust-item svg { color: var(--blue); flex-shrink: 0; }

/* ── FORM (contact page) ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--gray); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 14px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text); outline: none; transition: border .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); background: white; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.success-msg {
  display: none; background: #eafaf1; border: 1px solid #a3d9b1;
  color: #1a7a3e; border-radius: 8px; padding: 14px 18px;
  font-size: 14px; font-weight: 500; margin-top: 16px; text-align: center;
}

/* ── CARDS & COMPONENTS ── */
.card {
  background: var(--white); border-radius: 14px; padding: 36px 28px;
  border: 1px solid var(--border); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(13,34,68,.09); }

.icon-box {
  width: 52px; height: 52px; background: var(--ice); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon-box svg { width: 24px; height: 24px; color: var(--blue); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 16px; font-weight: 600; color: var(--navy);
  gap: 16px;
}
.faq-question:hover { color: var(--blue); }
.faq-icon { font-size: 20px; flex-shrink: 0; transition: transform .25s; color: var(--blue); }
.faq-answer { font-size: 15px; line-height: 1.8; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.faq-item.open .faq-answer { max-height: 400px; padding-top: 14px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #1a3f72);
  padding: 72px 0; text-align: center;
}
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3.5vw,2.6rem); color: white; margin-bottom: 14px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,.65); max-width: 500px; margin: 0 auto 32px; line-height: 1.7; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.5); margin: 14px 0 18px; }
.footer-phone-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); text-decoration: none; font-weight: 600; font-size: 16px; }
.footer-phone-link:hover { color: #e0bc6a; }
footer h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 16px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
footer ul li a { font-size: 13.5px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .18s; }
.fade-up:nth-child(4) { transition-delay: .26s; }
.fade-up:nth-child(5) { transition-delay: .34s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .mini-contact-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 18px; }
}
