/* =============================================
   =============================================
   CSS Custom Properties (Design Tokens)
   =============================================
   ============================================= */

:root {
  /* Colors */
  --color-primary: #00bdbb;
  --color-primary-dark: #009e9c;
  --color-primary-light: #33d1d0;
  --color-primary-hover: #363636;
  --color-text: #333;
  --color-text-muted: #666;
  --color-text-light: #999;
  --color-bg: #fff;
  --color-bg-alt: #f9f9f9;
  --color-footer-bg: #222;
  --color-border: #dbdbdb;
  --color-white: #fff;
  --color-overlay: rgba(0,0,0,0.45);
  --color-overlay-dark: rgba(0,0,0,0.55);
  --color-overlay-card: rgba(0,0,0,0.4);

  /* Typography */
  --font-body: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Lobster', cursive;

  /* Spacing (8px scale) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container-max: 1200px;
  --section-py: 6rem;
}

/* =============================================
   Reset
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* =============================================
   Base Typography
   ============================================= */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 var(--space-3) 0;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p, ul, ol, address {
  margin: 0 0 var(--space-3) 0;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.6;
}
ul, ol { padding-left: var(--space-4); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

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

/* =============================================
   Layout Primitives
   ============================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 70px;
  position: relative;
  @media (max-width: 768px) {
    padding: 0 10px;
  }
}

.section {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}
.section--alt { background: var(--color-bg-alt); }
/* Two-column halves */
.halves {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.halves > * { flex: 1 1 100%; }
@media (min-width: 768px) { .halves > * { flex: 1; } }

/* Four-column grid */
.quarters {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) { .quarters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quarters { grid-template-columns: repeat(4, 1fr); } }

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
}
.btn--dark {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn--dark:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

/* =============================================
   Header & Navigation
   ============================================= */

/* Top bar */
.top-bar {
  /* background: var(--color-footer-bg); */
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  height: 36px;
  line-height: 36px;
  position: relative;
  z-index: 101;
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.top-bar__left,
.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.top-bar a { color: var(--color-white); text-decoration: none; }
.top-bar a:hover { color: rgba(255,255,255,0.8); }
.top-bar .social-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 3px;
}
.top-bar .social-icon svg {
  display: block;
}

.header {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 10px 0;
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: top 0.3s ease;
}
.header--scrolled {
  top: 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo { display: block; z-index: 99; }
.header__logo img { height: 50px; width: auto; }
.header__logo:hover { opacity: 0.9; }

/* Main nav */
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__link {
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Mobile nav */
@media (max-width: 767px) {
  .top-bar__right { display: none; }
  .nav-toggle { display: block; }
  .nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: var(--space-3);
    gap: 0;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav__link {
    display: block;
    padding: 12px 0;
    border-bottom: none;
  }
  .nav-open .nav__list { display: flex; }
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  position: relative;
  /* height: 600px; */
  padding: 150px 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero--page,
.hero--home {
  /* height: 500px; */
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: var(--space-3);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero__tagline {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-white);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.hero__subtitle {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9);
  max-width: 50rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* =============================================
   Yacht Grid
   ============================================= */

.yacht-grid {
  display: grid;
  gap: 0;
}
@media (min-width: 768px) {
  .yacht-grid {
    gap: var(--space-3);
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Intro text card */
.yacht-grid__intro {
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4);
}
.yacht-grid__intro .yacht-card__title {
  color: var(--color-text);
}
.yacht-grid__intro .yacht-card__text {
  color: var(--color-text-muted);
}

/* Desktop grid visible, mobile hidden on desktop */
@media (min-width: 768px) {
  .yacht-mobile { display: none; }
}
/* Mobile grid visible, desktop hidden on mobile */
@media (max-width: 767px) {
  .yacht-grid { display: none; }
}

/* Yacht card base styles */
.yacht-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.yacht-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.yacht-card:hover .yacht-card__image { transform: scale(1.05); }
.yacht-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-3);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--color-white);
}
.yacht-card:hover .yacht-card__overlay { opacity: 1; }
.yacht-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  color: var(--color-white);
  font-weight: 600;
}
.yacht-card__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.yacht-mobile-card {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  margin-bottom: var(--space-3);
  background: var(--color-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.yacht-mobile-card__image {
  flex: 0 0 50%;
  min-height: 250px;
  background-size: cover;
  background-position: center;
}
.yacht-mobile-card__text {
  flex: 1;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.yacht-mobile-card__text h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
  font-weight: 600;
  color: var(--color-text);
}
.yacht-mobile-card__text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =============================================
   CTA Sections
   ============================================= */

.cta-banner {
  background: var(--color-primary-light);
  padding: var(--space-5) 0;
  color: var(--color-white);
}
.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.cta-banner__text {
  font-size: 1.25rem;
  font-style: italic;
  margin: 0;
  flex: 1 1 300px;
  color: var(--color-white);
}
.cta-banner__action { flex: 0 0 auto; }

.cta-parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: var(--space-8) 0;
  text-align: center;
  color: var(--color-white);
}
.cta-parallax__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
}
.cta-parallax__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.cta-parallax__content h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: var(--space-3);
  color: var(--color-white);
}
.cta-parallax__quote {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  color: var(--color-white);
  margin-top: var(--space-3);
  line-height: 1.6;
}

/* =============================================
   Feature Cards
   ============================================= */

.feature {
  text-align: center;
  padding: var(--space-3);
}
.feature__icon {
  height: 60px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__icon img {
  max-width: 100%;
  max-height: 60px;
  height: auto;
  width: auto;
}
.feature__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}
.feature__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =============================================
   Footer
   ============================================= */

.footer {
  background: var(--color-footer-bg);
  color: #999;
  padding: var(--space-7) 0 var(--space-4);
}
.footer a { color: #999; text-decoration: none; }
.footer a:hover { color: var(--color-white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr; }
}

.footer__logo img { height: 37px; margin-bottom: var(--space-3); }
.footer__tagline { margin-bottom: var(--space-4); font-size: 0.95rem; }
.footer__info p {
  margin: 0 0 var(--space-2) 0;
  font-size: 0.9rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer__widget-title {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: var(--space-3);
  font-weight: 400;
}
.footer__video-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.footer__video-thumb img { width: 100%; }
.footer__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  font-size: 3rem;
  color: var(--color-white);
  transition: background 0.2s ease;
}
.footer__play-btn:hover { background: rgba(0,0,0,0.5); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* =============================================
   Utility Classes
   ============================================= */

.hide-on-mobile { display: none !important; }
@media (min-width: 768px) { .hide-on-mobile { display: initial !important; } }
@media (min-width: 768px) { .hide-above-mobile { display: none !important; } }
.text-center { text-align: center; }
.mobile-inline { display: inline; }

/* =============================================
   Page-Specific Overrides
   Only unique background-image URLs.
   ============================================= */

.page--home .hero--home { background-image: url('/img/sergii-gulenok-61955-unsplash.jpg'); }
.page--home .cta-parallax { background-image: url('/img/dubrovnik.jpg'); }
.page--about .hero--page { background-image: url('/img/CROATIA-1979.jpg'); padding: 250px 0 200px; }
.page--contact .hero--page { background-image: url('/img/seigaiha-small.png'); background-repeat: repeat; background-size: auto; }
