@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   E-SURFING SHOP · PREMIUM THEME
   ============================================= */

:root {
  --bg:       #f8f6f2;
  --bg-white: #ffffff;
  --surface:  #f0ede7;
  --text:     #111827;
  --muted:    #5f6b78;
  --line:     rgba(17,24,39,.09);
  --gold:     #b59462;
  --gold-dk:  #8d6c3e;
  --gold-lt:  #c9a878;
  --radius:   6px;
  --shadow:   0 20px 56px rgba(17,24,39,.10);
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Manrope', system-ui, sans-serif;
  --nav-h:    64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-white);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-dk); text-decoration: none; }
a:hover { color: var(--gold); }
a:not([href]) { color: inherit; cursor: default; }
a:not([href]):hover { color: inherit; }
ul { list-style: none; padding: 0; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 3.5vw, 3rem);
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .35s, border-color .35s;
}
.nav-logo {
  font-family: var(--ff-sans); font-weight: 800;
  font-size: .95rem; letter-spacing: .2em;
  color: var(--text); white-space: nowrap;
  transition: color .2s;
}
.nav-logo:hover { color: var(--gold); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-contact-actions {
  display: flex; align-items: center; gap: .1rem;
}
.nma-tg svg { color: #2aabee; }
.nma-wa svg { color: #25d366; }
.nma-mx svg { color: #0077ff; }

/* =============================================
   BURGER + MOBILE MENU
   ============================================= */
.nav-burger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 24px; height: 18px;
  background: transparent; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile-actions { display: none; align-items: center; gap: .25rem; }
.nma-btn {
  display: flex; align-items: center; justify-content: center;
  padding: .4rem .45rem; background: transparent; border: none;
  cursor: pointer; color: var(--text); transition: color .2s; text-decoration: none;
}
.nma-btn:hover { color: var(--gold); }
.nma-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.nma-btn span { display: none; }
.nav-contact-actions .nma-mx span {
  display: inline;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}

.nma-wrap { position: relative; }
.msg-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(17,24,39,.12);
  min-width: 160px; z-index: 200; overflow: hidden;
  transform: translateY(-4px); opacity: 0;
  pointer-events: none; transition: transform .22s, opacity .22s;
}
.msg-dropdown.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.msg-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.1rem; font-size: .9rem; font-weight: 600;
  color: var(--text); transition: background .15s;
  border-bottom: 1px solid var(--line);
}
.msg-option:last-child { border-bottom: none; }
.msg-option:hover { background: var(--bg); }
.msg-option svg { width: 20px; height: 20px; flex-shrink: 0; }
.msg-option:nth-child(1) svg { color: #2aabee; }
.msg-option:nth-child(2) svg { color: #25d366; }
.msg-option:nth-child(3) svg { color: #0077ff; }

.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 190;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem clamp(1.25rem,5vw,3rem) 2rem;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.5rem; }
.mobile-menu__links a {
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  padding: .85rem 0; border-bottom: 1px solid var(--line); transition: color .2s;
}
.mobile-menu__links a:hover { color: var(--gold-dk); }
.mobile-menu__phone {
  display: inline-block; margin-top: .5rem;
  font-size: 1rem; font-weight: 700; color: var(--gold-dk); letter-spacing: .03em;
}

/* =============================================
   LAYOUT
   ============================================= */
main {
  max-width: 1200px; margin: 0 auto;
  padding: calc(var(--nav-h) + 12px) 24px 80px;
}

/* =============================================
   HERO SECTION
   ============================================= */
section.hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600; line-height: 1.1;
  color: var(--text); margin: 0 0 18px; max-width: 900px;
}
[data-page-type="model"] h1 { font-weight: 700; }
.lead {
  font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 300;
  max-width: 780px; color: var(--muted); margin: 0 0 24px; line-height: 1.75;
}
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.fact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 16px; font-size: .9rem;
}
.fact b { color: var(--gold-dk); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--ff-sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .85em 2em; border-radius: 2px;
  transition: all .22s; cursor: pointer; border: none; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary, .btn-gold { background: var(--gold); color: #fff; }
.btn-primary:hover, .btn-gold:hover { background: var(--gold-dk); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(17,24,39,.25);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-dk); }
.btn-cta { background: #fff; color: var(--gold-dk); font-weight: 700; }
.btn-cta:hover { background: var(--bg); color: var(--gold-dk); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* =============================================
   SECTIONS
   ============================================= */
section { padding: 48px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: none; }
h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600; line-height: 1.15;
  color: var(--text); margin: 0 0 20px;
}
h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600; margin: 24px 0 12px; color: var(--text);
}
p { margin: 0 0 14px; max-width: 820px; color: var(--muted); line-height: 1.75; }
.text-content p { max-width: 100%; }
body[data-page-type="guide"] p { max-width: 100%; }

/* =============================================
   GUIDE IMAGES
   ============================================= */
.guide-figure { margin: 0; }
.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(17,24,39,.12);
}
.guide-figure--hero { padding-top: 10px; }
.guide-figure--inline { margin: 28px 0; }

/* =============================================
   PRODUCT GRID CARDS
   ============================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-top: 12px;
}
.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(181,148,98,.13);
}
.card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 18px 20px; }
.card-brand {
  font-size: .65rem; color: var(--gold); text-transform: uppercase;
  font-weight: 700; letter-spacing: .15em; margin: 0 0 5px;
}
.card-title { font-family: var(--ff-serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; color: var(--text); }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--gold-dk); }
.card-price { font-family: var(--ff-serif); font-size: 1.35rem; font-weight: 600; color: var(--gold-dk); margin: 0; }
.card-status { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }

/* =============================================
   CATALOG SECTION
   ============================================= */
#catalog { padding: 48px 0; }
#catalog h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700; letter-spacing: .04em;
  color: var(--muted); border-bottom: 1px solid var(--line);
  padding-bottom: 10px; margin-bottom: 20px;
  text-transform: uppercase;
}
#catalog .grid + h2 { margin-top: 40px; }

/* =============================================
   SPECS TABLE
   ============================================= */
.specs {
  width: 100%; border-collapse: collapse;
  background: var(--bg-white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 16px;
}
.specs th, .specs td {
  padding: 12px 16px; text-align: left; vertical-align: top; font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.specs th { background: var(--surface); font-weight: 600; width: 38%; color: var(--text); }

/* =============================================
   PRICE TABLE
   ============================================= */
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.price-table th {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: .75rem 1rem; text-align: left;
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
.price-table td {
  padding: .9rem 1rem; font-size: .95rem; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.price-table td:first-child { font-family: var(--ff-serif); font-size: 1.25rem; font-weight: 600; }
.price-table td:not(:first-child) { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: var(--bg); }

/* =============================================
   RENTAL PRICES
   ============================================= */
.rental-prices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 18px; margin-top: 14px;
}
.price-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .22s;
}
.price-box:hover { border-color: var(--gold); }
.price-box h3 {
  margin: 0 0 14px; font-size: 1rem; font-weight: 700;
  font-family: var(--ff-sans); color: var(--gold-dk);
}
.price-note {
  font-size: .88rem; color: var(--muted); line-height: 1.7;
  padding: 1.1rem 1.4rem; background: var(--bg);
  border-radius: var(--radius); border-left: 3px solid var(--gold);
  margin: 0 0 1.25rem;
}

/* =============================================
   CHECK & LINKS LISTS
   ============================================= */
.check li { margin: 10px 0; display: flex; gap: 8px; color: var(--muted); }
.check li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.links { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.links li { display: inline; }
.links li + li::before { content: " · "; color: var(--muted); }
.links a { color: var(--gold-dk); font-weight: 500; }
.links a:hover { color: var(--gold); }

/* =============================================
   FAQ
   ============================================= */
.faq { display: flex; flex-direction: column; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  border-left: none; border-right: none; border-top: none;
  padding: 0;
  margin: 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.3rem 0; font-size: 1rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 300;
  color: var(--gold); flex-shrink: 0; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  font-size: .93rem; color: var(--muted); line-height: 1.75;
  padding-bottom: 1.3rem; max-width: 100%;
}

/* =============================================
   CTA
   ============================================= */
.cta {
  background: linear-gradient(135deg, var(--text) 0%, #1f2a36 100%);
  color: #fff; border-radius: var(--radius);
  padding: 48px 52px; margin-top: 8px; border: none;
}
.cta h2 { color: #fff; margin: 0 0 14px; font-family: var(--ff-serif); font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 600; }
.cta p { color: rgba(255,255,255,.75); max-width: 100%; margin: 0 0 24px; line-height: 1.7; }
.cta .btn-cta {
  background: var(--gold); color: #fff; font-weight: 700;
  padding: .85em 2.2em; border-radius: 2px; display: inline-block;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; transition: background .2s;
}
.cta .btn-cta:hover { background: var(--gold-dk); }
.cta .phone { font-size: 1.3rem; font-weight: 700; color: rgba(255,255,255,.7); display: block; margin-top: 16px; }

/* =============================================
   COMPARE TABLE
   ============================================= */
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare th { background: var(--surface); padding: 11px 14px; text-align: left; border: 1px solid var(--line); font-weight: 600; }
.compare td { padding: 10px 14px; border: 1px solid var(--line); color: var(--muted); }
.compare tr:first-child th:first-child { font-family: var(--ff-serif); }

/* =============================================
   INLINE TAGS
   ============================================= */
.tag {
  display: inline-block; background: var(--surface);
  color: var(--gold-dk); border-radius: 3px;
  padding: 2px 9px; font-size: .78rem; font-weight: 600; margin: 2px;
  border: 1px solid var(--line);
}

/* =============================================
   IMAGE SLOT
   ============================================= */
.image-slot {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px dashed rgba(181,148,98,.3);
  color: var(--muted); text-align: center; padding: 24px;
  border-radius: var(--radius); font-size: .88rem;
}
.image-slot.tall { min-height: 300px; }
.image-slot.wide { min-height: 220px; width: 100%; }

/* =============================================
   GALLERY CAROUSEL
   ============================================= */
.gallery-wrap { margin-top: 12px; }
.gallery { display: grid; gap: 14px; }
.gallery-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* landscape: fill full width */
.gallery-stage img {
  width: 100%; height: auto; display: block;
  transition: opacity .22s ease;
}
/* portrait: fixed height, centred — no upscaling */
.gallery-stage[data-portrait] img {
  width: auto; height: auto;
  max-width: 100%; max-height: min(600px, 90vw);
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
  color: var(--text); border: none; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(17,24,39,.14);
  transition: background .2s, transform .2s;
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-counter {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 999px;
  color: #fff; background: rgba(10,12,16,.55); backdrop-filter: blur(10px);
  font-size: .82rem; font-weight: 500; letter-spacing: .05em;
}
.gallery-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 96px;
  gap: 8px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: thin; scrollbar-color: var(--gold) var(--surface);
}
.gallery-thumb {
  padding: 0; border: none; border-radius: 4px;
  overflow: hidden; background: transparent; cursor: pointer;
  opacity: .55; transition: opacity .2s, transform .2s, box-shadow .2s;
}
.gallery-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; background: var(--surface); }
.gallery-thumb.is-active {
  opacity: 1; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17,24,39,.16);
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.gallery[data-single] .gallery-nav,
.gallery[data-single] .gallery-counter,
.gallery[data-single] .gallery-thumbs { display: none; }
@media (max-width: 960px) {
  .gallery-thumbs { grid-auto-columns: 76px; }
}

/* =============================================
   RELATED / TOC
   ============================================= */
.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin: 20px 0;
}
.toc h3 { margin: 0 0 12px; font-size: 1rem; font-family: var(--ff-sans); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; font-size: .9rem; color: var(--muted); }

.related-box { background: var(--surface); border-radius: var(--radius); padding: 22px 26px; }
.related-box h3 { margin: 0 0 12px; font-size: 1rem; font-family: var(--ff-sans); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text);
  padding: clamp(3rem,5vw,5rem) clamp(1.5rem,5vw,5rem) 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 3rem; align-items: start;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}
.footer-logo {
  font-family: var(--ff-sans); font-weight: 800; font-size: .95rem;
  letter-spacing: .2em; display: block; color: #fff; margin-bottom: .6rem;
}
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; align-content: start; }
.footer-nav a { font-size: .8rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-nav a:hover { color: var(--gold-lt); text-decoration: none; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; text-align: right; font-size: .83rem; }
.footer-contact a { color: #fff; }
.footer-contact a:hover { color: var(--gold-lt); }
.footer-contact span { color: rgba(255,255,255,.4); }
.footer-copy { max-width: 1200px; margin: 0 auto; font-size: .72rem; color: rgba(255,255,255,.2); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }
  .nav-mobile-actions { display: flex; }
  .nav-contact-actions { display: none; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-contact { text-align: left; }
}
@media (max-width: 768px) {
  main { padding: calc(var(--nav-h) + 8px) 16px 60px; }
  section.hero { padding: 36px 0 32px; }
  .cta { padding: 28px 24px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .guide-figure--inline { margin: 24px 0; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.5rem; }
  .guide-figure img { border-radius: 8px; }
  .price-table thead { display: none; }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .price-table td { padding: .2rem 0; border-bottom: none; }
  .price-table td:first-child { grid-column: 1/-1; font-size: .95rem; padding-bottom: .4rem; }
}
