/* New Living Solutions LLC — landing page */

:root {
  --gold: #b89a68;
  --gold-dark: #8f7548;
  --gold-soft: #c9b085;
  --ink: #161616;
  --charcoal: #1c1c1c;
  --hero-mid: #3f3f3f;
  --hero-end: #8a8a8a;
  --muted: #5c5c5c;
  --text: #2c2c2c;
  --line: #ddd6c8;
  --line-strong: #cfc6b4;
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --white: #ffffff;
  --header-h: 4.5rem;
  --max: 72rem;
  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --ease: 200ms ease;
  --focus: 0 0 0 3px rgba(184, 154, 104, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* Header
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand:focus-visible {
  border-radius: 2px;
}

.brand-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gold-dark);
}

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

.site-nav {
  display: none;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.35rem 0.15rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-dark);
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease);
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.35rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(184, 154, 104, 0.12);
  color: #f3ead8;
}

.btn-block {
  width: 100%;
}

.btn.header-cta {
  display: none;
  white-space: nowrap;
}

.nav-cta {
  display: none;
}

/* Hero
   ======================================== */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: linear-gradient(180deg, #161616 0%, #2c2c2c 52%, #6b6b6b 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, transparent 46%, rgba(184, 154, 104, 0.06) 46%, rgba(184, 154, 104, 0.06) 47%, transparent 47%),
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.04) calc(100% - 1px));
  background-size: 100% 100%, 8.33% 100%;
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.15rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 8.4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  color: var(--white);
}

.hero-lead {
  margin: 0 0 2.1rem;
  max-width: 34rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: #e8e4dc;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 22rem;
}

/* Sections
   ======================================== */

.section {
  padding: 4.25rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1.15rem;
  letter-spacing: 0.01em;
}

.section-intro {
  margin: 0 0 2.4rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.services {
  background: var(--white);
  border-top: 1px solid var(--line);
}

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

.service-card {
  border: 1px solid var(--line-strong);
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.05);
}

.service-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}

.service-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.3;
}

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

/* About
   ======================================== */

.about {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.about-layout {
  display: grid;
  gap: 1.75rem;
}

.about-rule {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.25rem;
}

.about p {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--text);
}

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

/* Contact
   ======================================== */

.contact {
  background: var(--charcoal);
  color: var(--white);
  border-top: 1px solid #2a2a2a;
}

.contact .section-kicker {
  color: var(--gold);
}

.contact h2 {
  color: var(--white);
}

.contact .section-intro {
  color: #d8d4cc;
}

.contact-panel {
  border: 1px solid rgba(184, 154, 104, 0.35);
  padding: 1.75rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  max-width: 32rem;
}

.contact-panel p {
  margin: 0 0 1.25rem;
  color: #d8d4cc;
  font-size: 0.98rem;
}

.contact-email {
  display: block;
  margin-top: 1rem;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contact-email:hover,
.contact-email:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer
   ======================================== */

.site-footer {
  background: #111;
  color: #cfc9be;
  padding: 1.6rem 1.25rem;
  border-top: 1px solid #2a2a2a;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-nav a {
  text-decoration: none;
  color: #cfc9be;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold-soft);
}

/* Desktop / tablet
   ======================================== */

@media (min-width: 640px) {
  .header-inner,
  .hero-inner,
  .section,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-inner {
    padding-top: 6.5rem;
    padding-bottom: 7rem;
  }

  .hero-actions {
    flex-direction: row;
    max-width: none;
    align-items: center;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .section {
    padding-top: 5.25rem;
    padding-bottom: 5.25rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .brand-name {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
  }

  .brand-tag {
    font-size: 0.62rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .header-actions {
    gap: 1.5rem;
  }

  .btn.header-cta {
    display: inline-flex;
    padding: 0.75rem 1.05rem;
  }

  .service-card {
    padding: 1.85rem 1.7rem 1.9rem;
  }
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 22, 22, 0.08);
    flex-direction: column;
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-of-type {
    border-bottom: 0;
  }

  .site-header.is-open .nav-cta {
    display: inline-flex;
    margin-top: 0.85rem;
    align-self: stretch;
    width: 100%;
  }

  .brand-name {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
}
