/* ==========================================================================
   Aloha Island Weddings - site stylesheet
   One stylesheet for every page. Colours and fonts are set once in :root.
   ========================================================================== */

:root {
  --ink: #1f2d36;
  --muted: #5b6b75;
  --sand: #fbf7f1;
  --sand-deep: #f3ebe0;
  --shell: #ffffff;
  --ocean: #0e6f78;
  --ocean-dark: #0a4a52;
  --ocean-night: #07343a;
  --hibiscus: #c9356a;
  --hibiscus-dark: #a52653;
  --gold: #e0a73a;
  --line: #e8ddcf;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 45, 55, .12);
  --font-body: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --container: 1140px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: var(--ocean); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: var(--hibiscus); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--ocean-dark); margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
strong, b { font-weight: 700; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--shell); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* ---------- top bar ---------- */
.topbar { background: var(--ocean-night); color: #d9ecee; font-size: 14px; }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-contact { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- header + navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 45, 55, .06);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { font-size: 34px; line-height: 1; color: var(--hibiscus); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-script); font-size: 34px; color: var(--ocean-dark); }
.brand-tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.menu, .sub-menu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a, .sub-toggle {
  display: block; padding: 10px 14px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.2 var(--font-body); color: var(--ink); text-decoration: none; border-radius: 999px;
}
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu > li > a:hover, .sub-toggle:hover, .has-sub.open > .sub-toggle { color: var(--hibiscus); background: var(--sand); }
.menu > li.is-current > a, .menu > li.is-current > .sub-toggle { color: var(--hibiscus); }
.menu > li > a.nav-cta { background: var(--hibiscus); color: #fff; padding: 10px 20px; margin-left: 8px; }
.menu > li > a.nav-cta:hover { background: var(--hibiscus-dark); color: #fff; }
.sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 220px; padding: 8px;
  background: var(--shell); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--sand); color: var(--hibiscus); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--shell); cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle span:first-child { top: 22px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
.nav-open .nav-toggle span:first-child { background: transparent; }
.nav-open .nav-toggle span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--shell); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 120px); overflow-y: auto; display: none;
  }
  .nav-open .site-nav { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0; }
  .menu > li > a, .sub-toggle { width: 100%; text-align: left; border-radius: 10px; padding: 13px 12px; font-size: 16px; }
  .sub-toggle::after { float: right; margin-top: 6px; }
  .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .menu > li > a.nav-cta { margin: 10px 0 0; text-align: center; }
  .brand-name { font-size: 28px; }
  .brand-mark { font-size: 28px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background-color: var(--ocean-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 88px 0 80px;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--sand); clip-path: ellipse(60% 100% at 50% 100%); }
.hero-in { position: relative; z-index: 1; max-width: 860px; }
.hero-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-home { padding: 130px 0 120px; min-height: 68vh; display: flex; align-items: center; }
.hero-home h1 { font-family: var(--font-script); font-weight: 400; font-size: clamp(3.2rem, 9vw, 6.2rem); line-height: 1.05; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 640px; margin: 18px auto 0; color: #f2f7f7; }
.hero-actions { margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--hibiscus); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--hibiscus); transition: background .2s, border-color .2s; }
.btn:hover, .btn:focus-visible { background: var(--hibiscus-dark); border-color: var(--hibiscus-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .85); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .15); border-color: #fff; }

/* ---------- page content ---------- */
.content { padding: 56px 0 72px; }
.content .container > :first-child { margin-top: 0; }
.center { text-align: center; }
.t-xl { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.3; color: var(--hibiscus); font-weight: 600; }
.t-xl strong, .t-xl b { font-weight: 600; }
.t-lg { font-size: 1.12rem; color: var(--ocean-dark); }
p.t-xl, div.t-xl { margin-top: 1.4em; }
.content i, .content em { color: var(--ocean-dark); }
hr.sep { width: 120px; margin: 1.4rem auto; border: 0; border-top: 2px solid var(--gold); }

.content img.img-r { display: block; width: 100%; border-radius: var(--radius); margin: 0 auto; }
.content img.img-f { display: inline-block; vertical-align: middle; border-radius: 6px; }
.content img.img-f[width] { max-width: 100%; }
.content p > img.img-r, .content div > img.img-r { margin-bottom: 14px; }

/* blocks of content get breathing room */
.content .container > div,
.content .container > p,
.content .stack > div { margin-bottom: 1.4rem; }

.video-r { display: block; width: 100%; border-radius: var(--radius); background: #000; margin: 0 auto 1.2rem; }
.audio-r { display: block; width: 100%; max-width: 360px; margin: 10px auto; }

.embed { position: relative; width: 100%; aspect-ratio: var(--ar, 16/9); margin: 0 auto 1.2rem; border-radius: var(--radius); overflow: hidden; background: #0b2a30; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-insta { aspect-ratio: auto; height: 560px; max-width: 480px; background: var(--shell); border: 1px solid var(--line); }

/* two-column rows (were "tableLayout") */
.row { display: flex; align-items: center; gap: 36px; margin: 2.2rem 0; }
.row > .col { flex: 1 1 0; min-width: 0; }
.row.box1, .row:has(> .col video), .row:has(> .col .embed) { background: var(--shell); padding: 28px; border-radius: 20px; box-shadow: var(--shadow); }
.row > .col > :last-child { margin-bottom: 0; }

/* layout tables from the old site become responsive grids */
.grid-table { width: 100%; border-collapse: separate; border-spacing: 18px 10px; margin: 1.2rem 0; table-layout: fixed; }
.grid-table td, .grid-table th { vertical-align: top; padding: 0; text-align: inherit; font-weight: inherit; }
.grid-table img.img-f { max-width: 100%; }

.stack > div:last-child { margin-bottom: 0; }

/* ---------- carousels ---------- */
.carousel { position: relative; margin: 0 auto 1.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ocean-night); }
.carousel-track {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track[style] { aspect-ratio: var(--ar); }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.carousel-track[style] .slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; }
.carousel-track .slide img.img-r { border-radius: 0; margin: 0; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: var(--ocean-dark); font-size: 22px; line-height: 44px; text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: background .2s;
}
.carousel-btn:hover { background: #fff; color: var(--hibiscus); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0 60px; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }

/* ---------- feature band (was the "flying carpet") ---------- */
.feature-band { margin: 2.6rem 0; text-align: center; }
.feature-band img { display: block; width: 100%; height: clamp(240px, 42vw, 520px); object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.feature-band .video-r { border-radius: 20px; box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.footer-video { background: var(--sand-deep); padding: 48px 0; }
.footer-video .video-r { max-width: 960px; margin: 0 auto; box-shadow: var(--shadow); }
.site-footer { background: var(--ocean-night); color: #cfe3e5; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { font-family: var(--font-script); font-size: 34px; color: #fff; margin: 0 0 10px; line-height: 1.1; }
.footer-title { font-family: var(--font-head); font-size: 22px; color: #fff; margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.footer-links img { border-radius: 0; }
.footer-col .video-r { margin: 0; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 32px; background: #fff; border-radius: 16px; padding: 18px 24px; }
.partner-logos img { height: 56px; width: auto; }
.footer-bottom { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: 14px; text-align: center; }
.footer-bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .row { flex-direction: column; align-items: stretch; gap: 20px; }
  .row.box1, .row:has(> .col video), .row:has(> .col .embed) { padding: 18px; }
  .grid-table, .grid-table tbody, .grid-table tr, .grid-table td, .grid-table th { display: block; width: 100%; }
  .grid-table { border-spacing: 0; }
  .grid-table td, .grid-table th { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 58px; }
  .hero-home { padding: 90px 0 80px; min-height: 0; }
  .content { padding: 36px 0 52px; }
  .t-xl { font-size: 1.45rem; }
  .carousel-btn { width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
  .carousel-dots { display: none; }
  .topbar .social { display: none; }
  .partner-logos img { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html, .carousel-track { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- homepage: Google reviews (Trustindex) + map ---------- */
.reviews-map { scroll-margin-top: 90px; background: var(--shell); padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.section-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--hibiscus); }
.reviews-widget { margin-bottom: 56px; }
.reviews-widget:empty { display: none; }
.map-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.map-embed { position: relative; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand-deep); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-address p { margin: 0 0 12px; }
.map-name { font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; color: var(--ocean-dark); line-height: 1.2; }
@media (max-width: 860px) {
  .reviews-map { padding: 44px 0; }
  .map-row { grid-template-columns: 1fr; gap: 24px; }
  .map-address { text-align: center; }
}

/* ---------- forms (online wedding planner) ---------- */
.content form { max-width: 980px; margin: 0 auto; text-align: left; background: var(--shell); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.content form h3 { font-family: var(--font-head); font-size: 1.5rem; margin: 0 0 12px; color: var(--hibiscus); }
.content form label { font-weight: 600; font-size: 15px; color: var(--ocean-dark); }
.content form .row { align-items: flex-start; gap: 28px; margin: 0 0 18px; }
.content form .row > .col > div { margin-bottom: 14px; }
.content form input[type="text"], .content form input[type="email"], .content form input[type="tel"],
.content form input[type="date"], .content form input[type="number"], .content form select, .content form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  font: 16px/1.4 var(--font-body); color: var(--ink); background: var(--sand);
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.content form input:focus, .content form select:focus, .content form textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(14, 111, 120, .15); background: #fff; }
.content form textarea { min-height: 130px; resize: vertical; }
.content form input[type="checkbox"], .content form input[type="radio"] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--hibiscus); }
.content form div:has(> input[type="checkbox"]) { padding: 5px 0; }
.content form div:has(> input[type="checkbox"]) label { font-weight: 400; color: var(--ink); }
.content form input[type="submit"], .content form button[type="submit"] {
  display: block; margin: 24px auto 0; padding: 15px 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--hibiscus); color: #fff; font: 700 17px/1 var(--font-body); letter-spacing: .08em; transition: background .2s;
}
.content form input[type="submit"]:hover, .content form button[type="submit"]:hover { background: var(--hibiscus-dark); }
@media (max-width: 600px) { .content form { padding: 20px 16px; border-radius: 14px; } }
