/* Kings Cleaning — site styles
   Brand colours from the final logo/card artwork (Nov 2026). */

@font-face {
  font-family: "Cinzel";
  src: url("../assets/fonts/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple-ink: #14061f;
  --purple-deep: #1e0a2e;
  --purple-dark: #2f1645;
  --purple-mid: #3c1868;
  --purple-rich: #4a1b78;
  --purple-soft: #5a2890;
  --purple-card: rgba(28, 10, 46, 0.55);
  --gold: #d4af37;
  --gold-light: #f4d98a;
  --gold-mid: #bb8a32;
  --gold-deep: #80521e;
  --ruby: #ad1638;
  --lavender: #d8beea;
  --ivory: #f6efe3;
  --text: #f4efe8;
  --muted: #cbb8d9;
  --line: rgba(244, 217, 138, 0.35);
  --header-h: 4.5rem;
  --content: 70rem;
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Jost", "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--purple-dark);
  line-height: 1.65;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff6d4;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--purple-ink);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Background ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90, 40, 144, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(173, 22, 56, 0.12), transparent 55%),
    radial-gradient(circle at 15% 20%, rgba(244, 217, 138, 0.06), transparent 28%),
    linear-gradient(180deg, #3a1764 0%, var(--purple-dark) 28%, var(--purple-ink) 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(244,217,138,0.7), transparent),
    radial-gradient(1.5px 1.5px at 88% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 22% 78%, rgba(244,217,138,0.45), transparent),
    radial-gradient(1px 1px at 48% 40%, rgba(255,255,255,0.28), transparent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(20, 6, 31, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--gold-light);
  min-width: 0;
}

.brand:hover {
  color: #fff6d4;
}

.brand img {
  width: 2.55rem;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.brand-sub {
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  margin-top: 0.22rem;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-light);
  border-radius: 0.4rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.6rem;
}

.nav-list a {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--gold-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-mid) 100%);
  color: var(--purple-ink);
  padding: 0.8rem 1.45rem;
  border-radius: 0.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  color: var(--purple-ink);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--purple-ink);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-mid) 100%);
  filter: none;
}

/* ---------- Layout ---------- */
main {
  overflow-x: hidden;
}

.section {
  padding: 5.5rem 0;
}

.wrap {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-light);
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: 0.04em;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.1rem 0 1.25rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.divider .ruby {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--ruby);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(173, 22, 56, 0.25), 0 0 10px rgba(173, 22, 56, 0.45);
  flex-shrink: 0;
}

.divider.start {
  justify-content: flex-start;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 3rem;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 25vh;
  min-height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-banner picture,
.hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-banner img {
  max-width: none;
  object-fit: cover;
  object-position: center 48%;
}

/* Fade the banner's lower edge into the existing page background. */
.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(58, 23, 100, 0) 0%,
    rgba(47, 22, 69, 0.18) 36%,
    rgba(47, 22, 69, 0.72) 72%,
    rgba(47, 22, 69, 1) 100%
  );
}

.hero-banner picture {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 40%,
    rgba(0, 0, 0, 0.72) 62%,
    rgba(0, 0, 0, 0.28) 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 40%,
    rgba(0, 0, 0, 0.72) 62%,
    rgba(0, 0, 0, 0.28) 82%,
    transparent 100%
  );
}

.hero-inner {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  text-align: center;
  padding-top: 0.7rem;
}

.hero-crest {
  width: min(18.5rem, 82vw);
  margin: 0 auto 1.15rem;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.hero .eyebrow {
  margin-bottom: 0.35rem;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ivory);
  text-transform: none;
}

.hero-standard {
  font-family: "Cinzel", serif;
  font-size: clamp(0.72rem, 1.6vw, 0.86rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 1.15rem 0 0;
}

.hero-pitch {
  max-width: 34rem;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-area {
  margin: 1.25rem 0 0;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- Services ---------- */
.services {
  background: linear-gradient(180deg, rgba(20, 6, 31, 0.35), rgba(47, 22, 69, 0.45));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #12051c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.service-card-media {
  position: relative;
  z-index: 0;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
}

.service-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) brightness(1.05);
  transform: scale(1);
  transition: transform 0.55s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card-media img {
    transform: scale(1.06);
  }
}

/* Soft fade from the near full-strength photo into the text panel */
.service-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(18, 5, 28, 0) 0%,
    rgba(18, 5, 28, 0.28) 55%,
    rgba(18, 5, 28, 0.96) 100%
  );
}

.service-card-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  margin-top: -1px;
  padding: 1.2rem 1.4rem 1.5rem;
  background: linear-gradient(
    180deg,
    #12051c 0%,
    #160720 100%
  );
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 18px rgba(8, 2, 14, 0.28);
}

.service-card .icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
}

.service-card .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 0.55rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-crest {
  width: min(20rem, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
}

.about-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ivory);
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, rgba(20, 6, 31, 0.2), rgba(20, 6, 31, 0.55));
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-details {
  background: var(--purple-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.contact-details h3 {
  margin-bottom: 1.1rem;
}

.detail {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.7rem 0.85rem;
  align-items: start;
  margin: 0 0 1.05rem;
  color: var(--muted);
}

.detail:last-child {
  margin-bottom: 0;
}

.detail svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail .label {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.15rem;
}

.detail a,
.detail p {
  margin: 0;
  color: var(--ivory);
  text-decoration: none;
  font-size: 1.05rem;
}

.detail a:hover {
  color: var(--gold-light);
}

.form-card {
  background: var(--purple-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.form-card h3 {
  margin-bottom: 0.35rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.field label {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ivory);
  background: rgba(20, 6, 31, 0.55);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23F4D98A' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(203, 184, 217, 0.65);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(244, 217, 138, 0.15);
}

.form-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.form-hint {
  margin: 0;
  color: var(--lavender);
  font-size: 0.85rem;
}

.form-status {
  margin: 0.4rem 0 0;
  color: var(--gold-light);
  font-size: 0.95rem;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--purple-ink);
  padding: 2.4rem 0 2rem;
  text-align: center;
}

.footer-lockup {
  width: 8.5rem;
  margin: 0 auto 1rem;
}

.footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-meta {
  margin: 0.7rem 0 0;
  color: var(--lavender);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.85rem;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--gold-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-crest {
    width: min(16rem, 70%);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 4.15rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle .icon-close {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-toggle .icon-menu {
    display: none;
  }

  body.nav-open .nav-toggle .icon-close {
    display: block;
  }

  .site-header {
    overflow: visible;
  }

  .nav-panel {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 2rem;
    background: #14061f;
    border-bottom: 1px solid var(--line);
    min-height: calc(100svh - var(--header-h));
    z-index: 99;
  }

  body.nav-open .nav-panel {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.8rem 0.4rem;
    border-bottom: 1px solid rgba(244, 217, 138, 0.12);
  }

  .nav-panel .btn {
    margin: 0.9rem 0 0.2rem;
    width: 100%;
  }

  .service-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 0 0 2.6rem;
    min-height: 0;
  }

  .hero-crest {
    width: min(15.5rem, 72vw);
    margin-bottom: 1rem;
  }

  .hero-standard {
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    padding: 0 0.4rem;
  }

  .hero-area {
    letter-spacing: 0.1em;
    font-size: 0.66rem;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy .divider,
  .divider.start {
    justify-content: center;
  }

  .section {
    padding: 3.75rem 0;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .service-card-media img {
    transition: none;
    transform: none;
  }
}
