/* ============================================================
   Sutton Driving School — Modern CSS
   Palette: black, white, green (#1a9e1a), orange (#e85d04), red (#c0392b)
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1a9e1a; text-decoration: none; }
a:hover { color: #e85d04; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; }

/* --- Variables -------------------------------------------- */
:root {
  --green:  #1a9e1a;
  --green-dark: #157a15;
  --orange: #e85d04;
  --orange-dark: #c44d00;
  --red:    #c0392b;
  --black:  #111;
  --grey:   #f5f5f5;
  --border: #ddd;
  --max-w:  1140px;
  --header-h: 70px;
}

/* --- Utility ---------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

/* Logo */
.site-logo img { height: 50px; width: auto; display: block; }

/* Contact strip (right of logo on desktop) */
.header-contact {
  display: none; /* hidden on mobile */
  gap: 20px;
  font-size: 13px;
  color: #aaa;
}
.header-contact a { color: #fff; font-weight: 600; }
.header-contact a:hover { color: var(--orange); }

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile nav drawer */
#main-nav {
  background: #1a1a1a;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
#main-nav.open { max-height: 400px; }

#main-nav ul {
  padding: 8px 0 16px;
}
#main-nav ul li a {
  display: block;
  padding: 10px 20px;
  color: #ddd;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-left: 3px solid transparent;
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
  color: #fff;
  border-left-color: var(--orange);
  background: rgba(255,255,255,.05);
}

/* Desktop nav — inline */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .header-contact { display: flex; align-items: center; }

  #main-nav {
    background: transparent;
    max-height: none;
    overflow: visible;
  }
  #main-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
    align-items: center;
  }
  #main-nav ul li a {
    padding: 8px 14px;
    font-size: 13px;
    border-left: none;
    border-radius: 4px;
    color: #ccc;
    white-space: nowrap;
  }
  #main-nav ul li a:hover,
  #main-nav ul li a.active {
    color: #fff;
    background: var(--orange);
    border-left: none;
  }
  #main-nav ul li a.active { background: var(--green); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  opacity: .9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero slide controls */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s;
}
.hero-dot.active { background: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: scale(.97); }

.btn-green  { background: var(--green);  color: #fff; }
.btn-green:hover  { background: var(--green-dark); color: #fff; }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }

.btn-red    { background: var(--red);    color: #fff; }
.btn-red:hover    { background: #a93226; color: #fff; }

.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--black); }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Call-to-action boxes */
.home-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .home-cta-grid { grid-template-columns: repeat(3, 1fr); }
}

.cta-box {
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: filter .2s;
}
.cta-box:hover { filter: brightness(1.08); }
.cta-box h3 { font-size: 1.25rem; margin-bottom: 6px; color: #fff; }
.cta-box p  { font-size: .9rem; color: rgba(255,255,255,.85); }
.cta-box a  { color: #fff; }
.cta-box-green  { background: var(--green); }
.cta-box-orange { background: var(--orange); }
.cta-box-red    { background: var(--red); }
.cta-icon { font-size: 2rem; margin-bottom: 10px; line-height: 1; }

/* Intro section */
.section { padding: 60px 0; }
.section-alt { background: var(--grey); }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
  color: var(--black);
}
.section-subtitle {
  color: #666;
  margin-bottom: 36px;
  font-size: 1rem;
}

/* Feature cards (lessons, areas) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 500px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-3px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card-body h3 a { color: var(--black); }
.card-body h3 a:hover { color: var(--orange); }
.card-body p { color: #666; font-size: .9rem; flex: 1; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--grey); }

/* Testimonial slider */
.testimonial-strip {
  background: var(--black);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.testimonial-strip blockquote {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-strip cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  color: var(--orange);
  font-size: .95rem;
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%);
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 24px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.page-hero-placeholder {
  height: 260px;
  background: linear-gradient(135deg, var(--black) 0%, #333 100%);
  display: flex;
  align-items: flex-end;
}
.page-hero-placeholder h1 {
  color: #fff;
  padding: 24px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

/* Layout: content + sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0;
}
@media (min-width: 900px) {
  .page-layout { grid-template-columns: 1fr 300px; }
}

.page-content h2 { font-size: 1.5rem; margin: 24px 0 12px; color: var(--black); }
.page-content h3 { font-size: 1.2rem; margin: 20px 0 10px; }
.page-content p  { margin-bottom: 1em; line-height: 1.7; color: #444; }
.page-content ul, .page-content ol { margin: 0 0 1em 1.5em; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .4em; line-height: 1.6; color: #444; }
.page-content a  { color: var(--green); }
.page-content a:hover { color: var(--orange); }
.page-content strong, .page-content b { font-weight: 700; }
.page-content em, .page-content i { font-style: italic; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  border-radius: 8px;
  padding: 20px;
  color: #fff;
}
.sidebar-card h4 { font-size: 1rem; margin-bottom: 6px; }
.sidebar-card p, .sidebar-card a { font-size: .9rem; color: rgba(255,255,255,.9); }
.sidebar-card-green  { background: var(--green); }
.sidebar-card-orange { background: var(--orange); }
.sidebar-card-red    { background: var(--red); }
.sidebar-card-dark   { background: #222; }

.sidebar-phone .phone-number {
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
  color: #fff;
  margin: 6px 0 4px;
  letter-spacing: -.02em;
}
.sidebar-phone .phone-number:hover { color: #ffe066; }

.sidebar-testimonial blockquote {
  font-style: italic;
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.sidebar-testimonial cite {
  font-style: normal;
  font-weight: 700;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

/* ============================================================
   PRICES TABLE
   ============================================================ */
.prices-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .9rem;
}
.prices-table th {
  background: var(--black);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.prices-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.prices-table tbody tr:hover { background: var(--grey); }
.prices-table td:first-child a { font-weight: 600; color: var(--black); }
.prices-table td:first-child a:hover { color: var(--orange); }

.price-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  white-space: nowrap;
}
.price-std-badge  { background: var(--black); }
.price-disc-badge { background: var(--green); }
.price-special-badge { background: var(--red); }

/* ============================================================
   AREAS LIST
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 600px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }

.area-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.area-item:hover { border-color: var(--orange); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.area-item a { font-weight: 700; color: var(--black); display: block; margin-bottom: 4px; font-size: 1rem; }
.area-item a:hover { color: var(--orange); }
.area-item .postcode { font-size: .8rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; display: block; }
.area-item p { font-size: .85rem; color: #666; margin: 0; }

/* ============================================================
   TESTIMONIALS PAGE
   ============================================================ */
.testimonials-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }

.testimonial-card {
  background: var(--grey);
  border-radius: 8px;
  padding: 24px;
  border-left: 4px solid var(--green);
  position: relative;
}
.testimonial-card.passed { border-left-color: var(--orange); }
.testimonial-card p { font-style: italic; color: #444; margin-bottom: 12px; line-height: 1.7; }
.testimonial-card footer { font-size: .85rem; color: #888; }
.testimonial-card cite { font-style: normal; font-weight: 700; color: var(--black); }
.passed-badge {
  display: inline-block;
  margin-left: 8px;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; color: #333; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,158,26,.15);
}
.form-field .required { color: var(--red); }
.form-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.form-errors {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.form-errors ul { list-style: disc; padding-left: 20px; }
.form-errors li { margin-bottom: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--black);
  color: #aaa;
  padding: 40px 0 20px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand img { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .7; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #888; font-size: .85rem; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-col address { font-style: normal; font-size: .85rem; line-height: 1.7; }
.footer-col address a { color: #888; }
.footer-col address a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
}

/* ============================================================
   ADMIN STYLES (basic, reused from existing)
   ============================================================ */
/* (admin has its own inline styles — leave as-is) */

/* ============================================================
   GENERICONS used as inline icons
   ============================================================ */
.icon-phone::before  { content: '\f108'; font-family: Genericons; font-size: 1.2em; vertical-align: middle; margin-right: 6px; }
.icon-cart::before   { content: '\f174'; font-family: Genericons; font-size: 1.2em; vertical-align: middle; margin-right: 6px; }
.icon-gift::before   { content: '\f102'; font-family: Genericons; font-size: 1.2em; vertical-align: middle; margin-right: 6px; }
