/* JayVetaBal Yachting - Vintage Retro CSS Theme */

/* 1. FONT IMPORTS (Vintage/Retro + Brand) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&family=Pacifico&family=Archivo+Narrow:wght@700&display=swap');

:root {
  /* Brand Colors */
  --primary: #1A2B49;
  --secondary: #5CBFD6;
  --accent: #F5F7FA;
  /* Vintage/Retro Palette */
  --retro-yellow: #F9D77E;
  --retro-orange: #E07A5F;
  --retro-brown: #7C5E3C;
  --retro-green: #A3B18A;
  --retro-blue: #457B9D;
  --retro-cream: #FFF8E1;
  --retro-red: #C44536;
  --retro-shadow: rgba(122, 89, 49, 0.18);
  /* Typography */
  --font-display: 'Montserrat', 'Archivo Narrow', 'Pacifico', cursive;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-vintage: 'Pacifico', 'Montserrat', cursive;
  /* Spacing */
  --section-margin: 60px;
  --section-padding: 40px 20px;
  --card-gap: 24px;
  --card-margin-bottom: 20px;
  --container-max: 1200px;
  /* Shadows */
  --shadow-card: 0 4px 18px var(--retro-shadow);
  --shadow-btn: 0 2px 8px var(--retro-shadow);
  /* Border Radius */
  --radius-card: 18px;
  --radius-btn: 24px;
  /* Transition */
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* 2. RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 18px;
}
body {
  font-family: var(--font-body);
  background: var(--retro-cream);
  color: var(--primary);
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}
a {
  color: var(--retro-blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--retro-orange);
}

/* 3. CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  font-family: var(--font-vintage);
  color: var(--retro-red);
  text-shadow: 2px 2px 0 var(--retro-yellow), 0 2px 8px var(--retro-shadow);
  margin-bottom: 10px;
}
h2 {
  font-size: 2rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 var(--retro-yellow);
}
h3 {
  font-size: 1.3rem;
  color: var(--retro-blue);
  font-family: var(--font-display);
  font-weight: 700;
}
h4 {
  font-size: 1.1rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--retro-brown);
  background: linear-gradient(90deg, var(--retro-yellow) 0%, var(--retro-cream) 100%);
  padding: 8px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
p {
  margin-bottom: 10px;
  font-size: 1rem;
}

ul, ol {
  margin-left: 1.2em;
  margin-bottom: 10px;
}
li {
  margin-bottom: 7px;
  font-size: 1rem;
}

/* 5. HEADER & NAVIGATION */
header {
  background: repeating-linear-gradient(135deg, var(--retro-yellow), var(--retro-yellow) 20px, var(--retro-cream) 20px, var(--retro-cream) 40px);
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 20px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
.cta-primary {
  background: linear-gradient(90deg, var(--retro-orange) 60%, var(--retro-yellow) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  margin-left: 18px;
  cursor: pointer;
  text-shadow: 1px 1px 0 var(--retro-brown);
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
  outline: none;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, var(--retro-red) 60%, var(--retro-orange) 100%);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
}
.cta-secondary {
  background: var(--retro-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  margin-top: 10px;
  transition: background var(--transition), transform var(--transition);
  outline: none;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--retro-green);
  color: var(--retro-brown);
  transform: translateY(-2px) scale(1.04) rotate(1deg);
}

/* 6. MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-left: 18px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-red);
  transform: scale(1.08) rotate(-8deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--retro-yellow) 60%, var(--retro-orange) 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,0,.3,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  margin-bottom: 24px;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-brown);
  transform: scale(1.08) rotate(8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  padding: 12px 0;
  border-bottom: 1px dashed var(--retro-brown);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--retro-yellow);
}

/* 7. HERO & SECTIONS */
section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: relative;
}
section:nth-child(even) {
  background: var(--retro-cream);
}

/* 8. FLEXBOX LAYOUTS (MANDATORY) */
.feature-grid, .service-list, .gallery-grid, .pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
}
.feature-grid > div, .service-list > div, .gallery-grid > div, .pricing-card, .yacht-card {
  background: var(--retro-yellow);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 260px;
  margin-bottom: 20px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-grid > div:hover, .service-list > div:hover, .gallery-grid > div:hover, .pricing-card:hover, .yacht-card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 32px var(--retro-shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--retro-yellow);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--retro-cream);
  border-left: 6px solid var(--retro-orange);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  color: var(--primary);
  font-size: 1.08rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: scale(1.03) rotate(1deg);
}
.testimonial-card p {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-size: 0.98rem;
  font-style: italic;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 9. PRICING TABLES */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
}
.pricing-card {
  background: var(--retro-yellow);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 260px;
  margin-bottom: 20px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card h3 {
  color: var(--retro-red);
  font-family: var(--font-vintage);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.pricing-card p {
  color: var(--retro-brown);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.pricing-card ul {
  margin-left: 1.2em;
  color: var(--primary);
  font-size: 1rem;
}

/* 10. GALLERY */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 10px;
}
.gallery-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
  background: var(--retro-yellow);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-grid > div:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 32px var(--retro-shadow);
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* 11. FOOTER */
footer {
  background: var(--retro-brown);
  color: #fff;
  padding: 36px 0 18px 0;
  border-top: 6px solid var(--retro-yellow);
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--retro-yellow);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
footer p {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.85;
}

/* 12. SOCIAL LINKS */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  font-size: 1.1rem;
}
.social-links h3 {
  font-size: 1rem;
  color: var(--retro-brown);
  margin-right: 8px;
}
.social-links a {
  color: var(--retro-blue);
  font-weight: 700;
  transition: color var(--transition);
}
.social-links a:hover {
  color: var(--retro-red);
}

/* 13. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: linear-gradient(90deg, var(--retro-yellow) 60%, var(--retro-orange) 100%);
  color: var(--primary);
  box-shadow: 0 -2px 18px var(--retro-shadow);
  padding: 24px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  animation: cookieBannerIn 0.7s cubic-bezier(.7,0,.3,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 60%;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--retro-blue);
  color: #fff;
  transform: scale(1.05);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--retro-brown);
  color: var(--retro-yellow);
  transform: scale(1.05);
}
.cookie-btn.settings {
  background: var(--retro-yellow);
  color: var(--primary);
  border: 2px dashed var(--retro-brown);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--retro-orange);
  color: #fff;
  transform: scale(1.05);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,43,73,0.55);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--retro-cream);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: var(--primary);
  animation: cookieModalIn 0.5s cubic-bezier(.7,0,.3,1);
  position: relative;
}
@keyframes cookieModalIn {
  from { transform: scale(0.8) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--retro-red);
  margin-bottom: 18px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: var(--retro-yellow);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  flex: 1 1 auto;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--retro-red);
  width: 22px;
  height: 22px;
}
.cookie-category.essential label {
  color: var(--retro-brown);
  font-weight: 700;
}
.cookie-category.essential input[type="checkbox"] {
  display: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), transform var(--transition);
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--retro-brown);
  transform: scale(1.08);
}

/* 14. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid > div, .service-list > div, .gallery-grid > div, .pricing-card, .yacht-card {
    min-width: 180px;
    padding: 18px 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 8px;
  }
  .main-nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
    font-size: 1rem;
    padding: 10px 18px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .service-list, .gallery-grid, .pricing-table {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-list > div, .gallery-grid > div, .pricing-card, .yacht-card {
    min-width: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 0.98rem;
    padding: 18px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    padding: 22px 8px 18px 8px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .cta-primary, .cta-secondary {
    font-size: 0.98rem;
    padding: 8px 12px;
  }
  section {
    padding: 18px 4px;
  }
}

/* 15. MICRO-INTERACTIONS & EFFECTS */
button, .cta-primary, .cta-secondary, .cookie-btn {
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
button:active, .cta-primary:active, .cta-secondary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* 16. VINTAGE/RETRO DECORATIVE ELEMENTS */
section::before {
  content: '';
  display: block;
  position: absolute;
  left: 18px; top: 18px;
  width: 48px; height: 48px;
  background: url('data:image/svg+xml;utf8,<svg width="48" height="48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="22" fill="%23F9D77E" stroke="%237C5E3C" stroke-width="4"/></svg>') no-repeat center/contain;
  opacity: 0.12;
  z-index: 0;
}
section:nth-child(even)::before {
  left: auto; right: 18px;
  top: 18px;
}

/* Remove decorative element on mobile */
@media (max-width: 768px) {
  section::before {
    display: none;
  }
}

/* 17. ACCESSIBILITY & FOCUS */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus {
  outline: 2px dashed var(--retro-red);
  outline-offset: 2px;
}

/* 18. MISC */
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-yellow);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-brown);
  border-radius: 8px;
}

/* 19. PRINT STYLES */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section { box-shadow: none !important; background: #fff !important; }
}
