/* ============================================================
   Ichies Yachts Empire — Global Stylesheet
   Mobile / Tablet / Laptop responsive, fast loading
   ============================================================ */

:root {
  --navy: #0a1f33;
  --navy-2: #10314f;
  --gold: #c9a45c;
  --gold-light: #e6cf9a;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #1c2b3a;
  --muted: #5c6f80;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 31, 51, 0.12);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section { padding: 2.5rem 0; }
.section--tight { padding: 1.25rem 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #dfe8f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.8rem; }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; }
.section--navy .section-lead { color: #b9c8d6; }

.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy); box-shadow: 0 8px 20px rgba(201, 164, 92, 0.4); }
.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 51, 0.96);
  backdrop-filter: blur(6px);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }

.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--gold); flex-shrink: 0;
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__name { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; line-height: 1.15; }
.brand__name small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.34em; color: var(--gold); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-menu > li > a {
  color: #e8eef4; font-size: 0.92rem; font-weight: 500; padding: 0.5rem 0;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--gold); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 0.65rem 1rem; border-radius: 8px;
  color: var(--ink); font-size: 0.9rem;
}
.dropdown a:hover { background: var(--cream); color: var(--navy); }
.dropdown .caret { transition: transform 0.2s ease; display: inline-block; font-size: 0.7rem; }
.has-dropdown:hover .caret, .has-dropdown.open .caret { transform: rotate(180deg); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,31,51,0.88) 20%, rgba(10,31,51,0.35) 65%, rgba(10,31,51,0.15));
}
.hero__content { position: relative; z-index: 2; max-width: 640px; padding: 4rem 0; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0.6rem 0 1.2rem; }
.hero p { font-size: 1.08rem; color: #d5e0ea; margin-bottom: 2.2rem; max-width: 520px; }
.hero .eyebrow { color: var(--gold-light); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-strip { background: var(--navy); color: #cfdce8; }
.hero-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 1.6rem 0; text-align: center;
}
.hero-strip strong { display: block; color: var(--gold); font-family: var(--font-head); font-size: 1.5rem; }
.hero-strip span { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.8rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,31,51,0.18); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card__body h3 { font-size: 1.25rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; color: var(--muted); font-size: 0.85rem; }
.card__meta span::before { content: "◆ "; color: var(--gold); font-size: 0.6rem; vertical-align: middle; }
.card__body p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.card__body .btn { align-self: flex-start; margin-top: 0.4rem; padding: 0.65rem 1.6rem; font-size: 0.88rem; }

/* ---------- Split feature (home sections) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split ul { list-style: none; margin: 1.2rem 0 1.8rem; display: grid; gap: 0.55rem; }
.split ul li { padding-left: 1.6rem; position: relative; color: var(--ink); }
.split ul li::before {
  content: "✦"; position: absolute; left: 0; color: var(--gold);
}
.split--flip .split__media { order: 2; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem;
  border-top: 4px solid var(--gold);
}
.testimonial__stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.95rem; }
.testimonial__quote { color: var(--ink); font-size: 0.95rem; font-style: italic; flex: 1; }
.testimonial__quote::before { content: "“"; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); margin-right: 0.15rem; }
.testimonial__who { display: flex; align-items: center; gap: 0.8rem; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--gold-light); display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial__who strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial__who span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: var(--white);
  padding: 6.5rem 0 4.5rem;
  background: linear-gradient(120deg, var(--navy) 30%, var(--navy-2));
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,92,0.35), transparent 70%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.7rem; }
.page-hero p { color: #c6d4e0; max-width: 620px; position: relative; z-index: 1; }
.breadcrumb { font-size: 0.82rem; color: var(--gold-light); margin-bottom: 1rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; z-index: 1; }
.breadcrumb a { color: var(--gold-light); }

/* ---------- About page ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0; }
.about-block + .about-block { border-top: 1px solid #e7e2d6; }
.about-block__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.about-block p { color: var(--muted); margin-bottom: 1rem; }
.ceo-signature { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--gold); margin-top: 1rem; }
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.values-list div { background: var(--cream); border-radius: 10px; padding: 1rem 1.2rem; }
.values-list strong { color: var(--navy); display: block; margin-bottom: 0.2rem; }
.values-list span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid #d9d2c2; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: #fdfcf9; transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }
.form-success {
  display: none; background: #e8f6ec; border: 1.5px solid #7cc48f; color: #1f6b34;
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.92rem;
}
.form-success.show { display: block; }

.contact-info { display: grid; gap: 1.2rem; align-content: start; }
.info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.7rem; display: flex; gap: 1rem; }
.info-card__icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold); display: grid; place-items: center; font-size: 1.15rem;
}
.info-card strong { display: block; color: var(--navy); margin-bottom: 0.15rem; }
.info-card p, .info-card a { font-size: 0.92rem; color: var(--muted); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.cta-band p { color: #c6d4e0; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: #071627; color: #9fb2c2; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer ul a { color: #9fb2c2; font-size: 0.9rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; margin-top: 0.8rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.4rem; text-align: center; font-size: 0.82rem; color: #6d8199; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-strip .container { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 2.2rem; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.4rem 0; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    padding: 0.6rem 4%;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 20px 30px rgba(0,0,0,0.25);
  }
  .nav-menu.active { max-height: 520px; padding-bottom: 1.2rem; }
  .nav-menu > li { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-menu > li > a { display: flex; justify-content: space-between; padding: 0.9rem 0.2rem; }

  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: rgba(255,255,255,0.05);
    border-radius: 8px; margin: 0 0 0.6rem; min-width: 0;
    display: none; padding: 0.3rem;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.open .dropdown {
    display: block;
    transform: none; /* cancel the desktop translateX(-50%) centring */
  }
  .dropdown a { color: #d7e1ea; }
  .dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }

  .split, .about-block, .contact-wrap, .form-row { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .grid--3, .grid--4, .testimonial-grid { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .values-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- Small phones (≤ 480px) ---------- */
@media (max-width: 480px) {
  .hero-strip .container { grid-template-columns: 1fr 1fr; }
  .brand__name { font-size: 1rem; }
  .card__body { padding: 1.2rem; }
  .form-card { padding: 1.5rem; }
}

/* ============================================================
   v2 — Testimonials marquee + spacing refinements
   ============================================================ */

/* Horizontal marquee: slow scroll, pauses on hover/focus */
.marquee { overflow: hidden; padding: 0.5rem 0; }
.marquee__track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: marquee-scroll 80s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee .testimonial { width: 340px; flex-shrink: 0; margin: 0; }

/* About-page blocks: 50% tighter than original */
.about-block { padding: 1.75rem 0; }

@media (max-width: 768px) {
  .section { padding: 1.7rem 0; }
  .section--tight { padding: 0.9rem 0; }
  .marquee .testimonial { width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}
