/* Avani Property Ltd: site styles. Scoped, simple, mobile first. One background for the whole page. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-variable.woff2") format("woff2");
}

:root {
  --navy: #111d35;
  --navy-deep: #0a1428;
  --ink: #cfd2c7;
  --ink-bright: #f1efe8;
  --ink-soft: #aeb2a8;
  --gold: #cda25e;
  --gold-light: #fce2a5;
  --line: rgba(205, 162, 94, 0.32);
  --line-soft: rgba(205, 162, 94, 0.16);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --gutter: 1.25rem;
  --measure: 38rem;
  --wide: 74rem;
}

html { box-sizing: border-box; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy-deep) url("../texture-tile.jpg") center top / 100% auto repeat-y;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: 0.18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; color: var(--gold-light); }
h1 em, h2 em { font-style: italic; color: var(--gold-light); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; max-width: var(--measure); }
li { margin-bottom: 0.5em; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); flex: none; }
.eyebrow--centre { justify-content: center; }
.eyebrow--centre::after { content: ""; width: 2.2rem; height: 1px; background: var(--gold); flex: none; }

.lead { font-size: 1.15rem; line-height: 1.6; }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.centre { text-align: center; }
.centre p, .centre .eyebrow { margin-left: auto; margin-right: auto; }

/* Layout */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band { padding: 4.5rem 0; position: relative; }
@media (min-width: 60rem) { .band { padding: 6rem 0; } }
.band--dark { background: rgba(6, 12, 26, 0.55); }
.band--dark p, .band--dark li { color: var(--ink-bright); }
.band--photo { background-size: cover; background-position: center; }
.band--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 40, 0.9), rgba(10, 20, 40, 0.84)); }
.band--photo > .wrap { position: relative; }
.band--photo p, .band--photo li { color: var(--ink-bright); }
.band--mark { overflow: hidden; }
.band--mark::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -3rem;
  width: 26rem;
  height: 26rem;
  background: url("../symbol.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.rule { display: block; width: 100%; height: 1px; margin: 0; }

.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--navy);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--gold); }
.brand img { width: 2.7rem; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.24em; line-height: 1; color: var(--gold); }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.32em; color: var(--gold-light); margin-top: 0.3rem; }
.nav-toggle {
  background: none; border: 1px solid var(--line); color: var(--gold-light); font: inherit;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.55rem 0.9rem; cursor: pointer;
}
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-deep); border-bottom: 1px solid var(--line-soft);
  padding: 0.5rem var(--gutter) 1.25rem; max-height: calc(100vh - 4.75rem); overflow-y: auto;
}
.site-nav[data-open="true"] { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 0.8rem 0.25rem; color: var(--ink); text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.04em; border-bottom: 1px solid rgba(207, 210, 199, 0.08);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > .sub-row { display: flex; align-items: center; }
.site-nav .has-sub > .sub-row > a { flex: 1; }
.sub-toggle {
  background: none; border: 0; color: var(--gold-light); cursor: pointer; padding: 0.6rem 0.6rem;
  font-size: 0.7rem; line-height: 1;
}
.sub-toggle::before { content: "\25BE"; }
.sub-toggle { padding: 0.6rem 0.9rem; font-size: 0.8rem; }
.sub { display: none; padding-left: 1rem; }
.has-sub[data-open="true"] > .sub { display: block; }
.sub a { font-size: 0.86rem; color: var(--ink-soft); }
.sub-toggle[aria-expanded="true"]::before { content: "\25B4"; }
.site-nav .nav-cta { margin-top: 1rem; }
.site-nav .nav-cta a { display: inline-block; border: 1px solid var(--gold); color: var(--navy); background: var(--gold); padding: 0.75rem 1.3rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.site-nav .nav-cta a:hover { background: var(--gold-light); color: var(--navy); }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: 1.5rem; }
  .site-nav a { padding: 0.5rem 0; border: 0; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .sub-toggle { display: inline-block; padding: 0.4rem 0.3rem; font-size: 0.7rem; }
  .sub {
    display: none; position: absolute; left: -1.75rem; top: calc(100% + 0.75rem); min-width: 17.5rem; padding: 0.9rem 0 1rem;
    background: linear-gradient(180deg, #0f1b33, var(--navy-deep)); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
  .sub::after {
    content: ""; position: absolute; left: 2.6rem; top: -0.5rem; width: 0.8rem; height: 0.8rem;
    background: var(--gold); transform: rotate(45deg);
  }
  .sub li { padding: 0; }
  .sub a {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    padding: 15px;
    color: var(--ink);
  }
  .sub a:hover, .sub a:focus-visible, .sub a[aria-current="page"] { background: rgba(205, 162, 94, 0.09); color: var(--gold-light); outline: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub[data-open="true"] > .sub { display: block; }
  .site-nav .nav-cta { margin: 0 0 0 0.5rem; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 1.7rem; border: 1px solid var(--gold); border-radius: var(--radius);
  text-align: center; line-height: 1.3; transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }
.btn-secondary { background: transparent; color: var(--gold-light); }
.btn-secondary:hover { background: rgba(205, 162, 94, 0.14); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn-row .btn { flex: 1 1 14rem; }
@media (min-width: 40rem) { .btn-row .btn { flex: 0 0 auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5rem 0 5.5rem; min-height: 70vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0.86) 0%, rgba(10, 20, 40, 0.78) 60%, rgba(10, 20, 40, 0.95) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 44rem; }
.hero-inner::before { content: ""; display: block; width: 3.5rem; height: 1px; background: var(--gold); margin-bottom: 1.8rem; }
.hero-inner h1 { margin-bottom: 0.5em; }
.hero-inner p { color: var(--ink-bright); max-width: 34rem; }
@media (min-width: 60rem) {
  .hero { min-height: calc(100vh - 4.75rem); padding: 6rem 0; }
  .hero::before { background: linear-gradient(90deg, rgba(10, 20, 40, 0.95) 0%, rgba(10, 20, 40, 0.86) 45%, rgba(10, 20, 40, 0.45) 100%); }
}

/* Page intro (inner pages) */
.page-intro { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.page-intro .hero-bg { object-position: center; }
.page-intro::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 20, 40, 0.9), rgba(10, 20, 40, 0.86)); }
.page-intro .wrap { position: relative; z-index: 2; }
.page-intro .hero-inner p { color: var(--ink-bright); }
@media (min-width: 60rem) {
  .page-intro { padding: 6.5rem 0 6rem; }
  .page-intro::before { background: linear-gradient(90deg, rgba(10, 20, 40, 0.95) 0%, rgba(10, 20, 40, 0.88) 50%, rgba(10, 20, 40, 0.55) 100%); }
}

/* Cards and grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 45rem) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.22));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
}
.card h3 { margin-top: 0; }
.card p { max-width: none; }
.card--link { display: block; text-decoration: none; color: var(--ink); transition: border-color 0.2s ease, transform 0.2s ease; }
.card--link:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }
.card--link .more { color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; display: inline-block; margin-top: 0.8rem; }
.card--crown { border-color: var(--gold); }
.card--crown::before { content: ""; position: absolute; left: 1.8rem; right: 1.8rem; top: 0; height: 2px; background: var(--gold); }

.route { padding: 0; overflow: hidden; }
.route figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.route img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.route:hover img { transform: scale(1.04); }
.route-body { padding: 1.6rem 1.8rem 1.9rem; }

.num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 0.6rem; }
.steps { list-style: none; padding: 0; max-width: none; }
.steps li { margin: 0; }
.steps h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 50rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.two-col ul { padding-left: 1.1em; }
.with-figure { display: grid; gap: 2.5rem; align-items: center; }
.with-figure figure { margin: 0; }
.with-figure img { border: 1px solid var(--line-soft); }
@media (min-width: 60rem) { .with-figure { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } .with-figure--flip figure { order: -1; } }

.fee { border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.8rem; max-width: 30rem; background: rgba(6, 12, 26, 0.45); }
.fee .amount { font-family: var(--serif); font-size: 2.8rem; color: var(--gold-light); line-height: 1; display: block; margin-bottom: 0.5rem; }
.fee p { max-width: none; }

.note { border: 1px solid var(--line-soft); border-left: 2px solid var(--gold); padding: 0.9rem 1.2rem; background: rgba(6, 12, 26, 0.4); max-width: var(--measure); }
.note p { margin: 0; }

.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: var(--gold-light); max-width: 46rem; margin: 0 auto; font-style: italic; }

.faq details { border-bottom: 1px solid var(--line-soft); padding: 1rem 0; max-width: 46rem; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.4rem; color: var(--gold-light); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.8rem; }

.contact-list { list-style: none; padding: 0; max-width: none; }
.contact-list li { margin-bottom: 1.1rem; }
.contact-list strong { display: block; color: var(--gold-light); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.2rem; }
.contact-list a { font-size: 1.1rem; }
.wa { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.wa svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Carousel */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; max-width: none; transition: transform 0.6s ease; will-change: transform; }
.carousel-slide { flex: 0 0 100%; min-width: 0; margin: 0; }
@media (min-width: 50rem) { .carousel-slide { flex-basis: calc(50% - 0.625rem); } }
.carousel-slide .card { height: 100%; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.carousel-dots { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; max-width: none; }
.carousel-dots button { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1px solid var(--gold); background: transparent; padding: 0; cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--gold); }
.carousel-arrows { display: flex; gap: 0.6rem; }
.carousel-arrows button {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--gold); background: transparent;
  color: var(--gold-light); cursor: pointer; font-size: 1rem; line-height: 1;
}
.carousel-arrows button:hover { background: rgba(205, 162, 94, 0.14); }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

/* Closing call to action with the form */
.cta-band { padding: 5rem 0; }
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .cta-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; } }
.cta-band .small { margin-top: 1.4rem; }
.form-shell { background: rgba(6, 12, 26, 0.6); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold); padding: 1.2rem; min-height: 24rem; }
.form-shell iframe { width: 100%; border: 0; display: block; }

/* Footer */
.site-footer { background: rgba(4, 9, 20, 0.7); border-top: 1px solid var(--line-soft); padding: 3.5rem 0 2rem; font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.74rem; font-family: var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-mark { width: 3rem; margin-bottom: 1rem; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(207, 210, 199, 0.1); padding-top: 1.4rem; font-size: 0.82rem; }
.footer-legal p { max-width: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.error-page { min-height: 60vh; display: flex; align-items: center; }
