/* =========================================================
   ANGELUS CENTRE — TEAL BRAND THEME
   Primary logo colours:
   Deep Teal   #013B3A
   Mid Teal    #01665E
   Bright Teal #068B7C
   ========================================================= */

:root {
  --brand-deep: #013B3A;
  --brand-mid: #01665E;
  --brand-bright: #068B7C;
  --brand-pale: #E7F3F1;
  --brand-mist: #F3F8F7;
  --ink: #183231;
  --text: #36514F;
  --muted: #6A7F7D;
  --cream: #FBFAF6;
  --white: #FFFFFF;
  --border: #D8E5E2;
  --shadow: 0 18px 50px rgba(1, 59, 58, 0.10);
  --shadow-soft: 0 10px 30px rgba(1, 59, 58, 0.07);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-mid); text-decoration: none; }
a:hover { color: var(--brand-bright); }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(1, 59, 58, 0.08);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: clamp(170px, 19vw, 245px);
  max-height: 105px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--brand-pale);
  color: var(--brand-deep);
}

.nav-links .nav-cta {
  background: var(--brand-deep);
  color: var(--white);
  padding-inline: 20px;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  background: var(--brand-mid);
  color: var(--white);
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--brand-pale);
  color: var(--brand-deep);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.35rem;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0 0 16px;
  color: var(--brand-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(3.6rem, 8vw, 7rem); }
h2 { font-size: clamp(2.35rem, 4.7vw, 4.1rem); }
h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); }

p { margin: 0 0 18px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--brand-mid);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brand-deep);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(1, 59, 58, 0.17);
}

.btn-primary:hover {
  background: var(--brand-mid);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--brand-mid);
  color: var(--brand-deep);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--brand-pale);
  border-color: var(--brand-bright);
  color: var(--brand-deep);
}

/* ---------- Homepage ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at 85% 25%, rgba(6, 139, 124, .13), transparent 27%),
    linear-gradient(135deg, #F7FBFA 0%, #EDF6F4 55%, #FBFAF6 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(1, 102, 94, .12);
  border-radius: 50%;
  right: -210px;
  top: -190px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.hero h1 {
  color: var(--brand-deep);
  margin-bottom: 12px;
}

.hero-slogan {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: var(--brand-mid);
  line-height: 1.35;
  margin-bottom: 18px;
}

.hero-intro,
.hero > .container p:not(.hero-slogan) {
  font-size: 1.08rem;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid rgba(6, 139, 124, .20);
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- General sections ---------- */
.section { padding: clamp(70px, 9vw, 112px) 0; }
.section.alt { background: var(--brand-mist); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-bottom: 42px;
}

.section-head > p {
  max-width: 500px;
  color: var(--muted);
}

.page-hero {
  padding: clamp(72px, 9vw, 118px) 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(6, 139, 124, .12), transparent 29%),
    linear-gradient(145deg, var(--brand-pale), #F8FBFA 65%, var(--cream));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 760px;
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.info-panel,
.form-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card { padding: 30px; }
.feature-card:hover { border-color: rgba(6, 139, 124, .35); }

.icon-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--brand-pale);
  color: var(--brand-mid);
  font-size: 1.2rem;
  font-weight: 900;
}

/* ---------- Hall ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(35px, 6vw, 75px);
  align-items: center;
}

.info-panel { padding: clamp(28px, 4vw, 46px); }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.spec {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-mist);
  border: 1px solid var(--border);
}

.spec strong,
.spec span { display: block; }
.spec strong { color: var(--brand-deep); margin-bottom: 3px; }

.notice {
  color: var(--muted);
  font-size: .92rem;
}

.tour-wrap {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(35px, 6vw, 70px);
  align-items: center;
}

.tour-preview,
.tour-viewport {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  box-shadow: var(--shadow);
}

.tour-preview iframe,
.embed-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Clickable Matterport embed preview ---------- */
.embed-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
}

.embed-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
  pointer-events: none;
}

.embed-preview::after {
  content: "Open 3D Tour ↗";
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(1, 59, 58, .22);
  transition: background .2s ease, transform .2s ease;
}

.embed-preview:hover::after,
.embed-preview:focus-visible::after {
  background: var(--brand-bright);
  transform: translateX(-50%) translateY(-2px);
}

.embed-preview:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 4px;
}

.tour-preview button,
.map-preview button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--brand-pale);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-item:hover img { transform: scale(1.035); }

/* ---------- Suites ---------- */
.suite {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.suite:last-child { border-bottom: 0; }
.suite:nth-child(even) .suite-copy { order: 2; }
.suite:nth-child(even) .suite-gallery { order: 1; }

.suite-gallery {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 12px;
}

.suite-gallery > img,
.suite-gallery button > img,
.suite-gallery .stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
}

.suite-gallery .stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.suite-gallery button {
  border: 0;
  padding: 0;
  border-radius: 17px;
  overflow: hidden;
  background: transparent;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  text-align: left;
  font-weight: 800;
  font-size: 1.06rem;
}

.faq-question span:last-child {
  color: var(--brand-bright);
  font-size: 1.45rem;
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--text);
}

.faq-item.open {
  border-color: rgba(6, 139, 124, .42);
  box-shadow: var(--shadow-soft);
}

.faq-item.open .faq-answer { display: block; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

.form-card,
.contact-card { padding: clamp(28px, 4vw, 42px); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-deep);
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #BFD4D0;
  border-radius: 12px;
  background: #FCFEFD;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(6, 139, 124, .12);
}

.field textarea { min-height: 145px; resize: vertical; }

#form-status {
  margin-top: 14px;
  color: var(--brand-mid);
  font-weight: 700;
}

.map-placeholder,
.map-preview {
  position: relative;
  min-height: 260px;
  margin: 24px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(rgba(1,59,58,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,59,58,.04) 1px, transparent 1px),
    var(--brand-pale);
  background-size: 28px 28px;
  border: 1px solid var(--border);
}

.pin {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 50% 50% 50% 0;
  background: var(--brand-bright);
  box-shadow: 0 6px 18px rgba(1, 59, 58, .25);
}

.map-label {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--brand-deep);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

/* ---------- Lightbox + embed modals ---------- */
.modal-open { overflow: hidden; }

.lightbox,
.embed-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 30, 29, .88);
}

.lightbox.open,
.embed-modal.open { display: flex; }

.lightbox-inner,
.embed-modal-inner {
  width: min(1180px, 96vw);
  max-height: 92vh;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.lightbox-inner img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #071C1B;
}

.lightbox-close,
.embed-modal-close,
[data-modal-close] {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background: var(--brand-deep);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 800;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
}

.lightbox-controls button {
  border: 1px solid var(--border);
  background: var(--brand-pale);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

[data-caption] {
  color: var(--text);
  text-align: center;
  flex: 1;
}

.embed-modal-inner { height: min(82vh, 780px); }
.embed-modal iframe { min-height: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 24px;
  background: var(--brand-deep);
  color: rgba(255,255,255,.78);
}

.site-footer h3 { color: var(--white); font-size: 1.35rem; }
.site-footer a { color: #B7E0D9; }
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 34px;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.58);
  font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }

  .hero-grid,
  .two-col,
  .tour-wrap,
  .suite,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .suite:nth-child(even) .suite-copy,
  .suite:nth-child(even) .suite-gallery { order: initial; }

  .feature-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav { min-height: 74px; }
  .brand img { width: 165px; max-height: 52px; }

  h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .suite-gallery { grid-template-columns: 1fr; }
  .suite-gallery .stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .specs, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox, .embed-modal { padding: 10px; }
  @media (max-width: 640px) {
  .embed-preview,
  .embed-preview iframe {
    min-height: 250px;
  }
}
}
