/* NB Marine Services / The Paintshed — shared site styles */

:root {
  --green-900: #0b3a2c;
  --green-800: #0f4a37;
  --green-700: #146b4f;
  --green-600: #1a8560;
  --amber-500: #e8a33d;
  --amber-600: #d1901f;
  --cream-50: #faf8f3;
  --cream-100: #f2ede1;
  --ink-900: #182420;
  --ink-700: #3c4a44;
  --white: #ffffff;
  --border: #e2ddd0;
  --shadow: 0 10px 30px rgba(11, 58, 44, 0.12);
  --radius: 10px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
}

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

a { color: var(--green-700); }
a:hover { color: var(--amber-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber-500);
  color: var(--ink-900);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-900);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}
.brand img { height: 48px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; }
.brand-text span { font-size: 0.78rem; color: var(--amber-500); }
.brand:hover { color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  color: var(--amber-500);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.phone-link:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: var(--white);
  font-size: 1rem;
  padding: 8px 12px;
  cursor: pointer;
}

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

.main-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--green-700);
  color: var(--white);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 0 16px; }
  .site-header .container { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, rgba(11,58,44,0.78), rgba(11,58,44,0.88)), var(--hero-image, none) center/cover no-repeat;
  padding: 64px 0 56px;
  text-align: center;
}
.hero .container { max-width: 820px; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: var(--cream-100); }
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.page-hero {
  background: var(--green-900);
  color: var(--white);
  padding: 42px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 6px; }
.page-hero p { color: var(--cream-100); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 0.95rem;
}
.btn-accent { background: var(--amber-500); color: var(--ink-900); }
.btn-accent:hover { background: var(--amber-600); color: var(--ink-900); }
.btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-dark { border-color: var(--green-700); color: var(--green-800); }
.btn-outline-dark:hover { background: var(--green-700); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--cream-100); }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }

/* ---------- Cards / grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: 0.4em; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
}
.services-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.services-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--green-700);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--amber-500);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  margin: 0 0 20px;
}
.testimonial p.quote { font-style: italic; margin-bottom: 10px; }
.testimonial p.attrib { margin: 0; font-weight: 700; color: var(--green-800); font-style: normal; }

/* ---------- Slideshow (home hero image rotator) ---------- */
.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--green-900);
}
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow img.is-active { opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

form.enquiry-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid var(--border);
}
.enquiry-form label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--green-800);
}
.enquiry-form label:first-child { margin-top: 0; }
.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: var(--cream-50);
}
.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: 2px solid var(--green-600);
  outline-offset: 1px;
}
.enquiry-form button {
  margin-top: 18px;
  border: none;
  cursor: pointer;
}

/* ---------- Photo gallery + lightbox ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.photo-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.photo-grid a:hover img { transform: scale(1.06); }

.boat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.boat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink-900);
  display: block;
}
.boat-card img { height: 160px; width: 100%; object-fit: cover; }
.boat-card .boat-card-label {
  padding: 14px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-900);
}
.boat-card:hover .boat-card-label { color: var(--amber-600); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 17, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: var(--cream-100);
  padding: 44px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.site-footer h4 {
  color: var(--amber-500);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer a { color: var(--cream-100); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(242, 237, 225, 0.7);
}

/* ---------- Misc ---------- */
.badge-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.badge-row img { height: 70px; width: auto; }

iframe.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
