/* Arabian Gulf Yacht Services
   Colours are taken from the logo: turquoise wave, silver wave, grey wordmark. */
:root {
  --aqua: #52C0A6;          /* logo turquoise, for accents and large shapes */
  --aqua-deep: #17836F;     /* darker turquoise, for text, links and buttons */
  --aqua-tint: #EAF6F3;
  --silver: #C9CDCF;
  --ink: #2F3437;
  --ink-soft: #686F73;
  --bg: #FFFFFF;
  --bg-soft: #F5F8F7;
  --line: #E3E8E7;
  --night: #1B2427;         /* footer and dark bands */
  --on-dark: #F2F6F5;
  --radius-lg: 20px;
  --radius: 12px;
  --shadow: 0 18px 40px -24px rgba(20, 40, 38, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --aqua-deep: #6FD2BB; --aqua-tint: #17312C; --silver: #46504F;
    --ink: #E9EEED; --ink-soft: #A9B3B1; --bg: #111719; --bg-soft: #172022;
    --line: #26302F; --night: #0B1012; --shadow: 0 18px 40px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --aqua-deep: #6FD2BB; --aqua-tint: #17312C; --silver: #46504F;
  --ink: #E9EEED; --ink-soft: #A9B3B1; --bg: #111719; --bg-soft: #172022;
  --line: #26302F; --night: #0B1012; --shadow: 0 18px 40px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--aqua-deep); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font: inherit; font-weight: 500;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--aqua-deep); color: #fff; }
.btn-primary:hover { background: #126B5B; }
.btn-light { background: #fff; color: #1F2A2D; }
.btn-light:hover { background: var(--aqua-tint); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--aqua-deep); color: var(--aqua-deep); }
.btn-outline:hover { background: var(--aqua-tint); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo img { height: 58px; width: auto; }
@media (max-width: 820px) { .logo img { height: 50px; } }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 400; }
.nav a:hover { color: var(--aqua-deep); }
.nav .btn { color: #fff; padding: .6rem 1.2rem; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; border: 0; }
}

/* Hero */
.hero { padding: 0 1.25rem; }
.hero-inner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: min(82vh, 760px); display: flex; align-items: flex-end;
  color: #fff;
  /* Save the hero photo as images/hero.jpg. Until then the teal gradient shows. */
  background:
    linear-gradient(180deg, rgba(10,25,28,.05) 30%, rgba(10,25,28,.65) 100%),
    url("../images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #1E5C55 0%, #2E8F80 55%, #8FD3C3 100%);
}
.hero-content { position: relative; padding: clamp(2rem, 6vw, 4.5rem); max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 300; margin-bottom: 1rem; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin: 0 0 2rem; opacity: .92; max-width: 44ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-waves { position: absolute; right: -4%; top: 8%; width: 60%; opacity: .5; pointer-events: none; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .lead { margin: .75rem 0 0; }

/* Statement */
.statement { padding-block: clamp(4rem, 9vw, 7rem); }
.statement p {
  margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 300; line-height: 1.3;
  max-width: 30ch; color: var(--ink);
}
.statement p span { color: var(--ink-soft); }

/* Services */
.services-section { background: var(--bg-soft); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--bg); border-radius: var(--radius); padding: 2rem 1.75rem 2.1rem;
  border: 1px solid var(--line);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--aqua-tint); color: var(--aqua-deep);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.4rem; margin-bottom: .6rem; font-weight: 500; }
.service p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Boat cards */
.boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.boat-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.boat-card .photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--aqua-tint);
}
.boat-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.boat-card:hover .photo img { transform: scale(1.04); }
.boat-card .body { padding: 1.1rem .25rem 0; }
.boat-card h3 { font-size: 1.35rem; font-weight: 500; }
.boat-card .price { color: var(--aqua-deep); font-weight: 500; margin-top: .2rem; }
.boat-card .meta { color: var(--ink-soft); font-size: .95rem; margin-top: .25rem; }
.chip {
  position: absolute; top: .9rem; left: .9rem; z-index: 1; font-size: .85rem; font-weight: 500;
  padding: .3rem .8rem; border-radius: 999px; background: #fff; color: #1F2A2D;
}
.chip.sold { background: #1F2A2D; color: #fff; }
.chip.offer { background: var(--aqua); color: #0F2B26; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--aqua-deep); opacity: .55; }
.placeholder svg { width: 55%; }

.sold-head { margin: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sold-head h3 { font-size: 1.6rem; font-weight: 300; }
.sold-head p { margin: 0; color: var(--ink-soft); }
.boat-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
.boat-grid.compact .boat-card h3 { font-size: 1.05rem; }
.boat-grid.compact .photo { aspect-ratio: 3 / 2; }
.boat-grid.compact .photo img { filter: saturate(.85); }
.empty { color: var(--ink-soft); }

/* Contact */
.contact { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(242,246,245,.75); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.5rem; }
.contact-details li { display: flex; gap: 1rem; align-items: center; }
.contact-details .service-icon { margin: 0; background: rgba(82,192,166,.15); color: var(--aqua); flex: none; }
.contact-details small { display: block; color: rgba(242,246,245,.6); font-size: .9rem; }
.contact-details a { color: #fff; font-size: 1.2rem; text-decoration: none; }
.contact-details a:hover { color: var(--aqua); }
.form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .95rem; color: rgba(242,246,245,.8); }
.form input, .form textarea {
  font: inherit; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: .8rem .95rem; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
.form .hp { display: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--night); color: rgba(242,246,245,.65); border-top: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; padding-block: 2rem; }
.site-footer img { height: 40px; width: auto; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: rgba(242,246,245,.8); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }

/* Boat page */
.boat-page { padding-block: 1.5rem clamp(4rem, 8vw, 6rem); }
.back { display: inline-flex; gap: .4rem; align-items: center; text-decoration: none; color: var(--ink-soft); margin-bottom: 1.25rem; }
.back:hover { color: var(--aqua-deep); }
.boat-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.gallery-main { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--aqua-tint); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; margin-top: .75rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 2; background: var(--aqua-tint); }
.thumbs button[aria-current="true"] { border-color: var(--aqua-deep); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.boat-summary { position: sticky; top: 100px; background: var(--bg-soft); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.boat-summary .status { display: inline-block; font-size: .85rem; font-weight: 500; padding: .25rem .75rem; border-radius: 999px; background: var(--aqua-tint); color: var(--aqua-deep); }
.boat-summary .status.sold { background: #1F2A2D; color: #fff; }
.boat-summary h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 300; margin: .9rem 0 .4rem; }
.boat-summary .price { font-size: 1.5rem; color: var(--aqua-deep); font-weight: 500; }
.boat-summary p.summary { color: var(--ink-soft); margin: 1rem 0 0; }
.boat-summary .actions { display: grid; gap: .6rem; margin-top: 1.5rem; }
.key-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; border-top: 1px solid var(--line); }
.key-specs div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.key-specs dt { color: var(--ink-soft); font-size: .9rem; }
.key-specs dd { margin: .15rem 0 0; font-size: 1.05rem; }
.boat-description { margin-top: 2.5rem; max-width: 68ch; }
.boat-description p { margin: 0 0 1rem; }
.spec-groups { columns: 2 300px; column-gap: 1.5rem; margin-top: 2.5rem; }
.spec-group { break-inside: avoid; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.spec-group h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: .75rem; color: var(--aqua-deep); }
.spec-group ul { list-style: none; margin: 0; padding: 0; }
.spec-group li { padding: .4rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .98rem; }
.spec-group li:first-child { border-top: 0; }
.spec-group li span:first-child { color: var(--ink-soft); }
.spec-group li span:last-child { text-align: right; }
.spec-group li.plain { display: list-item; }
.more-boats { margin-top: clamp(4rem, 8vw, 6rem); }
.more-boats h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.not-found { padding-block: 6rem; text-align: center; }
@media (max-width: 900px) { .boat-layout { grid-template-columns: 1fr; } .boat-summary { position: static; } }

/* Fade in on scroll. Only applies when JavaScript has loaded, so content never stays hidden. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .boat-card .photo img { transition: none; }
}
