/* E3 Driving School  -  editorial redesign layer */
:root {
  --ink: #0b0b0b;
  --charcoal: #151515;
  --paper: #f1efe9;
  --paper-deep: #e7e2d8;
  --line: rgba(15, 15, 15, .16);
  --gold: #cfad69;
  --gold-deep: #9b793e;
  --nav-h: 80px;
}

.whatsapp-widget {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 17px;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-widget span { font-size: 1.35rem; line-height: .8; }
.whatsapp-widget:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.4); }
@media (max-width: 600px) {
  .whatsapp-widget { right: 14px; bottom: 76px; padding: 13px; }
  .whatsapp-widget b { display: none; }
}

/* Keep newsletter text readable while the field is focused. */
.newsletter-row input,
.newsletter-row input:focus,
.newsletter-row input:active,
.newsletter-row input:-webkit-autofill,
.newsletter-row input:-webkit-autofill:focus {
  background: #fff !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  caret-color: #111;
}

body { background: var(--paper); }
::selection { background: var(--gold); color: var(--ink); }

/* Navigation */
.navbar { height: var(--nav-h); background: rgba(10,10,10,.94); backdrop-filter: blur(18px); }
.nav-inner { max-width: 1240px; }
.nav-logo-mark { width: 40px; height: 40px; }
.nav-logo-text { font-weight: 800; }
.nav-menu { gap: 12px; }
.nav-menu a:not(.btn-nav-book) { padding: 29px 13px 25px; position: relative; }
.nav-menu a:not(.btn-nav-book)::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 18px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.nav-menu a:hover::after,.nav-menu a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-menu a.active { box-shadow: none; }
.btn-nav-book { padding: 14px 25px !important; margin-left: 8px; }

/* Hero */
.hero { height: 100svh; min-height: 720px; padding: 0; isolation: isolate; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
@media (min-width: 769px) {
  .hero-media { top: 0; bottom: 0; height: 100%; }
  .hero-media img { object-fit: contain; object-position: center center; }
}
.hero-media::before { display: none; }
.hero-media img {
  display: block;
  width: 100%; height: 100%; object-fit: cover !important; object-position: center center !important;
  filter: grayscale(1) contrast(1.12) brightness(.9); transform: scale(var(--hero-scale, 1)) !important; transform-origin: center center; will-change: transform;
  transition: transform 1.6s cubic-bezier(.16, 1, .3, 1);
}
.hero-image-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,5,5,.82) 0%, rgba(5,5,5,.48) 38%, rgba(5,5,5,0) 67%),
    linear-gradient(180deg, rgba(0,0,0,.06), transparent 54%, rgba(0,0,0,.66));
}
.hero-image-shade::after {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.hero-copy {
  position: absolute; z-index: 2; left: max(40px, calc((100% - 1240px)/2)); top: 47%;
  width: min(760px, calc(100% - 100px)); color: #fff; transform: translateY(-50%);
}
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero-kicker span { width: 46px; height: 1px; background: var(--gold); }
.hero-title { margin: 22px 0 18px; font-size: clamp(4.6rem, 8.5vw, 8.3rem); line-height: .81; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
.hero-title span { display: block; overflow: hidden; }
.hero-copy > p { max-width: 520px; color: rgba(255,255,255,.8); font-size: clamp(1rem,1.4vw,1.18rem); line-height: 1.65; }
.hero-copy-actions { display: flex; align-items: center; gap: 28px; margin-top: 28px; }
.hero-copy-actions .btn { padding: 15px 22px; }
.hero-text-link { color: #fff; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 800; transition: color .25s, border-color .25s; }
.hero-text-link:hover { color: var(--gold); border-color: var(--gold); }
.hero-lanes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; opacity: .55; }
.hero-lanes span { position: absolute; bottom: -12%; width: 2px; height: 32%; background: linear-gradient(transparent, var(--gold)); transform: rotate(42deg); animation: lanePulse 3.4s ease-in-out infinite; }
.hero-lanes span:nth-child(1) { left: 61%; }
.hero-lanes span:nth-child(2) { left: 68%; animation-delay: -1.1s; }
.hero-lanes span:nth-child(3) { left: 75%; animation-delay: -2.2s; }
@keyframes lanePulse { 0%,100%{opacity:.05;transform:translateY(30px) rotate(42deg)} 50%{opacity:.8;transform:translateY(-20px) rotate(42deg)} }

.hero-action-dock {
  position: absolute;
  left: max(40px, calc((100% - 1240px)/2)); right: max(40px, calc((100% - 1240px)/2)); bottom: 24px;
  min-height: 100px; border-color: rgba(255,255,255,.22); border-left: 4px solid var(--gold);
}
.hero-scroll-cue { right: 28px; }

/* Moving wayfinding strip */
.road-ticker { overflow: hidden; background: var(--gold); color: var(--ink); border-bottom: 1px solid #b28f4e; }
.road-ticker-track { width: max-content; display: flex; align-items: center; gap: 22px; padding: 13px 0; animation: ticker 28s linear infinite; }
.road-ticker span { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; }
.road-ticker i { width: 28px; height: 2px; background: var(--ink); opacity: .45; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
section:not(.hero):not(.page-hero) { position: relative; }
.container { max-width: 1240px; }
.features,.testimonials,.faq-section { background: var(--paper) !important; }
.features::before,.testimonials::before,.faq-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg,var(--ink) 1px,transparent 1px);
  background-size: 42px 42px;
}
.section-hd { text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; }
.section-hd .section-tag { grid-column: 1/-1; justify-self: start; margin-bottom: 0; }
.section-hd h2 { margin: 0; line-height: .9; letter-spacing: .01em; }
.section-hd p { margin: 0 0 3px auto; }
.section-tag { border: 0; padding: 0; color: var(--gold-deep); }
.section-tag::before { content: ''; width: 34px; height: 1px; background: currentColor; }

.features-grid { grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--line); }
.feat-card { text-align: left; border: 0; border-right: 1px solid var(--line); padding: 38px 28px 34px; background: rgba(255,255,255,.35); }
.feat-card:last-child { border-right: 0; }
.feat-card::before { height: 4px; transform-origin: left; }
.feat-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,.08); background: #fff; }
.feat-icon { width: 54px; height: 54px; margin: 0 0 50px; border: 1px solid var(--line); background: transparent; }
.feat-card h3 { font-size: 1.45rem; }
.feat-card p { font-size: .88rem; }

.stats { padding: 85px 0; background: var(--charcoal); }
.stats::after { content: 'READY'; position: absolute; right: -15px; bottom: -50px; font: 400 11rem/.8 'Bebas Neue'; color: rgba(255,255,255,.025); pointer-events: none; }
.stats-grid { grid-template-columns: repeat(3,1fr); }
.stat-item { border-right: 1px solid rgba(255,255,255,.14); }
.stat-item:last-child { border-right: 0; }
.stat-num { font-size: clamp(3.5rem,6vw,5.8rem); }
.stat-label { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }

.test-card { border: 1px solid var(--line); background: rgba(255,255,255,.55); padding: 34px; }
.test-card:hover { transform: translateY(-7px); box-shadow: 14px 14px 0 var(--paper-deep); }
.test-avatar { border-radius: 2px; background: var(--charcoal) !important; color: var(--gold); }
.test-detail { color: var(--gold-deep); text-transform: uppercase; letter-spacing: .06em; }
.test-btn { border-radius: 2px; }

.cta-band { overflow: hidden; text-align: left; border-top: 1px solid rgba(255,255,255,.15); }
.cta-band .container { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 20px 70px; }
.cta-band h2 { margin: 0; line-height: .85; }
.cta-band p { margin: 0; }
.cta-band .cta-btns { grid-column: 2; justify-content: flex-start; margin: 0; }
.cta-band::after { content: 'L'; position: absolute; right: 3%; top: -48%; font: 400 28rem/1 'Bebas Neue'; color: rgba(255,255,255,.025); transform: rotate(12deg); }

/* Inner-page hero */
.page-hero { min-height: 470px; padding: calc(var(--nav-h) + 92px) 0 75px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 78% 35%,rgba(207,173,105,.19),transparent 28%), linear-gradient(125deg,#070707,#1a1a1a); }
.page-hero::after {
  content: ''; position: absolute; width: 58vw; height: 58vw; right: -22vw; top: -36vw;
  border: 1px solid rgba(207,173,105,.32); border-radius: 50%; box-shadow: 0 0 0 80px rgba(207,173,105,.025),0 0 0 160px rgba(207,173,105,.018);
  animation: orbit 16s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.page-hero-inner { text-align: left; position: relative; z-index: 2; }
.breadcrumb { justify-content: flex-start; }
.page-hero h1 { max-width: 850px; margin: 22px 0 18px; font-size: clamp(4rem,8vw,7.5rem); line-height: .82; }
.page-hero p { margin: 0; max-width: 620px; }
.courses-hero,
.about-hero,
.contact-hero {
  min-height: 520px;
  background:
    linear-gradient(135deg, #090909 0%, #151515 54%, #24201a 100%);
}
.courses-hero::before,
.about-hero::before,
.contact-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(207,173,105,.13) 0 1px, transparent 1px 15%),
    repeating-linear-gradient(115deg, transparent 0 74px, rgba(255,255,255,.04) 75px, transparent 77px 150px),
    radial-gradient(circle at 18% 88%, rgba(207,173,105,.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.08), transparent 30%);
}
.courses-hero::after,
.about-hero::after,
.contact-hero::after {
  content: ''; position: absolute; z-index: 1; inset: auto -12vw -22vw auto;
  width: min(760px, 64vw); aspect-ratio: 1; height: auto;
  border: 1px solid rgba(207,173,105,.3); border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(207,173,105,.03),
    0 0 0 112px rgba(207,173,105,.018),
    inset 0 0 80px rgba(207,173,105,.035);
  animation: orbit 24s linear infinite;
}
.courses-hero::after { inset: auto -10vw -20vw auto; }
.contact-hero::after { inset: auto auto -24vw -16vw; }
.courses-hero .page-hero-inner,
.about-hero .page-hero-inner,
.contact-hero .page-hero-inner {
  max-width: 920px;
  padding-left: 24px;
  border-left: 4px solid var(--gold);
}
.courses-hero .page-hero-inner::after,
.about-hero .page-hero-inner::after,
.contact-hero .page-hero-inner::after {
  content: 'E3';
  position: absolute;
  right: max(-270px, -20vw);
  bottom: -50px;
  font: 400 clamp(9rem,22vw,18rem)/.8 'Bebas Neue', sans-serif;
  letter-spacing: .02em;
  color: rgba(255,255,255,.035);
  pointer-events: none;
}
.courses-hero .page-hero-inner::after { content: 'DRIVE'; }
.contact-hero .page-hero-inner::after { content: 'CALL'; }
.page-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.page-hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  font-weight: 800;
}
.page-hero-metrics strong {
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
}

/* Shared content cards */
.course-card,.value-card,.about-card,.contact-form-wrap,.contact-item,.faq-item,.modal { border-radius: 2px; }
.course-card { border-radius: 0; }
.course-card { border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.course-card:hover { transform: translateY(-8px); box-shadow: 14px 14px 0 var(--paper-deep); }
.course-icon,.value-icon,.contact-icon { border-radius: 2px; background: var(--paper-deep); color: var(--gold-deep); }
.course-popular { border-radius: 0; background: var(--gold); color: var(--ink); }
.course-price { color: var(--ink); }
.course-price span { color: var(--text-2); }
.course-feats svg { color: var(--gold-deep); }
.about-card { background: var(--charcoal); box-shadow: 20px 20px 0 var(--gold); }
.about-avatar { border-radius: 2px; }
.contact-form-wrap { border: 1px solid var(--line); box-shadow: 16px 16px 0 var(--paper-deep); }
.form-input,.form-select,.form-textarea { border-radius: 1px; background: transparent; }
.form-input:focus,.form-select:focus,.form-textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(207,173,105,.14); }
.form-submit { border-radius: 2px; background: var(--gold); color: var(--ink); }

.service-detail-section { background: var(--paper); }
.service-detail-section.alt { background: var(--paper-deep); }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.route-grid,.policy-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.detail-card {
  background: rgba(255,255,255,.58); border: 1px solid var(--line); padding: 30px;
  min-height: 100%; transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.detail-card:hover { transform: translateY(-6px); box-shadow: 14px 14px 0 rgba(207,173,105,.18); background: #fff; }
.detail-card h3 { color: var(--ink); font-size: 1.55rem; margin-bottom: 12px; text-transform: uppercase; }
.detail-card p { color: var(--text-2); font-size: .92rem; line-height: 1.75; }
.test-centres-panel { display:grid; grid-template-columns:1.4fr .8fr; gap:32px; margin:0 0 48px; padding:32px; background:var(--ink); color:#fff; }
.test-centres-panel h3 { margin:8px 0 10px; color:#fff; font-size:1.55rem; text-transform:uppercase; }
.test-centres-panel p { color:rgba(255,255,255,.75); font-size:.92rem; line-height:1.75; }
.test-centres-kicker { color:var(--gold); font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.test-centres-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 18px; margin:22px 0 0; padding:0; list-style:none; }
.test-centres-list li { color:#fff; font-size:.9rem; padding-left:18px; position:relative; }
.test-centres-list li::before { content:'+'; position:absolute; left:0; color:var(--gold); font-weight:800; }
.test-day-callout { padding:24px; border:1px solid rgba(207,173,105,.45); background:rgba(207,173,105,.12); }
.test-day-callout h3 { color:var(--gold); }
.test-day-callout .btn { margin-top:10px; }
.detail-list { list-style: none; display: grid; gap: 10px; margin: 0 0 26px; }
.detail-list:last-child { margin-bottom: 0; }
.detail-list li {
  color: var(--text-2); font-size: .9rem; line-height: 1.55;
  padding-left: 18px; position: relative;
}
.detail-list li::before {
  content: ''; position: absolute; left: 0; top: .66em; width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg);
}
.detail-list strong { color: var(--ink); }
.faq-item.open .faq-a { max-height: 520px; }

footer { border-top: 4px solid var(--gold); }
.foot-heading { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.foot-links a:hover { color: var(--gold); transform: translateX(4px); }

/* Motion polish */
.rev,.rev-l,.rev-r { transition-duration: .9s; transition-timing-function: cubic-bezier(.2,.8,.2,1); }
.hero.is-ready .hero-kicker { animation: heroIn .7s .1s both; }
.hero.is-ready .hero-title span:first-child { animation: heroIn .85s .2s both; }
.hero.is-ready .hero-title span:last-child { animation: heroIn .85s .32s both; }
.hero.is-ready .hero-copy > p { animation: heroIn .75s .45s both; }
.hero.is-ready .hero-copy-actions { animation: heroIn .75s .56s both; }
.hero.is-ready .hero-action-dock { animation: dockIn .8s .65s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(35px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dockIn { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }

@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .feat-card:nth-child(2) { border-right: 0; }
  .feat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-hd { grid-template-columns: 1fr; }
  .section-hd .section-tag { grid-column: auto; }
  .section-hd p { margin: 0; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .cta-btns { grid-column: 1; }
  .route-grid,.policy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .nav-menu { background: rgba(10,10,10,.98); padding: 18px; }
  .nav-menu a:not(.btn-nav-book) { padding: 12px 15px; }
  .nav-menu a:not(.btn-nav-book)::after { display:none; }
  .btn-nav-book { margin: 8px 0 0; text-align:center; }
  .hero-copy { left: 28px; width: calc(100% - 56px); top: 43%; }
  .hero-title { font-size: clamp(4rem,11vw,6.6rem); }
  .hero-action-dock { left: 28px; right: 28px; }
}

@media (max-width: 600px) {
  section { padding-top: 76px; padding-bottom: 76px; }
  .nav-inner { padding: 0 20px; }
  .hero { height: 780px; min-height: 0; padding: 0; }
  .hero-media { position: absolute; height: 100%; aspect-ratio: auto; }
  .hero-media img { position: absolute; object-fit: contain; object-position: center center; filter: grayscale(1) contrast(1.12) brightness(.84); transform: scale(.82); }
  .hero-image-shade { display: block; background: linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.28) 34%,rgba(0,0,0,.9) 78%); }
  .hero-copy { top: 43%; left: 20px; width: calc(100% - 40px); }
  .hero-kicker { font-size: .61rem; }
  .hero-kicker span { width: 28px; }
  .hero-title { font-size: clamp(3.65rem,18vw,5.2rem); margin-top: 17px; }
  .hero-copy > p { max-width: 92%; font-size: .92rem; line-height: 1.55; }
  .hero-copy-actions { margin-top: 22px; gap: 20px; }
  .hero-copy-actions .btn { padding: 13px 15px; font-size: .68rem; }
  .hero-text-link { font-size: .64rem; }
  .hero-action-dock { left: 20px; right: 20px; bottom: 18px; padding: 18px; border-left-width: 3px; background: rgba(10,10,10,.88); }
  .hero-dock-intro { margin-bottom: 16px; }
  .hero-dock-intro strong { font-size: 1.42rem; }
  .hero-dock-actions { grid-template-columns: 1fr; }
  .hero-dock-actions .btn:first-child { display: none; }
  .road-ticker-track { padding: 10px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .feat-card:last-child { border-bottom: 0 !important; }
  .feat-icon { margin-bottom: 26px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stat-item:last-child { border-bottom: 0; }
  .page-hero { min-height: 390px; padding: calc(var(--nav-h) + 60px) 0 58px; }
  .page-hero h1 { font-size: clamp(3.5rem,17vw,5.2rem); }
  .courses-hero .page-hero-inner,
  .about-hero .page-hero-inner,
  .contact-hero .page-hero-inner { padding-left: 18px; }
  .courses-hero .page-hero-inner::after,
  .about-hero .page-hero-inner::after,
  .contact-hero .page-hero-inner::after { display: none; }
  .page-hero-metrics { gap: 8px; margin-top: 24px; }
  .page-hero-metrics span { width: 100%; justify-content: space-between; }
  .detail-grid,.route-grid,.policy-grid { grid-template-columns: 1fr; }
  .test-centres-panel { grid-template-columns:1fr; padding:24px 20px; }
  .test-centres-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-card { padding: 24px 20px; }
  .cta-band .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-band .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Rounded UI refinement */
.btn,
.btn-nav-book,
.section-tag,
.hero-badge,
.course-popular {
  border-radius: 999px !important;
}
.feat-card,
.test-card,
.course-card,
.value-card,
.about-card,
.contact-form-wrap,
.contact-item,
.info-card,
.faq-item,
.modal,
.map-box {
  border-radius: 18px !important;
}
.feat-icon,
.course-icon,
.value-icon,
.contact-icon,
.info-icon,
.about-avatar,
.social-btn {
  border-radius: 14px !important;
}
.form-input,
.form-select,
.form-textarea,
.newsletter-row input,
.newsletter-row button,
.form-submit {
  border-radius: 12px !important;
}
.test-btn,
.test-avatar,
.modal-close,
#back-to-top {
  border-radius: 999px !important;
}

/* ============================================================
   Unified production design system
   Final cascade layer for the public website.
   ============================================================ */
:root {
  --ds-bg: #f7f5f0;
  --ds-surface: #ffffff;
  --ds-surface-soft: #f1eee7;
  --ds-ink: #161615;
  --ds-muted: #625f58;
  --ds-subtle: #8a8579;
  --ds-line: #ded8cc;
  --ds-line-strong: #cfc5b5;
  --ds-brand: #b9934f;
  --ds-brand-dark: #80622e;
  --ds-brand-soft: #efe3cb;
  --ds-success: #167747;
  --ds-danger: #b42318;
  --ds-focus: #2f6fed;
  --ds-radius-xs: 8px;
  --ds-radius-sm: 12px;
  --ds-radius-md: 16px;
  --ds-radius-lg: 22px;
  --ds-shadow-sm: 0 1px 2px rgba(22, 22, 21, .06), 0 1px 8px rgba(22, 22, 21, .04);
  --ds-shadow-md: 0 12px 32px rgba(35, 31, 24, .09);
  --ds-shadow-lg: 0 24px 70px rgba(28, 24, 18, .16);
  --ds-container: 1184px;
  --ds-ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 76px;
}

html { font-size: 16px; }
body {
  min-width: 320px;
  background: var(--ds-bg);
  color: var(--ds-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(.95rem, .2vw + .9rem, 1rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(185,147,79,.13), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0) 22rem);
}
h1, h2, h3, h4, h5, h6 {
  color: var(--ds-ink);
  letter-spacing: .01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(47,111,237,.72);
  outline-offset: 3px;
}
button:disabled,
.btn[aria-disabled="true"],
.form-submit:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none !important;
}
section { padding: clamp(64px, 8vw, 104px) 0; }
.container,
.nav-inner {
  width: min(var(--ds-container), calc(100% - clamp(32px, 5vw, 64px)));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section-hd {
  margin-bottom: clamp(32px, 5vw, 56px);
  gap: clamp(16px, 3vw, 32px);
}
.section-hd h2,
.cta-band h2,
.page-hero h1 {
  letter-spacing: .005em;
}
.section-hd h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.4rem);
}
.section-hd p,
.page-hero p,
.cta-band p {
  color: var(--ds-muted);
  max-width: 62ch;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255,255,255,.82);
}
.cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.06);
}
.cta-band .btn-ghost:hover {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.14);
}
.section-tag {
  min-height: 32px;
  gap: 10px;
  color: var(--ds-brand-dark);
  font-size: .76rem;
  letter-spacing: .12em;
}
.section-tag svg { color: var(--ds-brand); }

/* Navigation */
.navbar {
  height: var(--nav-h);
  background: rgba(18,18,17,.92);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.navbar.scrolled {
  height: 66px;
  background: rgba(18,18,17,.97);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.nav-logo {
  min-height: 44px;
  gap: 16px;
  color: #fff;
}
.nav-logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 22px !important;
  background: var(--ds-brand);
  color: #111;
}
.nav-logo-mark::after { font-size: 1.25rem; }
.nav-logo-text,
.foot-brand .nav-logo > span:last-child {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(.98rem, 1vw, 1.1rem);
  letter-spacing: .01em;
}
.nav-logo-text { color: var(--gold); font-size: clamp(1.15rem, 1.35vw, 1.45rem); }

/* Keep the compact legal-policy templates visually aligned with the main navbar. */
body:has(.legal-content) .nav-logo-text { display: none; }
body:has(.legal-content) .nav-logo-mark { display: none; }
body:has(.legal-content) .nav-logo::before {
  content: 'E3';
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: var(--ds-brand);
  color: #111;
  font-family: Poppins, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}
body:has(.legal-content) .nav-logo::after {
  content: 'Driving School';
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  font-weight: 800;
}
body:has(.legal-content) .nav-logo { gap: 16px; }
body:has(.legal-content) > footer:not(.site-footer-full) { display: none; }
.nav-menu { gap: 6px; }
.nav-menu a:not(.btn-nav-book) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--ds-radius-sm) !important;
  color: rgba(255,255,255,.72);
  letter-spacing: .08em;
  transition: background .2s var(--ds-ease), color .2s var(--ds-ease);
}
.nav-menu a:not(.btn-nav-book)::after { display: none; }
.nav-menu a:not(.btn-nav-book):hover,
.nav-menu a:not(.btn-nav-book).active {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.btn-nav-book {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-sm) !important;
  background: var(--ds-brand);
  color: #111 !important;
  box-shadow: none !important;
}
.btn-nav-book:hover {
  background: #fff !important;
  transform: translateY(-1px) !important;
}
.hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--ds-radius-sm);
}
.hamburger:hover { background: rgba(255,255,255,.08); }

/* Buttons and controls */
.btn,
.form-submit,
.newsletter-row button,
.e3-dialog-ok {
  min-height: 44px;
  border-radius: var(--ds-radius-sm) !important;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: transform .18s var(--ds-ease), background .18s var(--ds-ease), color .18s var(--ds-ease), border-color .18s var(--ds-ease), box-shadow .18s var(--ds-ease);
}
.btn { padding: 12px 22px; }
.btn-primary,
.form-submit {
  background: var(--ds-brand);
  color: #111;
  box-shadow: var(--ds-shadow-sm);
}
.btn-primary:hover,
.form-submit:hover {
  background: var(--ds-ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-md);
}
.btn-white {
  background: #fff;
  color: var(--ds-ink);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--ds-shadow-sm);
}
.btn-white:hover {
  background: var(--ds-brand-soft);
  color: var(--ds-ink);
}
.btn-ghost,
.btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.32);
}
.btn-ghost:hover,
.btn-outline:hover {
  background: #fff;
  color: var(--ds-ink);
  border-color: #fff;
}

/* Hero */
.hero {
  min-height: 720px;
  height: min(920px, 100svh);
  background: #0d0d0c;
}
.hero-media img {
  filter: contrast(1.04) saturate(.88) brightness(.82);
  transform: scale(var(--hero-scale, 1)) !important;
}
.hero-image-shade {
  background:
    linear-gradient(90deg, rgba(5,5,5,.82) 0%, rgba(5,5,5,.56) 40%, rgba(5,5,5,.08) 72%),
    linear-gradient(180deg, rgba(0,0,0,.16), transparent 50%, rgba(0,0,0,.74));
}
.hero-copy {
  left: max(clamp(24px, 5vw, 40px), calc((100% - var(--ds-container))/2));
  width: min(680px, calc(100% - clamp(48px, 8vw, 80px)));
}
.hero-title {
  font-size: clamp(4rem, 8vw, 7.7rem);
  line-height: .86;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,.46);
}
.hero-title span { color: inherit; }
.hero-copy > p {
  max-width: 520px;
  color: rgba(255,255,255,.82);
}
.hero-action-dock {
  left: max(clamp(20px, 5vw, 40px), calc((100% - var(--ds-container))/2));
  right: max(clamp(20px, 5vw, 40px), calc((100% - var(--ds-container))/2));
  bottom: clamp(20px, 3vw, 32px);
  border-radius: var(--ds-radius-lg) !important;
  border: 1px solid rgba(255,255,255,.16);
  border-left: 4px solid var(--ds-brand);
  background: rgba(17,17,16,.52);
  box-shadow: var(--ds-shadow-lg);
}
.hero-dock-intro strong {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
}
.hero-dock-actions .btn { min-width: 0; }
.road-ticker {
  background: var(--ds-brand);
  border: 0;
}

/* Legal pages */
.legal-content {
  max-width: 920px;
  padding-top: clamp(42px, 6vw, 78px);
  padding-bottom: clamp(58px, 8vw, 100px);
  counter-reset: legal-section;
}
.legal-content::before {
  content: 'E3 DRIVING SCHOOL  /  INFORMATION';
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.legal-content h2 {
  counter-increment: legal-section;
  margin: 0;
  padding: 25px 30px 8px;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  border-left: 1px solid var(--ds-line);
  border-right: 1px solid var(--ds-line);
  background: rgba(255,255,255,.76);
}
.legal-content h2::before {
  content: counter(legal-section, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .08em;
}
.legal-content h2:first-of-type { border-top: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0; }
.legal-content h2 + p {
  margin: 0;
  padding: 0 30px 28px;
  color: var(--text-2);
  line-height: 1.85;
  border-left: 1px solid var(--ds-line);
  border-right: 1px solid var(--ds-line);
  background: rgba(255,255,255,.76);
}
.legal-content h2:last-of-type + p { border-bottom: 1px solid var(--ds-line); border-radius: 0 0 var(--ds-radius-lg) var(--ds-radius-lg); }
.legal-content p a { color: var(--blue); font-weight: 700; }
@media (max-width: 600px) {
  .legal-content h2 { padding-inline: 20px; }
  .legal-content h2 + p { padding-inline: 20px; }
}

/* Cards, grids, and content surfaces */
.features,
.testimonials,
.faq-section,
.service-detail-section,
.service-detail-section.alt,
section[style*="var(--off-white)"],
section[style*="var(--white)"] {
  background: transparent !important;
}
.features-grid,
.courses-grid,
.values-grid,
.detail-grid,
.route-grid,
.policy-grid,
.contact-grid,
.about-grid,
.stats-grid {
  gap: clamp(18px, 2.5vw, 28px);
}
.features-grid {
  border: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.courses-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feat-card,
.test-card,
.course-card,
.value-card,
.detail-card,
.info-card,
.contact-form-wrap,
.about-card,
.google-reviews-panel,
.faq-item,
.modal,
.e3-dialog-card {
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg) !important;
  background: rgba(255,255,255,.82);
  box-shadow: var(--ds-shadow-sm);
}
.feat-card,
.value-card,
.course-card,
.detail-card,
.test-card {
  padding: clamp(22px, 2.8vw, 34px);
}
.about-card {
  background: linear-gradient(145deg, var(--navy), #0C2D5A);
}
.about-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
}
.about-avatar svg {
  width: 64px;
  height: 64px;
}
.feat-card {
  text-align: left;
  border-right: 1px solid var(--ds-line);
}
.feat-card:last-child { border-right: 1px solid var(--ds-line); }
.feat-card:hover,
.value-card:hover,
.course-card:hover,
.detail-card:hover,
.test-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--ds-shadow-md);
}
.feat-icon,
.course-icon,
.value-icon,
.contact-icon,
.info-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: var(--ds-radius-md) !important;
  background: var(--ds-brand-soft);
  color: var(--ds-brand-dark);
}
.feat-icon svg,
.course-icon svg,
.value-icon svg,
.info-icon svg { color: currentColor; }
.feat-card:hover .feat-icon,
.course-card:hover .course-icon,
.value-card:hover .value-icon {
  background: var(--ds-ink);
  color: var(--ds-brand);
  transform: none;
}
.feat-card h3,
.value-card h3,
.course-card h3,
.detail-card h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1;
}
.feat-card p,
.value-card p,
.course-card p,
.detail-card p,
.test-text {
  color: var(--ds-muted);
}
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.course-feats {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
}
.course-foot {
  margin-top: auto;
  gap: 16px;
}
.course-popular,
.badge-dvsa {
  border-radius: 999px !important;
  background: var(--ds-brand);
  color: #111;
}
.stats {
  background: linear-gradient(135deg, #151514, #242019);
  padding: clamp(56px, 7vw, 82px) 0;
}
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats .rev {
  opacity: 1;
  transform: none;
}
.stat-item {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ds-radius-lg);
  background: rgba(255,255,255,.04);
}
.stat-num {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.stat-suffix {
  color: var(--ds-brand);
  -webkit-text-fill-color: var(--ds-brand);
}
.stat-label {
  color: rgba(255,255,255,.72);
}
.google-reviews-panel {
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  box-shadow: var(--ds-shadow-md);
  padding: clamp(20px, 3vw, 34px);
}
.google-map-frame,
.map-box {
  border-radius: var(--ds-radius-md) !important;
  border: 1px solid var(--ds-line);
  overflow: hidden;
}

/* Inner pages */
.page-hero {
  min-height: clamp(390px, 48vw, 540px);
  padding: calc(var(--nav-h) + clamp(54px, 8vw, 92px)) 0 clamp(56px, 8vw, 84px);
  background: #111;
}
.page-hero::before {
  background:
    radial-gradient(circle at 76% 22%, rgba(185,147,79,.25), transparent 26rem),
    linear-gradient(135deg, #0e0e0d, #24211c);
}
.page-hero-inner { max-width: 920px; }
.page-hero h1 {
  font-size: clamp(3.2rem, 7.6vw, 6.8rem);
}
.page-hero p { color: rgba(255,255,255,.76); }
.page-hero-metrics span {
  border-radius: var(--ds-radius-sm);
  min-height: 44px;
}
.breadcrumb {
  min-height: 28px;
  gap: 10px;
}
.breadcrumb-cur { color: var(--ds-brand); }

/* Forms and modal */
.form-group { gap: 7px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-label {
  color: var(--ds-ink);
  font-size: .82rem;
  font-weight: 800;
}
.form-input,
.form-select,
.form-textarea,
.newsletter-row input {
  min-height: 46px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-sm) !important;
  background: #fff;
  color: var(--ds-ink);
  box-shadow: none;
  transition: border-color .18s var(--ds-ease), box-shadow .18s var(--ds-ease), background .18s var(--ds-ease);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.newsletter-row input:focus {
  border-color: var(--ds-focus);
  box-shadow: 0 0 0 4px rgba(47,111,237,.14);
}
.form-textarea { min-height: 132px; resize: vertical; }
.contact-form-wrap {
  padding: clamp(24px, 4vw, 40px);
}
.modal-overlay {
  background: rgba(16,16,15,.72);
  backdrop-filter: blur(10px);
}
.modal {
  width: min(620px, calc(100% - 32px));
  padding: clamp(22px, 4vw, 40px);
}
.modal-close,
.test-btn,
#back-to-top,
.social-btn {
  min-width: 44px;
  min-height: 44px;
}
.success-ring {
  background: rgba(22,119,71,.12);
  color: var(--ds-success);
}

/* Shared booking modal layout across every page */
.modal form { display: grid; gap: 0 16px; }
.modal form > .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.modal form > .form-group,
.modal form > .form-row,
.modal form > .form-submit { grid-column: 1 / -1; }
.modal form > .form-row .form-group { margin-bottom: 12px; }
.modal .form-group { margin-bottom: 12px; }
.modal { max-width: 620px; }

@media (max-width: 560px) {
  .modal form > .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* FAQ and responsive readable lists */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-q {
  min-height: 58px;
  padding: 18px 20px;
  border-radius: var(--ds-radius-lg);
  text-align: left;
}
.faq-a p { color: var(--ds-muted); }
.detail-list li { color: var(--ds-muted); }

/* Footer */
footer {
  padding: clamp(56px, 7vw, 80px) 0 32px;
  background: #10100f;
  border-top: 4px solid var(--ds-brand);
}
.foot-grid {
  grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(150px, .75fr)) minmax(240px, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.foot-heading { color: var(--ds-brand); }
.foot-links a,
.foot-brand p,
.foot-bottom,
.foot-legal a {
  color: rgba(255,255,255,.66);
}
.newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.newsletter-row button {
  padding: 10px 18px;
  background: var(--ds-brand);
  color: #111;
}
.newsletter-row button:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 1100px) {
  .features-grid,
  .courses-grid,
  .values-grid,
  .route-grid,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .google-reviews-panel,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-action-dock {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  .nav-menu {
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 0 0 var(--ds-radius-lg) var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-lg);
  }
  .nav-menu a:not(.btn-nav-book),
  .btn-nav-book {
    width: 100%;
  }
  .section-hd {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .section-hd p { margin: 0; }
  .hero {
    height: auto;
    min-height: 780px;
  }
  .hero-copy {
    top: 42%;
    left: clamp(20px, 5vw, 28px);
    width: calc(100% - clamp(40px, 10vw, 56px));
  }
  .hero-action-dock {
    left: clamp(16px, 5vw, 28px);
    right: clamp(16px, 5vw, 28px);
    grid-template-columns: 1fr;
  }
  .hero-dock-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cta-band .container {
    grid-template-columns: 1fr;
  }
  .cta-band .cta-btns {
    grid-column: auto;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-inner {
    width: min(var(--ds-container), calc(100% - 32px));
  }
  section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .nav-logo-text span { display: none; }
  .nav-logo { gap: 8px; }
  .nav-logo-mark { width: 46px; height: 46px; border-radius: 15px !important; }
  .nav-logo-mark::after { font-size: .95rem; }
  .nav-logo-text { font-size: 1rem; }
  body:has(.legal-content) .nav-logo::before { width: 46px; height: 46px; border-radius: 15px; font-size: .95rem; }
  body:has(.legal-content) .nav-logo::after { font-size: 1rem; }
  .hero {
    min-height: 760px;
  }
  .hero-media img {
    object-fit: contain;
    object-position: center center;
    transform: scale(.82);
  }
  .hero-image-shade {
    background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.36) 38%, rgba(0,0,0,.91) 78%);
  }
  .hero-copy {
    top: 40%;
  }
  .hero-title {
    font-size: clamp(3.35rem, 17vw, 4.8rem);
  }
  .hero-copy-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .hero-copy-actions .btn,
  .hero-text-link {
    justify-content: center;
    text-align: center;
  }
  .hero-action-dock {
    bottom: 16px;
    padding: 18px;
  }
  .hero-dock-actions {
    grid-template-columns: 1fr;
  }
  .hero-dock-actions .btn:first-child { display: none; }
  .features-grid,
  .courses-grid,
  .values-grid,
  .detail-grid,
  .route-grid,
  .policy-grid,
  .stats-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .feat-card,
  .feat-card:nth-child(-n+2),
  .stat-item {
    border: 1px solid var(--ds-line) !important;
  }
  .stat-item {
    border-color: rgba(255,255,255,.14) !important;
  }
  .course-foot {
    display: grid;
    grid-template-columns: 1fr;
  }
  .course-foot .btn {
    width: 100%;
    justify-content: center;
  }
  .page-hero {
    min-height: auto;
  }
  .page-hero-metrics span {
    width: 100%;
  }
  .cta-band {
    text-align: left;
  }
  .cta-band .cta-btns {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cta-band .btn {
    width: 100%;
  }
  .foot-grid,
  .foot-bottom {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    display: grid;
  }
  .foot-bottom {
    align-items: flex-start;
  }
  .foot-legal {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .newsletter-row {
    grid-template-columns: 1fr;
  }
  #back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .btn,
  .form-submit {
    width: 100%;
    justify-content: center;
    padding-left: 14px;
    padding-right: 14px;
    font-size: .76rem;
  }
  .hero-title {
    font-size: clamp(3rem, 16vw, 3.8rem);
  }
  .hero-dock-intro strong {
    font-size: 1.25rem;
  }
  .modal {
    width: calc(100% - 20px);
    padding: 20px 16px;
  }
}
