/* Royal Comfort Solutions — brand & layout */

:root {
  --purple-deep: #1a062e;
  --purple: #2a0a4a;
  --purple-mid: #4a1a7a;
  --purple-soft: #6b3a9a;
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --gold-dark: #b8860b;
  --cream: #f8f4ec;
  --cream-muted: #e8e0d0;
  --ink: #1a1224;
  --ink-muted: #5a4a6a;
  --white: #ffffff;
  --radius: 2px;
  --header-h: 4.5rem;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 12px 40px rgba(26, 6, 46, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

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

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  color: var(--purple-deep);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  color: var(--purple-deep);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--cream);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}

.btn-outline-dark:hover {
  background: var(--purple);
  color: var(--cream);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(26, 6, 46, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  transform: translateY(0);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

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

.brand:hover {
  color: var(--gold-light);
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-call {
  display: none;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.header-call:hover {
  color: var(--gold);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--purple-deep);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.25rem 1.25rem 1.75rem;
  z-index: 99;
}

.nav-mobile.is-open {
  display: block;
  animation: fadeDown 0.3s var(--ease);
}

.nav-mobile ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  color: var(--cream);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.nav-mobile .btn {
  width: 100%;
}

@media (max-width: 420px) {
  .header-actions .btn-gold {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-call {
    display: inline;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions .btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.8rem;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  color: var(--cream);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(106, 58, 154, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(160deg, var(--purple-deep) 0%, var(--purple) 45%, #1f0a38 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 40px,
      rgba(212, 175, 55, 0.03) 40px,
      rgba(212, 175, 55, 0.03) 41px
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -20%;
  width: min(70vw, 620px);
  height: min(70vw, 620px);
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow:
    inset 0 0 0 40px rgba(212, 175, 55, 0.03),
    inset 0 0 0 80px rgba(212, 175, 55, 0.02);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-logo {
  display: block;
  width: min(72vw, 320px);
  height: auto;
  margin: 0 0 1.25rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.15s forwards;
}

@media (min-width: 900px) {
  .hero-logo {
    width: min(38vw, 380px);
  }
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.3s forwards;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--cream-muted);
  max-width: 32rem;
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.45s forwards;
}

.hero .cta-group {
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.6s forwards;
}

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(106, 58, 154, 0.4), transparent 50%),
    linear-gradient(135deg, var(--purple-deep), var(--purple));
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 40px,
    rgba(212, 175, 55, 0.03) 40px,
    rgba(212, 175, 55, 0.03) 41px
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-brand {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.page-hero-logo {
  width: min(42vw, 180px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
}

@media (min-width: 700px) {
  .page-hero-brand {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }

  .page-hero-logo {
    width: 200px;
  }
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.4em;
}

.page-hero p {
  color: var(--cream-muted);
  max-width: 36rem;
  font-size: 1.1rem;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f0ebe0 0%, var(--cream) 100%);
}

.section-dark {
  background: var(--purple-deep);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3 {
  color: var(--cream);
}

.section-dark p {
  color: var(--cream-muted);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-dark .section-label {
  color: var(--gold);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-intro p {
  color: var(--ink-muted);
}

.section-dark .section-intro p {
  color: var(--cream-muted);
}

/* Services snapshot — not cards: linked rows */
.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(42, 10, 74, 0.15);
}

.service-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(42, 10, 74, 0.15);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s var(--ease), color 0.25s var(--ease);
}

.service-link:hover {
  padding-left: 0.75rem;
  color: var(--purple-mid);
  text-decoration: none;
}

.service-link h3 {
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
}

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

.service-link .arrow {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.service-link:hover .arrow {
  transform: translateX(6px);
}

/* Trust strip */
.trust-strip {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
}

.trust-item {
  text-align: left;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.trust-item span {
  color: var(--cream-muted);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.trust-item--vosb,
.trust-item--as {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.trust-item--vosb .vosb-seal {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.trust-item--as .as-logo {
  width: 96px;
  height: auto;
  flex-shrink: 0;
  background: #fff;
}

/* —— VOSB credential —— */
.vosb-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 28rem;
  margin: 1.5rem 0 1.25rem;
}

.vosb-mark .vosb-seal {
  width: 72px;
  height: 72px;
}

.vosb-mark strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.vosb-mark span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.footer-vosb {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
  color: var(--cream-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-vosb .vosb-seal {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer-vosb strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Why section */
.why-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 4rem;
  }
}

.why-visual {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.2), transparent 50%),
    linear-gradient(145deg, var(--purple) 0%, var(--purple-deep) 100%);
  position: relative;
  overflow: hidden;
}

.why-visual img {
  position: relative;
  z-index: 1;
  width: min(70%, 260px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.why-visual::after {
  content: "";
  position: absolute;
  inset: 18% 18%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

/* Service detail blocks */
.service-block {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(42, 10, 74, 0.12);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block .section-label {
  margin-bottom: 0.5rem;
}

.service-block p {
  max-width: 38rem;
  color: var(--ink-muted);
}

/* FAQ accordion */
.faq-list {
  max-width: 40rem;
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid rgba(42, 10, 74, 0.12);
}

.faq-item:first-child {
  border-top: 1px solid rgba(42, 10, 74, 0.12);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--purple-mid);
}

.faq-trigger .icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
}

.faq-trigger .icon::before,
.faq-trigger .icon::after {
  content: "";
  position: absolute;
  background: var(--gold-dark);
  transition: transform 0.25s var(--ease);
}

.faq-trigger .icon::before {
  top: 50%;
  left: 2px;
  right: 2px;
  height: 2px;
  transform: translateY(-50%);
}

.faq-trigger .icon::after {
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-trigger .icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--ink-muted);
}

.faq-item.is-open .faq-panel {
  display: block;
  animation: fadeDown 0.3s var(--ease);
}

/* About prose */
.prose {
  max-width: 40rem;
}

.prose p {
  color: var(--ink-muted);
}

.prose + .cta-group {
  margin-top: 2rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 850px) {
  .contact-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
}

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

.contact-detail dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
}

.contact-detail dd {
  margin: 0;
  font-size: 1.15rem;
}

.contact-detail a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.as-logo-block {
  margin: 1.5rem 0 0.25rem;
}

.as-logo-block .as-logo {
  width: min(180px, 100%);
  height: auto;
  display: block;
  background: #fff;
}

/* Form */
.lead-form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(42, 10, 74, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(74, 26, 122, 0.15);
}

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

.field .error-msg {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #9b1c3a;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #9b1c3a;
}

.field.has-error .error-msg {
  display: block;
}

.form-status {
  display: none;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  display: block;
  background: rgba(42, 10, 74, 0.08);
  border: 1px solid rgba(42, 10, 74, 0.2);
  color: var(--purple);
}

.form-status.is-error {
  display: block;
  background: rgba(155, 28, 58, 0.08);
  border: 1px solid rgba(155, 28, 58, 0.25);
  color: #9b1c3a;
}

/* Footer */
.site-footer {
  background: var(--purple-deep);
  color: var(--cream-muted);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 72px;
  height: 72px;
}

.footer-grid h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: var(--cream-muted);
  text-decoration: none;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-bottom .license-note {
  color: rgba(232, 224, 208, 0.7);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo,
  .hero h1,
  .hero-lead,
  .hero .cta-group,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
