/* BrightNest Home Solutions — playful-polished, rounded everything */

:root {
  --teal: #0D9488;
  --teal-dark: #0B7A70;
  --teal-tint: #E3F4F2;
  --coral: #F97316;
  --coral-dark: #DD5F07;
  --coral-tint: #FEEEDF;
  --cream: #FFFDF9;
  --ink: #26332F;
  --ink-soft: #51605B;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-head: 'Zilla Slab', serif;
  --font-body: 'Raleway', arial, sans-serif;
  --radius-photo: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

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

a { color: var(--teal); }

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

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.narrow { max-width: 720px; }

.section { padding: 4.5rem 0; }

.section-intro {
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.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;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
}
.btn-coral:hover { background: var(--coral-dark); }

.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-ghost:hover { background: var(--teal-tint); }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal-dark);
  text-decoration: none;
}

.logo-dot { color: var(--coral); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-menu a {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav-menu a:hover { color: var(--teal); }

.btn-nav { padding: 0.55rem 1.4rem; color: #fff; }
.nav-menu a.btn-nav:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle .bar {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 76vh;
  padding: 6.5rem 0 7rem;
  background:
    linear-gradient(165deg, rgba(8, 61, 56, 0.82) 0%, rgba(13, 148, 136, 0.55) 55%, rgba(23, 33, 30, 0.85) 100%),
    url("https://images.unsplash.com/photo-1545259741-2ea3ebf61fa3?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  max-width: 820px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.5vw, 3.7rem);
  text-shadow: 0 2px 18px rgba(8, 30, 27, 0.45);
}

.nest-mark {
  width: 84px;
  height: 84px;
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 4px 14px rgba(8, 30, 27, 0.4));
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 253, 249, 0.94);
  max-width: 40rem;
  margin: 1.2rem auto 2.2rem;
  text-shadow: 0 1px 10px rgba(8, 30, 27, 0.4);
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 253, 249, 0.85);
}

.hero .btn-ghost:hover { background: rgba(255, 253, 249, 0.16); }

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- About ---------- */

.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
  box-shadow: 0 18px 40px rgba(38, 51, 47, 0.18);
}

/* ---------- Photo bands ---------- */

.photo-band {
  background: var(--teal-tint);
}

.photo-band img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.photo-band-thin {
  background: var(--coral-tint);
}

.photo-band-thin img { aspect-ratio: 21 / 6; }

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

.services { background: var(--teal-tint); border-radius: 48px 48px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-card);
  padding: 1.9rem 1.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(38, 51, 47, 0.1);
}

.card-teal { background: #FFFFFF; color: var(--ink); }
.card-teal .card-icon { color: var(--teal); }
.card-coral { background: var(--coral-tint); color: var(--ink); }
.card-coral .card-icon { color: var(--coral); }

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
}

.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- FAQ ---------- */

.faq { background: var(--cream); }

.faq-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: start;
}

.faq-photo {
  margin: 0;
  position: sticky;
  top: 6rem;
}

.faq-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-photo);
  box-shadow: 0 18px 40px rgba(38, 51, 47, 0.16);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 14px rgba(38, 51, 47, 0.06);
  overflow: hidden;
}

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

.faq-question:hover { color: var(--teal-dark); }

.faq-chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--coral);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer { padding: 0 1.4rem 1.2rem; }
.faq-answer p { color: var(--ink-soft); }

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

.contact { background: var(--coral-tint); border-radius: 48px 48px 0 0; }

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

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 28px rgba(38, 51, 47, 0.08);
}

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.label-hint { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--teal-tint);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.field input[type="file"] { font-size: 0.95rem; }

.field textarea { resize: vertical; }

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.field-checkbox input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.field-checkbox label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.field-error {
  color: #C2410C;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

input.invalid, textarea.invalid { border-color: #C2410C !important; }

.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 600;
}

.contact-info {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 28px rgba(38, 51, 47, 0.08);
}

.contact-photo {
  margin: -2rem -1.8rem 1.5rem;
}

.contact-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.contact-info h3 { color: var(--teal-dark); margin-top: 1.4rem; }
.contact-info h3:first-child { margin-top: 0; }

address { font-style: normal; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(13, 148, 136, 0.25);
}

.hours-table th { font-weight: 600; font-family: var(--font-head); }
.hours-table td { text-align: right; color: var(--ink-soft); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- Newsletter ---------- */

.newsletter {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 3.5rem 0;
}

.newsletter-inner {
  text-align: center;
  max-width: 620px;
}

.newsletter h2, .newsletter p { color: #fff; }
.newsletter p { opacity: 0.92; }

.newsletter-form {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 260px;
  max-width: 340px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--ink);
}

.newsletter .form-status {
  background: rgba(255, 253, 249, 0.18);
  color: #fff;
  display: inline-block;
}

.microcopy {
  font-size: 0.88rem;
  margin-top: 0.9rem;
  opacity: 0.8;
}

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

.site-footer {
  background: var(--ink);
  color: #E8EFEC;
  padding: 2.6rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.footer-brand p { margin-bottom: 0; }

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

.footer-nav a {
  color: #E8EFEC;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover { color: var(--coral); }

.footer-copy { font-size: 0.88rem; opacity: 0.75; margin-bottom: 0; }

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

.legal-page {
  padding: 3.5rem 0 4.5rem;
}

.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.4rem; }

.legal-updated { color: var(--ink-soft); margin-bottom: 2rem; }

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-page ul { margin: 0 0 1rem 1.3rem; }
.legal-page li { margin-bottom: 0.4rem; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: var(--cream);
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
    padding: 1rem 4%;
    box-shadow: 0 14px 24px rgba(38, 51, 47, 0.1);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a { padding: 0.5rem 0; }

  .hero { min-height: 62vh; padding: 4.5rem 0 5rem; }

  .section { padding: 3.2rem 0; }

  .about-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .about-grid { gap: 2rem; }

  .about-photo img { aspect-ratio: 4 / 3; }

  .faq-photo { position: static; }

  .faq-photo img { aspect-ratio: 16 / 10; }

  .photo-band img { aspect-ratio: 16 / 9; }

  .photo-band-thin img { aspect-ratio: 16 / 8; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
