/* ===== Keys Boating Center – Local Site Stylesheet ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

/* ===== NAV ===== */
.nav-wrapper {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2572A0;
}

.nav-logo img { height: 48px; width: auto; border-radius: 4px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-links > li > .nav-btn {
  display: block;
  padding: 8px 14px;
  font-size: .93rem;
  font-weight: 500;
  color: #333;
  border-radius: 5px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav-links > li > a:hover,
.nav-links > li > .nav-btn:hover,
.nav-links > li > a.active,
.nav-links > li > .nav-btn.active {
  background: #eaf3fb;
  color: #2572A0;
}

/* dropdown trigger arrow */
.nav-links .dropdown > .nav-btn::after { content: ' ▾'; font-size: .7rem; }
/* Login button */
.nav-login-btn {
  display: inline-block;
  padding: 7px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff !important;
  background: #2572A0;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.nav-login-btn:hover { background: #1a5a80 !important; color: #fff !important; }


.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  padding: 6px 0;
  z-index: 2000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .9rem;
  color: #333;
  transition: background .15s;
}

.dropdown-menu a:hover { background: #eaf3fb; color: #2572A0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 100%);
}

.hero-content { position: relative; z-index: 1; padding: 20px; max-width: 700px; }
.hero-content h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 14px; text-shadow: 0 2px 6px rgba(0,0,0,.5); line-height: 1.2; }
.hero-content p  { font-size: 1.15rem; margin-bottom: 28px; opacity: .92; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  background: #2572A0;
  color: #fff;
  border-radius: 5px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
}

.btn:hover { background: #1e5f87; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

.btn-outline:hover { background: #fff; color: #2572A0; transform: translateY(-1px); }

/* ===== PAGE-HERO (non-home) ===== */
.page-hero {
  background: linear-gradient(135deg, #1e5f87, #2572A0);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.page-hero h1 { font-size: 2.1rem; margin-bottom: 10px; }
.page-hero p  { font-size: 1rem; opacity: .85; max-width: 540px; margin: 0 auto; }

/* ===== SECTIONS ===== */
.section { padding: 60px 24px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.9rem; color: #2572A0; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: #666; margin-bottom: 40px; font-size: 1rem; }

/* ===== TWO-COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.two-col img { border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.12); }

/* ===== FEATURE CARDS (home services) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* ===== WHY-CHOOSE CAROUSEL ===== */
.carousel-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.carousel-viewport {
  flex: 1;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .35s ease;
  gap: 0;
}
.carousel-card {
  flex: 0 0 calc(33.333% - 16px);
  margin: 0 8px;
  box-sizing: border-box;
}
@media (max-width: 959px) {
  .carousel-card { flex: 0 0 calc(50% - 16px); }
}
@media (max-width: 599px) {
  .carousel-card { flex: 0 0 calc(100% - 16px); }
}
.carousel-btn {
  background: #2572A0;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  margin: 0 10px;
  transition: background .2s, opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}
.carousel-btn:hover { background: #1e5f87; }

.card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.11); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { color: #2572A0; margin-bottom: 8px; font-size: 1.1rem; }
.card-body p  { color: #555; font-size: .9rem; }

/* ===== BRANDS STRIP ===== */
.brands-strip { background: #1a3a5c; padding: 70px 24px; }
.brands-strip-inner { max-width: 1300px; margin: 0 auto; text-align: center; }
.brands-strip h2 { color: #fff; font-size: 1.6rem; margin-bottom: 52px; letter-spacing: .02em; }
.brands-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 56px 96px; }
/* Brand logo carousel */
.brand-carousel-wrapper { display: flex; align-items: center; gap: 0; }
.brand-carousel-viewport { flex: 1; overflow: hidden; }
.brand-carousel-track {
  display: flex;
  transition: transform .35s ease;
}
.brand-carousel-item {
  flex: 0 0 20%;    /* 5 visible on desktop */
  box-sizing: border-box;
  padding: 0 24px;
  justify-content: center;
}
@media (max-width: 959px) { .brand-carousel-item { flex: 0 0 33.333%; } }
@media (max-width: 599px) {
  .brand-carousel-item { flex: 0 0 50%; padding: 0 12px; }
  .brand-logo-link img { height: 48px; max-width: 120px; }
}
.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .88;
  transition: opacity .2s, transform .2s;
}
.brand-logo-link:hover { opacity: 1; transform: scale(1.08); }
.brand-logo-link img { height: 84px; width: auto; max-width: 210px; object-fit: contain; display: block; }
.brand-logo-outline img {
  filter:
    drop-shadow(1px 0px 0px #fff)
    drop-shadow(-1px 0px 0px #fff)
    drop-shadow(0px 1px 0px #fff)
    drop-shadow(0px -1px 0px #fff);
}
/* Legacy text tag — kept for fallback */
.brand-tag {
  padding: 10px 22px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
}
.brand-tag:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ===== SERVICE LIST ===== */
.service-list { list-style: none; margin: 16px 0; }
.service-list li {
  padding: 7px 0;
  color: #444;
  border-bottom: 1px solid #eee;
  font-size: .95rem;
}
.service-list li::before { content: "✓  "; color: #2572A0; font-weight: 700; }

/* ===== INFO BOXES ===== */
.info-box {
  background: #f8f9fa;
  border-left: 4px solid #2572A0;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.info-box h3 { color: #2572A0; margin-bottom: 12px; font-size: 1.15rem; }
.info-box p  { color: #444; margin-bottom: 6px; line-height: 1.7; }
.info-box a  { color: #2572A0; }
.info-box a:hover { text-decoration: underline; }
.info-box a.btn { color: #fff; }
.info-box a.btn:hover { text-decoration: none; }

/* ===== CONTACT FORM ===== */
.contact-form { background: #f8f9fa; border-radius: 8px; padding: 30px; }
.contact-form h3 { color: #2572A0; margin-bottom: 22px; font-size: 1.2rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 5px;
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #2572A0; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%;
  background: #2572A0;
  color: #fff;
  border: none;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.form-submit:hover { background: #1e5f87; }

/* ===== MAP ===== */
.map-embed { width: 100%; height: 340px; border: none; border-radius: 8px; margin-top: 20px; }

/* ===== PRODUCT GRID ===== */
.products-page { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }

.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-btn {
  padding: 7px 18px;
  border: 1.5px solid #2572A0;
  background: transparent;
  color: #2572A0;
  border-radius: 24px;
  cursor: pointer;
  font-size: .88rem;
  font-family: inherit;
  font-weight: 600;
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active { background: #2572A0; color: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.11); }

.product-img {
  position: relative;
  height: 215px;
  background: #f0f4f8;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.04); }

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: .92rem; font-weight: 700; color: #222; margin-bottom: 10px; line-height: 1.4; flex: 1; }

.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 1.1rem; font-weight: 700; color: #2572A0; }
.price-original { font-size: .88rem; color: #aaa; text-decoration: line-through; }

.no-products { padding: 50px; text-align: center; color: #888; font-size: 1rem; grid-column: 1 / -1; }

/* ===== SOCIAL ===== */
.connect-section { background: #f4f8fb; padding: 50px 24px; text-align: center; }
.connect-section h2 { color: #2572A0; font-size: 1.6rem; margin-bottom: 22px; }
.social-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-link {
  display: inline-block;
  padding: 11px 26px;
  background: #2572A0;
  color: #fff;
  border-radius: 5px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s;
}
.social-link:hover { background: #1e5f87; }

/* ===== FOOTER ===== */
footer {
  background: #1a2535;
  color: #aaa;
  text-align: center;
  padding: 28px 24px;
  font-size: .88rem;
}
footer a { color: #7ab8d9; margin: 0 10px; }
footer a:hover { text-decoration: underline; }
footer .footer-sep { margin: 10px 0; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #222;
  color: #eee;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: .88rem;
  gap: 20px;
}
.cookie-banner button {
  background: #2572A0;
  color: #fff;
  border: none;
  padding: 8px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  font-family: inherit;
}

/* ===== HIGHLIGHT STRIP ===== */
.highlight-strip {
  background: #2572A0;
  color: #fff;
  text-align: center;
  padding: 14px 24px;
  font-size: .95rem;
  font-weight: 500;
}
.highlight-strip a { color: #fff; text-decoration: underline; }

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  font-size: 1.6rem;
  line-height: 1;
  color: #2572A0;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  /* show hamburger, hide nav by default */
  .nav-wrapper { position: relative; }
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.13);
    padding: 6px 0 14px;
    gap: 0;
    z-index: 999;
  }
  /* open state toggled by nav.js */
  .nav-wrapper.nav-open .nav-links { display: flex; }

  .nav-links > li { width: 100%; }

  .nav-links > li > a,
  .nav-links > li > .nav-btn {
    padding: 13px 24px;
    font-size: 1rem;
    border-radius: 0;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  /* login button — override inline-block width so it fills row */
  .nav-links .nav-login-btn {
    margin: 8px 16px !important;
    display: block !important;
    text-align: center !important;
    padding: 11px 18px !important;
    box-sizing: border-box;
    width: calc(100% - 32px) !important;
  }

  /* dropdowns: static flow instead of absolute popup */
  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: #f4f8fb;
    padding: 0;
    min-width: 0;
    display: none;
  }
  /* open class toggled by nav.js on mobile */
  .nav-links .dropdown.open .dropdown-menu { display: block; }
  .nav-links .dropdown-menu a { padding: 11px 42px; font-size: .95rem; }

  /* hide the ▾ arrow for dropdown triggers on mobile */
  .nav-links .dropdown > .nav-btn::after { content: ' +'; }
  .nav-links .dropdown.open > .nav-btn::after { content: ' −'; }

  .hero { height: 380px; }
  .hero-content h1 { font-size: 1.8rem; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 40px 18px; }
}
