/* VB Surfboards - Stylesheet */
:root {
  --bg: #4a4a4a;
  --bg-dark: #3a3a3a;
  --bg-darker: #2a2a2a;
  --text: #ffffff;
  --text-dim: #cccccc;
  --font-heading: 'Oswald', 'Arial Black', sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --announce-h: 36px;
  --header-h: 80px;
  --total-header-h: calc(var(--announce-h) + var(--header-h));
  --transition: 0.3s ease;
  --max-w: 1400px;
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
  background: #1a8fc4; text-align: center;
  padding: 0; height: var(--announce-h);
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
}
.announcement-bar p {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: #fff; letter-spacing: 0.06em; text-transform: uppercase; margin: 0;
}
.announcement-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.announcement-bar a:hover { opacity: 0.85; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: var(--text); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: #fff; color: #000; padding: 8px 16px; font-size: 14px;
}
.skip-link:focus { left: 10px; top: 10px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* HEADER */
.site-header {
  position: fixed; top: var(--announce-h); left: 0; right: 0; z-index: 1000;
  background: var(--bg-dark); height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { background: rgba(42,42,42,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 100%;
}
.logo-link { display: flex; align-items: center; margin-right: auto; }
.logo { width: 65px; height: 65px; border-radius: 50%; }

/* Nav */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 10px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  padding: 8px 16px; display: block; cursor: pointer;
  background: none; border: none; color: var(--text);
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--text); transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 70%; }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--bg-darker); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.has-dropdown.open .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
  display: block; padding: 10px 20px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: background var(--transition);
}
.dropdown-link:hover, .dropdown-link.active { background: var(--bg); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: space-around;
  width: 30px; height: 24px; background: none; border: none; cursor: pointer; padding: 0;
}
.mobile-menu-toggle span {
  width: 100%; height: 3px; background: var(--text);
  transition: all var(--transition); border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--total-header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg-darker); flex-direction: column;
    padding: 30px 20px; transform: translateX(100%);
    transition: transform var(--transition); overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-link { padding: 16px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 0 20px;
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .has-dropdown.open .dropdown-menu { max-height: 300px; }
  .dropdown-link { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
}

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 12vh;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-home {
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: 6vh;
}
.hero-medium { min-height: 70vh; padding-top: 0; }
.hero-short { min-height: 40vh; background-color: var(--bg-dark); }
.hero-overlay {
  position: relative; z-index: 1; text-align: center;
  padding: 40px 20px; max-width: 900px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 0;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-subtitle {
  font-family: var(--font-heading); font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: normal; margin-bottom: 30px; font-weight: 500;
  letter-spacing: 0.04em;
}

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 32px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e0e0e0; opacity: 1; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #333; opacity: 1; }
.btn-lg { padding: 18px 44px; font-size: 14px; }

/* BOARD CATEGORIES (Homepage) */
.board-categories { padding: 80px 0; }
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
}
.category-card {
  background: #fff; display: flex; flex-direction: column;
  align-items: center; padding: 20px; gap: 20px;
  transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-4px); opacity: 1; }
.category-image { width: 100%; overflow: hidden; }
.category-image img { width: 100%; height: 500px; object-fit: contain; background: #f0f0f0; }

@media (max-width: 768px) {
  .category-grid { grid-template-columns: 1fr; max-width: 500px; }
}

/* SPLIT SECTIONS (About preview) */
.about-preview { padding: 0; }
.split-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.split-section.reverse .split-image { order: 2; }
.split-section.reverse .split-text { order: 1; }
.split-image { overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 50px; background: var(--bg-dark);
}
.split-text h2 {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400; margin-bottom: 20px; line-height: 1.3;
}
.split-text p { font-size: 16px; line-height: 1.8; color: var(--text-dim); }

@media (max-width: 768px) {
  .split-section, .split-section.reverse { grid-template-columns: 1fr; }
  .split-text { padding: 40px 20px; }
}

/* INTRO SECTION */
.intro-section { padding: 60px 0; background: var(--bg-dark); }
.tagline {
  font-family: var(--font-heading); font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400; margin-bottom: 8px;
}
.intro-section p { font-size: 16px; line-height: 1.8; color: var(--text-dim); max-width: 800px; margin: 10px auto; }

/* BOARD CAROUSEL (kept for other pages) */
.board-carousel-section { padding: 60px 0; }
.carousel-container { position: relative; max-width: var(--max-w); margin: 0 auto; padding: 0 60px; }
.board-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 20px 0;
}
.board-carousel::-webkit-scrollbar { display: none; }
.board-card {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--bg-dark); padding: 0;
  transition: transform var(--transition);
}
.board-card:hover { transform: translateY(-4px); }
.board-card img, .board-card-placeholder {
  width: 100%; height: 450px; object-fit: cover; display: block;
}
.board-card-placeholder { background: var(--bg-darker); }
.board-card h2 {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 400; padding: 16px 16px 8px;
}
.board-desc {
  font-size: 14px; line-height: 1.6; padding: 0 16px 8px;
  color: var(--text-dim);
}
.board-specs {
  font-size: 13px; padding: 2px 16px; color: var(--text-dim);
}
.board-price {
  font-size: 14px; font-weight: 600; padding: 8px 16px 16px;
  color: #ffd700;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; font-size: 20px; cursor: pointer;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: rgba(0,0,0,0.9); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

@media (max-width: 768px) {
  .carousel-container { padding: 0 20px; }
  .board-card { flex: 0 0 260px; }
  .carousel-btn { display: none; }
}

/* BOARD FILTER BAR (Stretch-style sticky category nav) */
.board-filter-bar {
  position: sticky; top: var(--total-header-h); z-index: 100;
  background: #1a8fc4;
  padding: 0; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.board-filter-bar ul {
  display: flex; justify-content: center; align-items: center;
  gap: 0; max-width: var(--max-w); margin: 0 auto;
}
.board-filter-bar li { list-style: none; }
.filter-link {
  display: block; padding: 16px 28px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #fff; text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.filter-link:hover, .filter-link.active {
  background: rgba(255,255,255,0.15); opacity: 1;
}

@media (max-width: 768px) {
  .board-filter-bar ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .filter-link { padding: 14px 18px; font-size: 12px; }
}

/* BOARD SECTIONS (Stretch-style categorized grid) */
.board-sections-wrapper { background: #f5f5f5; }

.board-section {
  padding: 70px 0 80px;
  background: #ffffff;
}
.board-section-alt {
  background: #f0f0f0;
}
.board-section-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
}
.board-section-title {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: #1a1a1a; margin-bottom: 10px;
  line-height: 1.2;
}
.board-section-desc {
  font-family: var(--font-body); font-size: 16px;
  color: #666; margin-bottom: 40px; line-height: 1.6;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.board-grid-card {
  background: #fff; border-radius: 4px;
  overflow: hidden; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.board-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.board-section-alt .board-grid-card {
  background: #fff;
}

.board-grid-image {
  width: 100%; aspect-ratio: 3/4.5;
  overflow: hidden; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}
.board-grid-image img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.4s ease;
  padding: 12px;
}
.board-grid-card:hover .board-grid-image img {
  transform: scale(1.03);
}

.board-grid-card h3 {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 600; color: #1a1a1a;
  padding: 16px 12px 4px; margin: 0;
}
.board-grid-specs {
  font-size: 12px; color: #888; padding: 0 12px 18px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .board-section-inner { padding: 0 20px; }
  .board-section { padding: 50px 0 60px; }
}
@media (max-width: 480px) {
  .board-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

/* Board grid card description & price (kiteboards/foilboards) */
.board-grid-desc {
  font-size: 13px; color: #666; padding: 0 14px 4px;
  line-height: 1.6; text-align: left;
}
.board-grid-price {
  font-size: 14px; font-weight: 700; color: #1a8fc4;
  padding: 8px 14px 18px; text-align: center;
}

/* Board top/bottom view toggle */
.board-view-toggle {
  position: relative;
  aspect-ratio: 3/4.5;
}
.board-view-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none;
  padding: 12px;
}
.board-view-img.active {
  opacity: 1;
}
.board-view-buttons {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 2;
  background: rgba(255,255,255,0.85);
  border-radius: 20px; padding: 3px 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.board-view-btn {
  border: none; background: transparent;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: #888; padding: 4px 14px;
  border-radius: 16px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.board-view-btn.active {
  background: #1a1a1a; color: #fff;
}
.board-view-btn:hover:not(.active) {
  color: #333;
}

/* Placeholder for boards without images */
.board-grid-placeholder {
  background: #e8e8e8; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 3/4;
}
.board-grid-placeholder span {
  font-size: 14px; color: #999; font-style: italic; font-family: var(--font-body);
}

/* Pricing note */
.pricing-note {
  color: #1a8fc4; font-weight: 600;
}
.pricing-note a { color: #1a8fc4; text-decoration: underline; text-underline-offset: 2px; }
.pricing-note a:hover { opacity: 0.8; }

/* Construction note banner (foilboards) */
.board-construction-note {
  background: #ffffff; padding: 30px 0; border-bottom: 1px solid #e0e0e0;
}
.board-construction-note p {
  font-size: 15px; color: #555; line-height: 1.7; max-width: 850px; margin: 0 auto;
  padding: 0 20px;
}

/* GALLERY STRIP */
.gallery-strip { padding: 20px 0; }
.gallery-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
}
.gallery-row img {
  height: 300px; width: auto; object-fit: cover; flex: 1 1 200px;
  max-width: 450px; object-position: center center;
}
.gallery-row img[data-contain] {
  object-fit: contain; background: var(--bg-dark);
}

/* SECTION TITLES & QUOTES */
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400; margin-bottom: 40px;
}
.section-quote {
  font-family: var(--font-heading); font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400; font-style: italic; line-height: 1.6;
  max-width: 800px; margin: 0 auto;
}

/* CTA SECTION */
.cta-section { padding: 80px 0; background: var(--bg); }

/* INSTAGRAM GRID */
.instagram-section { padding: 80px 0; background: var(--bg-dark); }
.instagram-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-width: 1000px; margin: 0 auto;
}
.insta-item { overflow: hidden; aspect-ratio: 1; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.insta-item:hover img { transform: scale(1.05); }

@media (max-width: 600px) { .instagram-grid { grid-template-columns: repeat(2, 1fr); } }

/* ACTION IMAGE */
.action-image-section { padding: 40px 0; }
.full-width-image { width: 100%; max-height: 500px; object-fit: cover; }

/* VIDEO */
.video-section { padding: 60px 0; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 900px; margin: 0 auto; }
.video-wrapper iframe, .video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.native-video { background: #000; }

/* ABOUT PAGE */
.about-content { padding: 60px 0; }
.about-text-block { max-width: 800px; margin: 0 auto; }
.about-text-block p { font-size: 17px; line-height: 1.8; margin-bottom: 20px; color: var(--text-dim); }
.about-text-block h3 {
  font-family: var(--font-heading); font-size: 1.6rem;
  font-weight: 400; margin-bottom: 16px; margin-top: 40px;
}
.about-text-block h3:first-child { margin-top: 0; }
.about-text-block blockquote {
  margin: 30px 0; padding: 20px 30px;
  border-left: 3px solid var(--text);
  font-family: var(--font-heading); font-style: italic;
  font-size: 1.2rem;
}
.quote-section { padding: 80px 0; background: var(--bg-dark); }

/* About page — feature highlights */
.about-features {
  display: grid; grid-template-columns: 1fr; gap: 0;
  max-width: 800px; margin: 0 auto;
}
.about-feature {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.about-feature:last-child { border-bottom: none; }
.about-feature h3 {
  font-family: var(--font-heading); font-size: 1.35rem;
  font-weight: 400; margin: 0 0 12px; color: var(--text);
  letter-spacing: 0.02em;
}
.about-feature p {
  font-size: 16px; line-height: 1.8; margin: 0;
  color: var(--text-dim);
}
.about-footer-image { padding: 60px 0; }
.about-photo { max-width: 500px; margin: 0 auto; border-radius: 4px; }

/* GALLERY PAGE */
.gallery-page { padding: 40px 0 80px; }
.masonry-grid {
  column-count: 4; column-gap: 8px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 8px; display: block;
  overflow: hidden; transition: transform var(--transition);
}
.gallery-item:hover { opacity: 0.9; }
.gallery-item img { width: 100%; display: block; }

@media (max-width: 1024px) { .masonry-grid { column-count: 3; } }
@media (max-width: 768px) { .masonry-grid { column-count: 2; } }

/* FORM */
.form-section { padding: 60px 0 100px; background: var(--bg-dark); }
.custom-order-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-group-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label {
  display: block; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px; color: var(--text-dim);
}
.required { color: #ff6b6b; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; font-size: 15px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--text); font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: rgba(255,255,255,0.6);
}
.form-field select { cursor: pointer; }
.form-field select option { background: var(--bg-darker); color: var(--text); }
.form-checkbox { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.form-checkbox label { font-size: 14px; color: var(--text-dim); cursor: pointer; }
.form-submit { text-align: center; padding-top: 20px; }
.form-success-message {
  max-width: 700px; margin: 30px auto 0; padding: 20px;
  background: rgba(76,175,80,0.2); border: 1px solid rgba(76,175,80,0.5);
  text-align: center; font-size: 16px;
}

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

/* FOOTER */
.site-footer { background: var(--bg-darker); padding: 40px 0; margin-top: 0; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-contact a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }
.footer-contact a:hover { color: var(--text); }
.footer-brand { text-align: center; }
.footer-title {
  font-family: var(--font-heading); font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
}
.footer-social a { color: var(--text-dim); transition: color var(--transition); }
.footer-social a:hover { color: var(--text); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Ensure content below fixed header + announcement bar */
main { padding-top: var(--total-header-h); }
