/*
Theme Name:  Th8 Palm Maintenance
Theme URI:   https://th8palm.com
Author:      Th8 Palm Dubai
Description: Maintenance / landing page theme for Th8 Palm Beach Resort.
Version:     1.0.0
License:     Proprietary
Text Domain: th8palm
*/

/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
  --plum:      #2d253b;
  --plum-deep: #211b2c;
  --plum-soft: #393047;
  --lavender:  #a79cb6;
  --paper:     #f5f2f1;
  --white:     #fff;
  --ink:       #292532;
  --muted:     #67616d;
  --line:      rgba(255, 255, 255, 0.18);
  --accent:    #d9cbb8;
  --error:     #ffd0d0;
  --shell:     1180px;
  --page-background-image: url("images/dubai-resort-background.png");
}

/* ─── Reset / base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--plum);
  background-image:
    linear-gradient(115deg, rgba(24,18,34,.88), rgba(48,37,63,.66)),
    var(--page-background-image);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
a { color: inherit; }

/* ─── Layout helpers ────────────────────────────────────────────────── */
.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.maintenance { min-height: calc(100svh - 61px); }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  isolation: isolate;
  background-color: transparent;
  background-image:
    radial-gradient(circle at 68% 40%, rgba(105,90,125,.2), transparent 38%),
    linear-gradient(180deg, rgba(25,19,35,.22), rgba(34,26,45,.08));
}
.hero::after { content: none; }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 54px 76px;
  text-align: center;
}

.brand { display: block; width: 124px; margin-bottom: 30px; transition: opacity 180ms ease; }
.brand:hover { opacity: .76; }
.brand img { display: block; width: 100%; height: auto; max-height: 92px; object-fit: contain; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.08;
}
h1 span { display: block; white-space: nowrap; }

.hero__copy {
  max-width: 710px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9ec4a5;
  box-shadow: 0 0 0 4px rgba(158,196,165,.12);
}

/* Leaf decorations */
.hero__leaf {
  position: absolute; z-index: -1;
  width: 380px; height: 500px;
  display: none; pointer-events: none;
}
.hero__leaf::before, .hero__leaf::after { position: absolute; content: ""; }
.hero__leaf::before {
  left: 50%; width: 2px; height: 100%;
  background: var(--lavender);
  transform: rotate(22deg); transform-origin: bottom;
}
.hero__leaf::after {
  inset: 5% 0;
  background: repeating-radial-gradient(ellipse at 50% 50%, transparent 0 21px, var(--lavender) 22px 24px, transparent 25px 48px);
  clip-path: polygon(48% 100%,15% 83%,0 52%,19% 22%,50% 0,81% 22%,100% 52%,85% 83%);
  transform: rotate(22deg);
}
.hero__leaf--left  { bottom: -230px; left: -120px; }
.hero__leaf--right { top: -230px; right: -110px; transform: rotate(180deg); }

/* ─── Contact section ───────────────────────────────────────────────── */
.contact {
  position: relative;
  background: transparent;
  color: var(--white);
  padding-block: 104px;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(360px,.86fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: center;
  padding: clamp(28px,4vw,54px);
  border: 0;
  background: rgba(255,255,255,.94);
  box-shadow: 0 28px 70px rgba(13,9,19,.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact__intro { color: var(--plum); }
.contact .eyebrow { color: #6f5c7c; }

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem,4.4vw,3.8rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.contact__intro > p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(45,37,59,.72);
}

/* Contact details */
.details { display: grid; gap: 25px; margin-top: 42px; font-style: normal; }
.detail {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 17px;
  width: fit-content;
  text-decoration: none;
}
.detail svg { width: 24px; margin-top: 3px; fill: #6f5c7c; }
.detail span { color: var(--plum); }
.detail small {
  display: block;
  margin-bottom: 2px;
  color: rgba(45,37,59,.58);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.detail:hover span {
  text-decoration: underline;
  text-decoration-color: #b5a8ba;
  text-underline-offset: 4px;
}

/* ─── Form panel ────────────────────────────────────────────────────── */
.form-panel {
  position: relative;
  padding: clamp(32px,5vw,58px);
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 45px rgba(31,23,42,.16);
  color: var(--plum);
}
.form-panel::before { content: none; }
.form-panel h3 {
  position: relative;
  margin-bottom: 4px;
  font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 300;
}
.form-panel__note {
  position: relative;
  margin-bottom: 30px;
  color: rgba(45,37,59,.64);
  font-size: .78rem;
}

/* Form notice */
.form-notice {
  display: none;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 500;
}
.form-notice--success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 3px solid #4caf50;
}
.form-notice--error {
  background: #fce4e4;
  color: #8b2f43;
  border-left: 3px solid #e57373;
}

form { position: relative; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: rgba(45,37,59,.76);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field input, .field textarea {
  display: block; width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(45,37,59,.38);
  border-radius: 0; outline: none;
  background: transparent;
  color: var(--plum-deep);
  padding: 8px 0 10px;
  transition: border-color 180ms ease;
}
.field textarea { min-height: 105px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--plum); }
.field [aria-invalid="true"] { border-color: #9b354b; }
.field__error {
  display: block;
  min-height: 18px;
  padding-top: 3px;
  color: #8b2f43;
  font-size: .7rem;
}

.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--plum);
  border-radius: 0;
  background: transparent;
  color: var(--plum);
  cursor: pointer;
  padding: 15px 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}
.button span { font-size: 1.25rem; line-height: 1; }
.button:hover, .button:focus-visible { background: var(--plum); color: var(--white); }
.button:disabled { opacity: .6; cursor: not-allowed; }

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(25,19,35,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}
.footer p {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  letter-spacing: .04em;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { min-height: 570px; }
  .contact { padding-block: 76px 86px; }
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .form-panel { box-shadow: none; }
}

@media (min-width: 821px) {
  .maintenance {
    display: grid;
    grid-template-rows: minmax(275px, 43svh) minmax(380px, 1fr);
  }
  .hero { min-height: 0; }
  .hero__inner { padding-block: 22px 28px; }
  .brand { width: 118px; margin-bottom: 12px; }
  .eyebrow { margin-bottom: 8px; }
  h1 {
    margin-bottom: 12px;
    font-size: clamp(2.55rem,4.6vw,4.25rem);
    line-height: 1.02;
  }
  .hero__copy { max-width: 760px; margin-bottom: 14px; font-size: .92rem; line-height: 1.5; }
  .status { padding: 6px 12px; font-size: .65rem; }
  .contact { display: flex; align-items: center; padding-block: 25px; }
  .contact__grid {
    grid-template-columns: minmax(0,1fr) minmax(340px,.78fr);
    gap: clamp(45px,7vw,95px);
  }
  .contact .eyebrow { margin-bottom: 6px; }
  h2 { margin-bottom: 10px; font-size: clamp(1.9rem,3.2vw,3rem); }
  .contact__intro > p:not(.eyebrow) { margin-bottom: 0; font-size: .84rem; line-height: 1.5; }
  .details { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 20px; }
  .detail { grid-template-columns: 22px 1fr; gap: 10px; width: auto; font-size: .76rem; line-height: 1.45; }
  .detail svg { width: 19px; }
  .form-panel { padding: 27px 36px; box-shadow: none; }
  .form-panel h3 { margin-bottom: 0; font-size: 1.45rem; }
  .form-panel__note { margin-bottom: 13px; font-size: .68rem; }
  .field { margin-bottom: 7px; }
  .field label { margin-bottom: 1px; font-size: .62rem; }
  .field input, .field textarea { padding: 3px 0 5px; font-size: .83rem; }
  .field textarea { min-height: 52px; }
  .field__error { min-height: 14px; padding-top: 1px; font-size: .62rem; }
  .button { margin-top: 2px; padding: 9px 13px; font-size: .65rem; }
  .footer__inner { padding-block: 12px; }
}

@media (min-width: 821px) and (max-height: 760px) {
  .maintenance { grid-template-rows: minmax(270px, 40svh) minmax(350px, 1fr); }
  .hero__inner { padding-block: 10px 14px; }
  .brand { width: 108px; margin-bottom: 4px; }
  .brand img { max-height: 66px; }
  .hero .eyebrow { margin-bottom: 4px; font-size: .62rem; }
  h1 { margin-bottom: 7px; font-size: clamp(2.25rem,4.1vw,3.55rem); }
  .hero__copy { max-width: 720px; margin-bottom: 8px; font-size: .78rem; line-height: 1.42; }
  .status { padding-block: 4px; }
  .contact { padding-block: 15px; }
  .details { margin-top: 13px; }
  .form-panel { padding-block: 21px; }
  .footer__inner { padding-block: 8px; }
}

@media (max-width: 520px) {
  body { background-attachment: scroll; }
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .hero__inner { padding-block: 38px 58px; }
  .brand { width: 96px; margin-bottom: 34px; }
  h1 { font-size: clamp(2.2rem,12vw,3.6rem); }
  h1 span { white-space: normal; }
  .contact { padding-block: 62px 70px; }
  .form-panel { margin-right: 0; padding: 34px 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: reveal 700ms both; }
  .hero__inner > :nth-child(2) { animation-delay:  80ms; }
  .hero__inner > :nth-child(3) { animation-delay: 140ms; }
  .hero__inner > :nth-child(4) { animation-delay: 200ms; }
  .hero__inner > :nth-child(5) { animation-delay: 260ms; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
  }
}
