/* ===============================================================
   SEA — Superyacht Experts Alliance · Landing page styles
   Brand palette: Navy #0A1628 · Gold #C8A45C · Cream #F4F1EA
   Fonts: Cormorant Garamond (display) + Inter (body)
   =============================================================== */

:root {
  --navy:        #0A1628;
  --navy-mid:    #1B2A4A;
  --navy-light:  #2C3E5C;
  --gold:        #C8A45C;
  --gold-soft:   #E8C96A;
  --cream:       #F4F1EA;
  --white:       #FFFFFF;
  --grey-blue:   #8899AA;
  --text-dark:   #1A1A1A;
  --text-muted:  #5A6470;

  --max-width: 1200px;
  --transition: 0.3s ease;
  --radius: 6px;
  --shadow-md: 0 4px 18px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.18);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
/* Section titles (h2 of each section). Increase max value here to grow them uniformly:
   clamp(MIN, PREFERRED, MAX) — currently 2.2rem → 3.4rem. Try 2.6/3.8 for bigger.  */
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* Section eyebrow (the small uppercase label above the title)
   Increase font-size if you want it more prominent. Currently 0.85rem. */
.section-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
/* Uniformly centered section heads across all sections. */
.section-title {
  margin: 0 auto 56px;
  max-width: 880px;
  text-align: center;
}
.section .section-eyebrow,
.section-title { display: block; text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img {
  height: 38px;
  width: auto;
  /* Use multiply blend to bleed the white-on-black logo background into the dark header */
  mix-blend-mode: screen;
}
.nav-main {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-main a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
}
.nav-main a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-main a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-main a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.nav-main a.nav-cta:hover { background: var(--gold-soft); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('images/hero-superyacht.jpg') center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.65) 0%, rgba(10, 22, 40, 0.40) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 140px 24px 80px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.95;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  z-index: 2;
  opacity: 0.7;
  animation: bounce 2s infinite;
}
.hero-scroll:hover { opacity: 1; color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 100px 0;
  background: var(--cream);
}
/* Light variant (was dark navy in v1, switched to white per client feedback) */
.section-dark {
  background: var(--white);
  color: var(--text-dark);
}
.section-dark .section-title,
.section-dark h3 { color: var(--navy); }
.section-dark .section-eyebrow { color: var(--gold); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  margin-bottom: 18px;
  color: var(--text-dark);
  font-size: 1.02rem;
}
.about-text p strong { color: var(--navy); font-weight: 600; }
.about-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(10, 22, 40, 0.08);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  text-align: center;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  font-size: 2.6rem;
  margin: 0 auto 20px;
  color: var(--gold);
  text-align: center;
  display: block;
  line-height: 1;
}
.service-card h3 {
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.service-card p {
  color: var(--text-dark);
  opacity: 1;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
}

/* ---------- TEAM ---------- */
.section-team { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.team-card {
  text-align: center;
  margin: 0;
}
.team-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  /* Soft light gradient — works with transparent PNG cutouts */
  background: linear-gradient(135deg, #DCE4EC 0%, #B8C9D8 100%);
  box-shadow: var(--shadow-md);
  position: relative;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Transparent PNG sits on the soft gradient above */
}
.team-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.team-role {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.team-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------- WHY SEA ---------- */
.section-why { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-card {
  padding: 32px 24px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.why-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}
.why-card p {
  color: var(--text-dark);
  opacity: 1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- CONTACT ---------- */
.section-contact {
  background: var(--cream);
  text-align: left;
}
/* Override the universal centered section heads — Contact is left-aligned. */
.section-contact .section-eyebrow,
.section-contact .section-title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.contact-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 700px;
  text-align: left;
}
/* Center the bottom CTA button on its own row. */
.contact-cta { text-align: center; margin-top: 8px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.contact-card {
  background: var(--white);
  padding: 40px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.contact-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.contact-card-primary {
  background: var(--navy);
  color: var(--cream);
}
.contact-card-primary h3 { color: var(--gold); }
.contact-line {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.contact-line a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-line a:hover { color: var(--gold); }
/* Primary (dark navy) card — link must be visible by default, not only on hover.
   These selectors are intentionally more specific than `.contact-line a` above
   so they win the cascade and keep the email readable on the navy background. */
.contact-card-primary .contact-line {
  color: rgba(244, 241, 234, 0.85);
}
.contact-card-primary .contact-line a {
  color: var(--gold-soft);
}
.contact-card-primary .contact-line a:hover {
  color: var(--white);
}

/* ---------- MAP ---------- */
.section-map {
  background: var(--cream);
  padding-bottom: 0; /* the map sits flush at the bottom of the section */
}
.section-map .container { text-align: center; }
.section-map .section-title { margin-left: auto; margin-right: auto; }
.map-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.map-frame-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* Subtle gradient overlay between section and footer */
  border-top: 1px solid rgba(10, 22, 40, 0.08);
}
.map-frame {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: #1B2A4A; /* matches inner map bg while loading */
}
@media (max-width: 768px) {
  .map-frame { height: 480px; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-col { min-width: 0; }

/* Brand column (left) */
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img {
  height: 38px;
  width: auto;
  mix-blend-mode: screen;
  align-self: flex-start;
}
.footer-brand-tag {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-soft);
}

/* Contacts column (center) — clickable email + phones + back-to-Contact link */
.footer-contacts { text-align: left; }
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: rgba(244, 241, 234, 0.85);
}
.footer-label {
  flex: 0 0 64px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-blue);
}
/* Footer link colour: bumped specificity (.footer-contacts .footer-line a)
   so it can't be overridden by the global `a { color: var(--navy); }` rule
   or any later page-level rule. Gold-soft for strong contrast on navy. */
.footer-contacts .footer-line a {
  color: var(--gold-soft);
  font-weight: 600;
  transition: color var(--transition);
}
.footer-contacts .footer-line a:hover { color: var(--white); }
.footer-cta-line { margin-top: 18px; }
.footer-cta-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.footer-cta-link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

/* Meta column (right) — copyright */
.footer-meta { text-align: right; }
.footer-meta p {
  font-size: 0.85rem;
  color: rgba(244, 241, 234, 0.65);
  margin-bottom: 12px;
  line-height: 1.55;
}
.footer-tag {
  color: var(--gold-soft) !important;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem !important;
}

/* =============================================================== */
/* ============== RESPONSIVE ===================================== */
/* =============================================================== */

@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-figure img { height: 360px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero-inner { padding: 110px 24px 60px; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }

  .nav-burger { display: flex; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-main.open { display: flex; }
  .nav-main a { font-size: 1rem; padding: 8px 0; }
  .nav-main a.nav-cta { text-align: center; }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .team-photo { width: 150px; height: 150px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-brand img { align-self: center; }
  .footer-contacts { text-align: center; }
  .footer-line {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }
  .footer-label { flex: none; }
  .footer-meta { text-align: center; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { width: 180px; height: 180px; }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
