/* Diamond Line Vacation Homes Rental L.L.C. — dlvh.ae
   Graphite + brass. Restrained corporate one-pager. */

:root {
  --ink:        #0d1012;
  --ink-2:      #12161a;
  --surface:    #171c21;
  --line:       rgba(255, 255, 255, 0.10);
  --line-soft:  rgba(255, 255, 255, 0.06);
  --text:       #e6e4e0;
  --text-dim:   #9aa1a8;
  --brass:      #c6a15b;
  --brass-dim:  #8f7440;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 18, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--brass-dim);
  color: var(--brass);
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}

.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }

.wordmark-text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wordmark-text em {
  font-style: normal;
  font-size: 0.63rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.18rem;
}

.site-nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }

.site-nav a {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--brass); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(84vh, 760px);
  padding-block: clamp(5rem, 14vh, 9rem) clamp(3rem, 8vh, 5rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--ink) 2%, rgba(13, 16, 18, 0.78) 42%, rgba(13, 16, 18, 0.55) 100%),
    linear-gradient(to right, rgba(13, 16, 18, 0.8), rgba(13, 16, 18, 0.15));
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 1.3rem + 3.9vw, 4.15rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.hero-lede {
  max-width: 46ch;
  margin: 1.6rem 0 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-meta a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-meta a:hover { color: #dcbc7c; border-bottom-color: var(--brass); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 11vh, 7.5rem); }

.section-alt {
  background: var(--ink-2);
  border-block: 1px solid var(--line-soft);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 820px) {
  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.section-head { position: sticky; top: 110px; }

@media (max-width: 820px) {
  .section-head { position: static; }
}

.section-num {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--brass);
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-body > p { margin: 0 0 1.25rem; max-width: 62ch; color: var(--text-dim); }
.section-body > p:last-child { margin-bottom: 0; }

/* ---------- Services ---------- */

.services {
  list-style: none;
  counter-reset: svc;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.services li {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
}

.services li::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--brass-dim);
  padding-top: 0.35rem;
}

@media (max-width: 520px) {
  .services li { grid-template-columns: 2.2rem minmax(0, 1fr); }
}

/* ---------- Figures ---------- */

.figure-wide {
  margin: clamp(3rem, 7vh, 4.5rem) 0 0;
  border: 1px solid var(--line-soft);
}

.figure-wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

/* ---------- Contact ---------- */

.contact-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 780px) {
  .contact-body { grid-template-columns: 1fr; }
}

.contact-details { margin: 0; display: grid; gap: 1.75rem; }

.contact-details dt {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.45rem;
}

.contact-details dd { margin: 0; color: var(--text-dim); line-height: 1.6; }

.contact-details a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-details a:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- Form ---------- */

.enquiry-form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea { resize: vertical; min-height: 7rem; }

.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.2); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: #1b2127;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b4544a; }

/* honeypot */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  justify-self: start;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  border: 1px solid var(--brass);
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: transparent; color: var(--brass); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn[disabled]:hover { background: var(--brass); color: var(--ink); }

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.form-status[data-state="ok"] { color: var(--brass); }
.form-status[data-state="error"] { color: #d98079; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.5rem, 6vh, 3.5rem);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-entity {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-entity span {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--brass); }

.footer-copy {
  width: 100%;
  margin: 0.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #6f767d;
}

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(3.5rem, 9vh, 6rem); max-width: 74ch; }
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  margin: 0 0 0.6rem;
}
.legal .updated {
  margin: 0 0 2.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
}
.legal p, .legal li { color: var(--text-dim); }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--brass); }
.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.back-link:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
