/* ============================================================
   Garage Repair Aberdeen — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Condensed:wght@700&display=swap');

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

:root {
  --blue:     #0B67A4;
  --blue-d:   #084D7B;
  --dark:     #111827;
  --dark-2:   #1f2937;
  --mid:      #374151;
  --muted:    #6b7280;
  --light:    #f3f4f6;
  --white:    #ffffff;
  --radius:   8px;
  --shadow:   0 4px 24px rgba(0,0,0,.10);
  --trans:    .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a  { color: var(--blue); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--blue-d); }

h1,h2,h3,h4 {
  font-family: 'Roboto Condensed', sans-serif;
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--trans);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-d);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,103,164,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .5px;
}
.logo-sub {
  font-size: .72rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: #d1d5db;
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem .55rem;
  border-radius: 6px;
  transition: all var(--trans);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: .45rem 1rem !important;
  border-radius: 6px;
  margin-left: .4rem;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--blue-d) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230B67A4' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11,103,164,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(11,103,164,.15);
  border: 1px solid rgba(11,103,164,.3);
  color: #5BA8D0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--blue); }

.hero-desc {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-phone {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-phone-icon {
  width: 44px;
  height: 44px;
  background: rgba(11,103,164,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-phone-icon svg { width: 20px; height: 20px; stroke: var(--blue); }
.hero-phone small { display: block; color: #94a3b8; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.hero-phone a { color: var(--white); font-size: 1.35rem; font-weight: 700; letter-spacing: .5px; }
.hero-phone a:hover { color: var(--blue); }

.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.hero-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--blue);
  line-height: 1;
  margin-bottom: .2rem;
}
.hero-stat span {
  font-size: .8rem;
  color: #94a3b8;
  font-weight: 500;
}
.trust-row {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.trust-badge {
  background: rgba(11,103,164,.1);
  border: 1px solid rgba(11,103,164,.25);
  border-radius: 6px;
  padding: .4rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  color: #5BA8D0;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ---------- Section styles ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: #94a3b8; }
.section-light { background: var(--light); }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.service-card:hover {
  border-color: rgba(11,103,164,.3);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(11,103,164,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--blue); }
.service-card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.service-card a { font-weight: 600; font-size: .88rem; }

/* ---------- Pricing Table ---------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table th {
  background: var(--dark-2);
  color: var(--white);
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.pricing-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: .95rem;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: #f9fafb; }
.pricing-table tr:hover td { background: rgba(11,103,164,.04); }
.price-tag {
  font-weight: 700;
  color: var(--blue);
  font-size: 1rem;
}
.pkg-badge {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

/* ---------- Feature list ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.feature-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  flex-shrink: 0;
  margin-top: .15rem;
}
.feature-item span { color: var(--mid); font-size: .95rem; }

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---------- Areas grid ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.area-pill {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .9rem 1rem;
  text-align: center;
  transition: all var(--trans);
}
.area-pill:hover {
  border-color: var(--blue);
  background: rgba(11,103,164,.04);
}
.area-pill strong { display: block; font-size: .95rem; }
.area-pill span { color: var(--muted); font-size: .8rem; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--blue);
  padding: 3.5rem 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 2rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.cta-band .btn-outline {
  border-color: rgba(255,255,255,.8);
  color: var(--white);
  flex-shrink: 0;
}
.cta-band .btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step-item {
  position: relative;
  text-align: center;
  padding: 1.5rem;
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: white;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-item h3 { margin-bottom: .5rem; }
.step-item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Info box ---------- */
.info-box {
  background: rgba(11,103,164,.07);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p { margin: 0; font-size: .95rem; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 3.5rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p { color: #94a3b8; font-size: 1.05rem; margin: 0; }
.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .82rem;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: #4b5563; }
.breadcrumb .sep { color: #4b5563; }

/* ---------- Cert badges row ---------- */
.cert-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: .75rem 1.25rem;
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
.cert-badge svg { width: 18px; height: 18px; stroke: var(--blue); flex-shrink: 0; }

/* ---------- Warning box ---------- */
.warning-box {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.warning-box svg { width: 22px; height: 22px; stroke: #d97706; flex-shrink: 0; margin-top: .1rem; }
.warning-box p { margin: 0; font-size: .93rem; color: #92400e; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0f1a;
  color: #9ca3af;
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-name { font-size: 1.35rem; }
.footer-brand p { margin-top: 1rem; font-size: .9rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: #9ca3af; font-size: .9rem; transition: color var(--trans); }
.footer-col ul a:hover { color: var(--blue); }

.footer-contact-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  font-size: .9rem;
}
.footer-contact-item svg { width: 16px; height: 16px; stroke: var(--blue); flex-shrink: 0; margin-top: .25rem; }
.footer-contact-item a { color: #9ca3af; }
.footer-contact-item a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #6b7280; }
.footer-bottom-links a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 2.5rem; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 999;
  }
  .nav-links.open a { padding: .65rem .75rem; font-size: .92rem; }
  .site-header { position: relative; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero { padding: 3.5rem 0 3rem; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .cta-band-inner { flex-direction: column; text-align: center; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stat-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact form ---------- */
.contact-section {
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,103,164,.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; margin-top: .5rem; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
