/* ===========================================================
   Ala Wai King Apartments — Site Stylesheet
   Palette: ocean blue + palm green + sand, on a clean white base
   =========================================================== */

:root {
  /* Colors — "Sunshine Aloha": warm lagoon teal + sunshine gold + sunset orange */
  --teal-900: #0f6e63;    /* warm lagoon teal - headings, footer/header accents */
  --teal-600: #0fa89a;    /* bright turquoise - links, active nav */
  --teal-500: #14c2b0;    /* hover state */
  --sun-600: #e6a100;     /* sunshine gold - eyebrows, icons */
  --sun-700: #b98400;     /* deeper gold for hover/emphasis */
  --sunset-500: #fb8c3c;  /* sunset orange - primary CTA buttons */
  --sunset-600: #f2751b;  /* CTA hover */
  --sand-100: #fff8ec;    /* section background */
  --sand-200: #ffe9c0;    /* subtle borders/dividers on sand */
  --white: #ffffff;
  --ink: #332d24;         /* warm charcoal body text */
  --ink-soft: #6b6155;    /* warm secondary text */
  --shadow: 0 10px 30px rgba(15, 110, 99, 0.14);

  /* Type */
  --font-head: "Poppins", "Trebuchet MS", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--teal-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-500); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--sand { background: var(--sand-100); }

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-heading h2 { font-size: 2rem; }
.section-heading p { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--sun-600);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--primary {
  background: var(--sunset-500);
  color: var(--white);
}
.btn--primary:hover { background: var(--sunset-600); color: var(--white); box-shadow: var(--shadow); }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn--ocean {
  background: var(--teal-600);
  color: var(--white);
}
.btn--ocean:hover { background: var(--teal-500); color: var(--white); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(11, 61, 76, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-900);
}
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: var(--font-head); line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--teal-900); }
.brand-text span { display: block; font-size: 0.78rem; color: var(--sun-600); font-weight: 600; letter-spacing: 0.03em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.main-nav a:hover { color: var(--teal-600); text-decoration: none; }
.main-nav a.is-active { color: var(--teal-600); }

.main-nav .btn { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--teal-900);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, rgba(15,110,99,0.55), rgba(251,140,60,0.55)),
              url("../images/hero-building.jpg") center/cover no-repeat;
  padding: 110px 0 100px;
}

.hero .container { max-width: 760px; text-align: center; }
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 0.4em; }
.hero .eyebrow { color: #ffe1a8; }
.hero p.lead { font-size: 1.15rem; color: #fff6ea; max-width: 620px; margin: 0 auto 30px; }

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Highlights ---------------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.highlight-card .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--sun-600);
}
.highlight-card .icon svg { width: 26px; height: 26px; }

.highlight-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.highlight-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0; }

/* ---------------- About / split section ---------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img { border-radius: 18px; box-shadow: var(--shadow); }

.split .details {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.split .details li {
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-size: 0.97rem;
}
.split .details li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--sun-600);
}

/* ---------------- Photo teaser grid ---------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.photo-grid img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.photo-grid a:hover img { transform: scale(1.06); }
.photo-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(11,61,76,0.85));
}

.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--teal-900);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #d9f0ea; margin: 0; }
.cta-banner .info {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner .info div strong { display: block; font-family: var(--font-head); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--teal-900);
  color: #e3f2ec;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: #d3ece3; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 42px; }
.footer-brand strong { font-family: var(--font-head); color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #9bcfc0;
}

/* ---------------- Interior page hero ---------------- */
.page-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, rgba(15,110,99,0.72), rgba(251,140,60,0.72)),
              var(--page-hero-img, url("../images/hero-building.jpg")) center/cover no-repeat;
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { color: #ffe1a8; }
.page-hero h1 { color: var(--white); font-size: 2.1rem; margin-bottom: 10px; }
.page-hero p { color: #fff6ea; max-width: 640px; margin: 0 auto; }

/* ---------------- Breadcrumb-ish contact strip on every interior page ---------------- */
.contact-strip {
  background: var(--sand-100);
  border-bottom: 1px solid var(--sand-200);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.contact-strip .container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.contact-strip a { color: var(--teal-900); font-weight: 600; }

/* ---------------- Gallery ---------------- */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.gallery-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal-900);
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  padding: 8px 18px;
  border-radius: 999px;
}
.gallery-nav a:hover { background: var(--sand-200); text-decoration: none; }

.gallery-category { margin-bottom: 56px; }
.gallery-category h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid var(--sand-200);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: var(--sand-100);
}
.gallery-grid figure:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-family: var(--font-head); }
.lightbox-close {
  position: absolute;
  top: 22px; right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-content { position: relative; text-align: center; max-width: 900px; }

/* ---------------- FAQ accordion ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 4px 22px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  padding: 18px 28px 18px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  color: var(--teal-600);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* ---------------- Info / detail cards (contact, directions) ---------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.info-card .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.info-card .icon svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p, .info-card a { color: var(--ink-soft); font-size: 0.95rem; }
.info-card a { color: var(--teal-600); font-weight: 600; }

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-200);
}
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------------- Document / download cards ---------------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.doc-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.doc-card .icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sand-100);
  color: var(--sunset-500);
  display: flex; align-items: center; justify-content: center;
}
.doc-card .icon svg { width: 26px; height: 26px; }
.doc-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.doc-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }

/* ---------------- Forms ---------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--teal-900);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sand-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-600);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

/* Formspree AJAX states */
.form-banner {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-banner:empty { display: none; }
.form-banner--success { background: #e3f5ee; color: var(--teal-900); border: 1px solid #b9e6d6; }
.form-banner--error { background: #fdeee6; color: var(--sunset-600); border: 1px solid #fbd3bb; }

.form-field [data-fs-error] {
  display: block;
  color: var(--sunset-600);
  font-size: 0.82rem;
  margin-top: 6px;
}
.form-field [data-fs-error]:empty { display: none; margin: 0; }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--sunset-500);
}
.form-field button[data-fs-submit-btn][disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---------------- Simple content tables (resident info) ---------------- */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 14px; box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand-200);
  font-size: 0.92rem;
}
table.data-table th { background: var(--sand-100); font-family: var(--font-head); color: var(--teal-900); }
table.data-table td.tag-yes { color: var(--sunset-600); font-weight: 600; }
table.data-table td.tag-no { color: var(--ink-soft); }

/* ---------------- Anchor sub-nav (Resident's Info) ---------------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 44px;
}
.subnav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  color: var(--teal-900);
}
.subnav a:hover { background: var(--sand-200); text-decoration: none; }

.content-block { max-width: 820px; margin: 0 auto 56px; }
.content-block h2 {
  font-size: 1.5rem;
  margin-top: 0;
  padding-top: 8px;
}
.content-block h3 { font-size: 1.1rem; color: var(--teal-600); }
.content-block ul, .content-block ol { color: var(--ink); padding-left: 22px; }
.content-block li { margin-bottom: 8px; }
.content-block > * + h2 { margin-top: 48px; }

.callout {
  background: var(--sand-100);
  border-left: 4px solid var(--sunset-500);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.callout strong { color: var(--teal-900); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    box-shadow: 0 12px 20px rgba(11,61,76,0.1);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--sand-200); }
  .main-nav .btn { margin-top: 12px; text-align: center; }

  .hero { padding: 80px 0 70px; }
  .hero h1 { font-size: 2rem; }

  .highlights { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .highlights { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
