/* Gansbaai Aircon & Refrigeration — site styles */

:root {
  --blue-dark: #0b3d91;
  --blue: #1a56c4;
  --blue-light: #eaf1fb;
  --red: #d1222d;
  --grey-dark: #222;
  --grey: #555;
  --grey-light: #f4f5f7;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

/* Top contact strip */
.topbar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
  margin-right: 16px;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar .whatsapp-link {
  color: #b9ffce;
  font-weight: 600;
}

/* Header / nav */
header.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--grey-dark);
}

.brand img {
  height: 84px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--grey-dark);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--blue-dark);
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(rgba(11, 61, 145, 0.82), rgba(11, 61, 145, 0.82)),
    url("../images/shop-fleet.jpg") center/cover no-repeat;
  padding: 90px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 28px;
  color: #e7edfb;
}

.hero-small {
  padding: 50px 0;
}

.hero-small h1 {
  font-size: 2rem;
  margin: 0;
}

.hero-small .breadcrumb {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #cfe0ff;
}

.hero-small .breadcrumb a {
  color: #fff;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(209, 34, 45, 0.4);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-dark {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-dark:hover {
  box-shadow: 0 6px 16px rgba(11, 61, 145, 0.35);
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 64px 0;
}

.section-alt {
  background: var(--grey-light);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.9rem;
  color: var(--blue-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: block;
  text-align: center;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* Services grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--blue);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--grey);
  font-size: 0.95rem;
}

/* About preview / two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.two-col h2 {
  color: var(--blue-dark);
  font-size: 1.8rem;
  margin-top: 0;
}

.badge-row {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.badge-row .badge {
  text-align: center;
}

.badge-row .badge strong {
  display: block;
  font-size: 1.8rem;
  color: var(--red);
}

.badge-row .badge span {
  font-size: 0.85rem;
  color: var(--grey);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial p.quote {
  font-style: italic;
  color: var(--grey-dark);
  margin: 0 0 16px;
}

.testimonial .stars {
  color: #f5a623;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial .author {
  font-weight: 700;
  color: var(--blue-dark);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.cta-band p {
  color: #dce6fa;
  margin-bottom: 28px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--blue-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--blue-dark);
  font-size: 2.5rem;
}

/* About page extras */
.timeline {
  border-left: 3px solid var(--blue);
  margin-left: 12px;
  padding-left: 28px;
}

.timeline .item {
  margin-bottom: 28px;
  position: relative;
}

.timeline .item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline .item h4 {
  margin: 0 0 6px;
  color: var(--blue-dark);
}

.timeline .item p {
  margin: 0;
  color: var(--grey);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}

.values-grid .value {
  padding: 20px;
}

.values-grid .icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info .info-block {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info .info-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-info h4 {
  margin: 0 0 4px;
  color: var(--blue-dark);
}

.contact-info p,
.contact-info a {
  margin: 0;
  color: var(--grey);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.hours-table td {
  padding: 6px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.95rem;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--blue-dark);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}

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

.form-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.form-box h3 {
  margin-top: 0;
  color: var(--blue-dark);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d3d8e0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--blue);
}

.form-note {
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 10px;
}

.directions-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Footer */
footer.site-footer {
  background: #0a1a33;
  color: #c6d1e6;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #c6d1e6;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 64px;
  background: var(--white);
  border-radius: 4px;
  padding: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: #8ea0c2;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  z-index: 200;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 860px) {
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: block;
  }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    padding: 10px;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
