﻿/* Kingfisher Mini Coaches - site styles
   Fonts: Maven Pro (headings/buttons), Oswald (nav), Source Sans Pro (body)
   Colours: orange #f79321, teal #3db9c7, text #1a1a1a, page bg #eeeeee */

:root {
  --orange: #f79321;
  --orange-dark: #e07f0e;
  --teal: #3db9c7;
  --teal-dark: #2fa2af;
  --ink: #1a1a1a;
  --muted: #473f4f;
  --page: #eeeeee;
  --white: #ffffff;
  --container: 960px;
  --font-heading: "Maven Pro", "Segoe UI", Arial, sans-serif;
  --font-nav: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.site { background: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: relative;
  z-index: 50;
}

.header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: block; width: 220px; height: 62px; }
.logo img, .logo svg { width: 220px; height: 62px; }

.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; align-items: center; gap: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 0;
  margin-left: 22px;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color .2s;
}
.main-nav > ul > li:first-child > a { margin-left: 0; }
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a,
.main-nav > ul > li.open > a { color: var(--orange); }

.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 22px;
  min-width: 190px;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  padding: 6px 0;
}
.sub-menu a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-nav);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.sub-menu a:hover { color: var(--orange); background: #fafafa; }
.has-sub:hover .sub-menu, .has-sub.open .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.header-rule {
  height: 32px;
  display: flex;
  align-items: center;
}
.header-rule::before {
  content: "";
  display: block;
  width: 100%;
  border-top: 3px solid var(--orange);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { background: var(--orange-dark); box-shadow: 0 6px 16px rgba(247,147,33,.35); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-pill { width: 220px; height: 61px; border-radius: 24px; font-size: 20px; }
.btn-tile { width: 222px; height: 54px; border-radius: 15px; font-size: 18px; }
.btn-small { padding: 0 28px; height: 46px; border-radius: 23px; font-size: 16px; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 698px;
  background: #f4f6f8 url("../images/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 55%, rgba(255,255,255,.35) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-bottom: 46px; }
.hero h1 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.1;
  color: var(--teal);
}
.hero .tagline {
  margin: 0 0 30px;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 30px;
  letter-spacing: 8px;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px 32px; }

/* ---------- Service tiles ---------- */
.services-grid {
  padding: 45px 0 40px;
}
.services-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 28px;
}
.service-tile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.service-tile .thumb {
  width: 300px; max-width: 100%; height: 170px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.service-tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-tile:hover .thumb img { transform: scale(1.05); }

/* ---------- Section headings ---------- */
.section-title {
  margin: 0 0 30px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.15;
  color: var(--ink);
  text-transform: uppercase;
}
.section-title.center { text-align: center; }

/* ---------- Gallery ---------- */
.gallery { padding: 50px 0 60px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.gallery-grid a:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery-more { text-align: center; margin-top: 28px; }
.gallery-more a {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  text-transform: lowercase;
}
.gallery-more a:hover { color: var(--orange); }

/* ---------- Follow us ---------- */
.follow { padding: 10px 0 60px; }
.social { display: flex; gap: 14px; }
.social a {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  transition: background .2s, transform .15s;
}
.social a:hover { background: var(--orange); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal);
  color: var(--ink);
  text-align: center;
  padding: 44px 0 40px;
  font-family: var(--font-heading);
  font-size: 20px;
}
.site-footer p { margin: 0; }
.site-footer .contact-line { margin-bottom: 30px; }
.site-footer .contact-line a { color: var(--white); }
.site-footer .contact-line a:hover { text-decoration: underline; }
.site-footer .contact-line .sep { display: inline-block; width: 40px; }
.site-footer .legal a { display: inline-block; margin: 0 14px; font-size: 18px; }
.site-footer .legal a:hover { color: var(--white); }
.site-footer .credit { margin-top: 28px; font-size: 15px; font-family: var(--font-body); opacity: .85; }

/* ---------- Inner pages ---------- */
.page { padding: 40px 0 60px; }
.page h1 { text-align: left; }
.page p { font-size: 17px; margin: 0 0 18px; max-width: 760px; }
.page h2, .page h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
}
.page h2 { font-size: 26px; }
.page h3 { font-size: 21px; }
.page ul.features { margin: 0 0 24px; max-width: 760px; }
.page ul.features li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 17px;
}
.page ul.features li::before {
  content: "";
  position: absolute; left: 4px; top: 13px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.page-actions { margin: 30px 0; display: flex; gap: 24px; flex-wrap: wrap; }
.service-links { display: grid; grid-template-columns: repeat(3, 222px); gap: 22px; margin-top: 12px; }
.callout {
  background: #fff7ee;
  border-left: 4px solid var(--orange);
  padding: 18px 22px;
  margin: 24px 0;
  max-width: 760px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form {
  max-width: 640px;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  padding: 28px 30px 30px;
  border-radius: 6px;
}
.form .field { margin-bottom: 16px; }
.form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="number"], .form input[type="datetime-local"], .form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,185,199,.2);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 10px 0; }
.form .check input { margin-top: 4px; accent-color: var(--orange); }
.form .note { font-size: 13px; color: #555; margin: 10px 0 20px; }
.form .btn { min-width: 160px; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  background: #e7f7f9;
  border: 1px solid var(--teal);
  border-radius: 4px;
  font-weight: 600;
}
.form.sent .form-success { display: block; }

/* ---------- News / vacancies ---------- */
.post { border-bottom: 1px solid #e5e5e5; padding: 24px 0; max-width: 760px; }
.post:last-child { border-bottom: 0; }
.post time { font-size: 14px; color: #666; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px; }
.post h2 { margin-top: 6px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 26px; cursor: pointer;
}
.lightbox .prev, .lightbox .next {
  top: 50%; transform: translateY(-50%);
}
.lightbox .prev { left: 22px; right: auto; }
.lightbox .next { right: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .main-nav > ul > li > a { margin-left: 16px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 92px; left: 0; right: 0;
    background: var(--white);
    border-top: 3px solid var(--orange);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .main-nav > ul > li > a { margin: 0; padding: 14px 24px; font-size: 20px; }
  .has-sub > a::after { float: right; margin-top: 10px; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0; display: none; background: #f7f7f7; padding: 0 0 8px;
  }
  .has-sub.open .sub-menu { display: block; }
  .sub-menu a { padding: 10px 40px; font-size: 16px; }
  .header-rule { display: none; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 44px; }
  .hero .tagline { font-size: 22px; letter-spacing: 5px; }
  .services-grid .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .service-links { grid-template-columns: repeat(2, 222px); }
  .section-title { font-size: 38px; }
}

@media (max-width: 600px) {
  .hero { min-height: 480px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 17px; letter-spacing: 3px; }
  .btn-pill { width: 100%; max-width: 300px; }
  .services-grid .grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 32px; }
  .service-links { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer { font-size: 17px; }
  .site-footer .contact-line .sep { display: block; height: 6px; }
  .site-footer .legal a { margin: 0 8px; font-size: 16px; }
}

