/* =========================================================
   Star Auto Services — vanilla rebuild (1:1 layout match)
   ========================================================= */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select, button { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ----- Design tokens (matched to source) ----- */
:root {
  --brand: #20a64b;
  --brand-dim: #178a3c;
  --dark: #252525;
  --ink: #555;
  --ink-light: #888;
  --bg-page: #fbfbfb;
  --container: 960px;

  --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
  --font-display: 'Open Sans', Helvetica, Arial, sans-serif;
  --font-light: 'Open Sans', Helvetica, Arial, sans-serif;
}

html, body { height: auto; }
body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  /* IMPORTANT: page-background.png is a dark frame with a transparent V interior.
     Body bg-color must be white so transparency reveals white (matching source). */
  background-color: #ffffff;
  background-image: url('../img/page-background.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { transition: color .15s; }
a:hover { color: var(--brand); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 100; }

/* =========================================================
   Top header band — dark, full width, green borders
   ========================================================= */
.top-wrapper {
  background-color: var(--dark);
  border-top: 6px solid var(--brand);
  border-bottom: 4px solid var(--brand);
  color: #fff;
  position: relative;
  z-index: 20;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  gap: 20px;
}
.logo {
  display: inline-block;
  line-height: 0;
}
.logo img {
  height: 160px;
  width: auto;
  display: block;
}
.phone-block {
  text-align: right;
  font-family: var(--font-display);
}
.phone-block .label {
  display: block;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 6px;
  font-family: var(--font-body);
}
.phone-block .number {
  display: inline-block;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  font-family: var(--font-body);
}
.phone-block .number:hover { color: var(--brand); }

/* =========================================================
   Primary nav — white band, 55px tall
   ========================================================= */
.main-menu {
  background: #fff;
  height: 55px;
  position: relative;
  z-index: 19;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.main-menu .container {
  padding: 0 20px;
  height: 100%;
}
.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.nav-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-list a:hover,
.nav-list .is-current > a {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
/* Opening Times keeps the green underline as a permanent accent */
.nav-list .is-top-bar > a {
  border-bottom-color: var(--brand);
  color: var(--brand);
}
.nav-home {
  display: flex;
  align-items: center;
}
.nav-home a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-right: 8px;
  border: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand) !important;
  margin-bottom: 0;
}
.nav-home a img {
  width: 18px;
  height: 18px;
  display: block;
}
.nav-home a:hover { background: var(--brand); }
.nav-home a:hover img { filter: brightness(0) invert(1); }

.nav-toggle {
  display: none;
  padding: 14px 16px;
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  align-items: center;
  gap: 10px;
}
.nav-toggle .bars {
  display: inline-block;
  width: 22px;
  height: 16px;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--dark);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span    { top: 7px; }
.nav-toggle .bars::after  { bottom: 0; }

/* =========================================================
   Hero — boxed inside the 960px container (V wings flank it)
   ========================================================= */
.hero {
  background: transparent;
  padding-top: 24px;
}
.hero > .container {
  /* container provides the 960px box */
}
.hero-frame {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  width: 100%;
}
.hero .green-divider-wrap {
  width: 100%;
}
.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 178px;
  height: auto;
  z-index: 3;
}
.hero-text {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
  padding: 22px 30px;
  z-index: 2;
}
.hero-text-headline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 auto;
  color: #fff;
  max-width: 820px;
}

/* Inner-page hero — has the green "Page Title" badge at the bottom */
.hero-page-title {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--brand);
  color: #fff;
  padding: 12px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: calc(100% - 40px);
}

/* Green divider line under hero */
.green-divider {
  margin: 26px auto 0;
  height: 3px;
  background: var(--brand);
  width: 240px;
  max-width: 50%;
}

/* =========================================================
   Page content (the centered area where main content lives)
   ========================================================= */
.page-content {
  padding: 36px 0 60px;
}

.content-card {
  background: #fff;
  max-width: 580px;
  margin: 0 auto;
  padding: 28px 32px;
  text-align: center;
}
.content-card p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* Inner-page title that sits OUTSIDE the white card, centered on dark V */
.outside-title {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  color: #999;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 14px;
  margin: 0 auto 22px;
  text-transform: none;
}
.outside-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--brand);
}

/* What we do — featured panel (white card sitting on dark V) */
.feature-panel {
  text-align: center;
  background: #fff;
  max-width: 580px;
  margin: 0 auto;
  padding: 28px 36px 32px;
}
.feature-panel h2 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.3px;
  color: #999;
  margin-bottom: 14px;
  text-transform: none;
  position: relative;
  padding-bottom: 14px;
}
.feature-panel h2::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--brand);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.feature-list li {
  padding: 3px 0;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--font-body);
}
.feature-panel p {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
}

/* Two-column row of headed text columns (Welcome / About Us) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 38px;
}
.two-col .col {
  color: #d9d9d9;
}
.two-col h2,
.two-col h3 {
  color: var(--brand);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}
.two-col .col p {
  color: #d9d9d9;
  font-size: 13px;
  line-height: 1.7;
}
.two-col.is-light h2,
.two-col.is-light h3 { color: var(--dark); }
.two-col.is-light .col,
.two-col.is-light .col p { color: var(--ink); }

/* Right-aligned variant */
.two-col .col.is-right { text-align: right; }

/* Inner page intro/headline (single content block) */
.section-block {
  margin-bottom: 36px;
}
.section-block h2 {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 20px;
  margin-bottom: 14px;
}
.section-block p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

/* =========================================================
   Trust strip (ATA + cards on left, copyright info on right)
   ========================================================= */
.trust-strip {
  background: #fff;
  padding: 30px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.trust-strip .logos {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.trust-strip img { max-height: 56px; width: auto; }
.trust-strip .copy-block {
  text-align: right;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
}
.trust-strip .copy-block a { color: var(--brand); }
.trust-strip .copy-block a:hover { color: var(--brand-dim); }

/* =========================================================
   Footer — single dark band with the BCA credit only
   ========================================================= */
.site-footer {
  background: var(--dark);
  text-align: center;
  padding: 16px 0;
}
.site-footer .powered {
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.site-footer .powered a { color: var(--brand); font-weight: 700; }
.site-footer .powered a:hover { color: #fff; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-dim); color: #fff; transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* Page band kept for legacy use but hidden on inner pages by default */
.page-band { display: none; }

/* =========================================================
   Forms
   ========================================================= */
.form {
  background: #fff;
  padding: 26px 28px;
  border-top: 5px solid var(--brand);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 6px;
  font-weight: 700;
}
.form-row.is-required label::after { content: ' *'; color: var(--brand); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  font-size: 13px;
  transition: border-color .15s, background-color .15s;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form-row textarea { min-height: 140px; resize: vertical; }
.form-status {
  display: none;
  padding: 10px 14px;
  border: 1px solid;
  margin-bottom: 14px;
  font-size: 13px;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e7f7ec; color: #1d6c3a; border-color: #b7e3c4; }
.form-status.is-error   { background: #fdecec; color: #8a1f1f; border-color: #f5b6b6; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--brand-dim); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 9px 20px;
}
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-top: 26px;
}
.contact-info {
  background: #fff;
  padding: 26px 28px;
  border-top: 5px solid var(--brand);
}
.contact-info h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 16px 0 4px;
  font-weight: 700;
}
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info .big {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}
.contact-info p { font-size: 14px; }

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* Share buttons */
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  color: #fff !important;
  transition: opacity .15s, transform .15s;
}
.share-link:hover { opacity: .9; transform: translateY(-2px); }
.share-link svg { width: 14px; height: 14px; fill: currentColor; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-em { background: #555; }
.share-link-copy { background: var(--brand); }

/* Hours table */
.hours-card {
  background: #fff;
  padding: 26px 28px;
  border-top: 5px solid var(--brand);
}
.hours-table { width: 100%; }
.hours-table th,
.hours-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}
.hours-table th {
  background: var(--dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-family: var(--font-display);
}
.hours-table td:first-child { font-weight: 700; color: var(--dark); width: 45%; }

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: 50px 20px;
}
.coming-soon span {
  display: inline-block;
  border: 2px solid var(--brand);
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  :root { --container: 720px; }
  .logo img { height: 100px; }
  .phone-block .number { font-size: 26px; }
  .two-col { gap: 32px; }
  .hero-img { height: 260px; }
  .hero-text-headline { font-size: 20px; letter-spacing: 1.5px; }
}

@media (max-width: 768px) {
  :root { --container: 100%; }
  .top-inner { padding: 18px 16px; }
  .logo img { height: 72px; }
  .phone-block .label { font-size: 11px; }
  .phone-block .number { font-size: 20px; }

  .main-menu { height: auto; }
  .main-menu .container { padding: 0; }
  .nav-toggle { display: inline-flex; padding: 14px 18px; }
  .nav-list {
    display: none;
    flex-direction: column;
    height: auto;
    background: #fff;
    border-top: 1px solid #e2e2e2;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: 1px solid #eee; }
  .nav-list a {
    height: auto;
    padding: 14px 18px;
    border-bottom: 0;
    margin-bottom: 0;
  }
  .nav-list a:hover,
  .nav-list .is-current > a { color: var(--brand); border-bottom: 0; background: #f8f8f8; }

  .hero-img { height: 220px; }
  .hero-badge { width: 110px; top: 14px; right: 14px; }
  .hero-text { padding: 14px 18px; }
  .hero-text-headline { font-size: 16px; letter-spacing: 1.2px; }
  .hero-page-title { font-size: 16px; padding: 8px 22px; letter-spacing: 3px; bottom: 16px; }

  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col .col.is-right { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }

  .trust-strip .container { gap: 28px; }
}

@media (max-width: 480px) {
  body { background-size: cover; }
  .phone-block .label { display: none; }
  .top-inner { gap: 12px; }
  .logo img { height: 56px; }
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
