/* iMaldives Travels landing page. Colours are sampled from the sunrise photo and the logo. */
:root {
  --sky: #d8dcdd;
  --dawn: #fbeee0;
  --sand: #f8f1e7;
  --ink: #0b2a40;
  --ink-soft: #3d566a;
  --blue: #05609f;
  --sun: #f7a11b;
  --line: rgba(11, 42, 64, .18);
  --on-dark: #f6efe5;
  --on-dark-soft: #b9c8d2;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: 16px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; }
h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 16px; }

.eyebrow { font-weight: 600; font-size: .9375rem; line-height: 1.35; color: var(--blue); }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.25; text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--blue); transform: translateY(-1px); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--blue); }

/* Header sits over the sky of the hero photo */
.site-head {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
}
.brand img { width: auto; height: 84px; }
.site-head nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-weight: 500; font-size: .9875rem; }
.site-head nav a { text-decoration: none; padding-block: 8px; }
.site-head nav a:hover { color: var(--blue); }
.nav-tel { font-weight: 600; }

/* Hero: words stay in the sky, either side of the fishing rods, above the boat */
.hero {
  position: relative; overflow: hidden; background: var(--sky);
  min-height: max(100svh, min(66vw, 125svh));
  display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 28fr); column-gap: 12vw;
  align-content: start;
  padding: 122px var(--gutter) 0;
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-title, .hero-side { position: relative; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-side { animation-delay: .12s; padding-top: 30px; }
.hero h1 { margin-top: 10px; font-size: clamp(3.2rem, 6.1vw, 7.4rem); line-height: .98; }
.hero h1 em { color: var(--blue); }
.hero-side p { font-size: 1.0625rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Maker: white DohaCraft logo needs the dark ground */
.maker { background: var(--ink); color: var(--on-dark); padding-block: clamp(72px, 10vw, 136px); }
.maker-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.maker-logo { width: min(100%, 400px); }
.maker-copy p { margin-top: 24px; max-width: 58ch; color: var(--on-dark-soft); }
.hull { margin-top: clamp(56px, 8vw, 104px); margin-inline: auto; max-width: 1320px; padding-inline: var(--gutter); }
.hull img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 4px; }
.build { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(40px, 5vw, 64px); }
.build dt { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.build dd { margin-top: 10px; color: var(--on-dark-soft); }

/* Fleet: the model names are the display */
.fleet { padding-block: clamp(72px, 10vw, 136px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head p { color: var(--ink-soft); }
.series { display: grid; grid-template-columns: 4fr 8fr; gap: 16px clamp(32px, 6vw, 96px); padding-block: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.series-info .link { display: inline-block; margin-top: 6px; font-size: .9375rem; font-weight: 500; color: var(--ink-soft); }
.models li + li { border-top: 1px solid var(--line); }
.models a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 8px 10px; text-decoration: none;
  font-family: var(--serif); font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.1;
  transition: color .2s, padding-left .25s;
}
.models a i { font: 500 .9375rem/1 var(--sans); color: var(--ink-soft); white-space: nowrap; transition: color .2s; }
.models a:hover { color: var(--blue); padding-left: 10px; }
.models a:hover i { color: var(--blue); }
.spec { display: grid; grid-template-columns: 4fr 8fr; gap: 12px clamp(32px, 6vw, 96px); padding-top: clamp(28px, 3vw, 36px); border-top: 1px solid var(--ink); }
.spec p { max-width: 62ch; color: var(--ink-soft); }

/* Booking: the boat's reflection carries the section */
.booking {
  position: relative; color: var(--on-dark); padding-block: clamp(80px, 11vw, 152px);
  background: linear-gradient(rgba(11, 42, 64, .74), rgba(11, 42, 64, .82)), url("assets/water.webp") center / cover var(--ink);
}
.booking .eyebrow { color: #ffc56b; }
.booking h2 { margin-top: 12px; max-width: 17em; }
.book-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-block: clamp(40px, 5vw, 64px); }
.book-types li { padding-top: 16px; border-top: 1px solid rgba(246, 239, 229, .4); }
.book-types h3 { font: 400 clamp(1.75rem, 2.8vw, 2.4rem)/1.1 var(--serif); }
.book-types p { margin-top: 8px; color: #dbe3e8; }

/* Contact */
.contact { background: var(--dawn); padding-block: clamp(64px, 9vw, 120px); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-role { margin-top: 12px; max-width: 46ch; color: var(--ink-soft); }
.contact-ways { margin-top: 28px; }
.contact-ways a {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.8vw, 3rem); line-height: 1.25;
  text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere;
}
.contact-ways a:hover { color: var(--blue); }
.contact-logo { width: clamp(220px, 24vw, 320px); }

.site-foot { background: var(--ink); color: var(--on-dark-soft); font-size: .9375rem; padding-block: 20px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-foot a:hover { color: #fff; }

/* WhatsApp button stays in reach while scrolling */
.wa {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 5;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px 12px 18px;
  border-radius: 999px; background: #25d366; color: var(--ink);
  font-weight: 600; line-height: 1; text-decoration: none;
  box-shadow: 0 6px 20px rgba(11, 42, 64, .28);
  transition: background-color .2s, transform .2s;
}
.wa:hover { background: #3ee07b; transform: translateY(-2px); }
.wa svg { flex: none; }

/* Tablet and phone: words first on matched sky colour, then the whole boat */
@media (max-width: 900px) {
  .brand img { height: 68px; }
  .site-head { padding-block: 12px; }
  .site-head nav a:not(.nav-tel) { display: none; }
  .hero { display: block; min-height: 0; padding: 104px 0 0; }
  .hero-title, .hero-side { padding-inline: var(--gutter); z-index: 1; }
  .hero h1 { font-size: clamp(3rem, 13.4vw, 5.6rem); }
  .hero-side { padding-top: 16px; max-width: 34rem; }
  .hero-photo { position: relative; inset: auto; display: block; margin-top: -9vw; order: 3; }
  .hero-photo img {
    height: auto;
    -webkit-mask-image: linear-gradient(transparent, #000 22%);
    mask-image: linear-gradient(transparent, #000 22%);
  }
  .hero { display: flex; flex-direction: column; }
  .maker-grid, .series, .spec, .contact-grid { grid-template-columns: 1fr; }
  .maker-logo { width: min(72%, 320px); }
  .contact-logo { width: 200px; }
}
@media (max-width: 680px) {
  .build, .book-types { grid-template-columns: 1fr; }
  .models a i { font-size: .875rem; }
  .wa { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa span { display: none; }
  .wa svg { width: 28px; height: 28px; }
}

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