/* ============================================
   White Glove Nanny — Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --navy: #3a3a3a;
  --navy-dark: #2a2a2a;
  --navy-light: #4a4a4a;
  --sage: #c9d6ce;
  --sage-dark: #a8b8ae;
  --gold: #8fa095;
  --gold-light: #a8b8ae;
  --gold-pale: #dce8e4;
  --white: #ffffff;
  --off-white: #f4f1ea;
  --gray-50: #f8f7f4;
  --gray-100: #eeede8;
  --gray-200: #dddcd7;
  --gray-300: #c4c3be;
  --gray-400: #9a9994;
  --gray-500: #6b6a66;
  --gray-600: #4a4945;
  --gray-700: #333230;
  --text: #3a3a3a;
  --text-light: #7a7a7a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--sage-dark);
}

.btn-secondary:hover {
  background: var(--sage);
  color: var(--navy);
  border-color: var(--sage);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--sage);
  color: var(--navy);
  border-color: var(--sage);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.logo img {
  height: 55px;
  width: auto;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
  background: var(--gold-pale);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--off-white) 0%, var(--sage) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(201, 214, 206, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 0 60px;
}

.hero h1 {
  font-size: 2.6rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero .subline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero .btn-group {
  justify-content: center;
}

/* --- About --- */
.about {
  background: var(--off-white);
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-divider {
  max-width: 760px;
  margin: 40px auto;
  border-top: 1px solid var(--gray-200);
}

.about-approach {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-approach h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.about-approach p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Why WGN Carousel --- */
.why-section {
  background: var(--sage);
  overflow: hidden;
}

.why-carousel-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.why-carousel {
  display: flex;
  gap: 20px;
  animation: carousel-scroll 60s linear infinite;
  width: max-content;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
}

.why-item:hover {
  box-shadow: var(--shadow-sm);
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.why-item p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* --- Services Preview --- */
.services-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-preview-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.service-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-preview-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-preview-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.services-cta {
  text-align: center;
  margin-top: 36px;
}

/* --- Services Page --- */
.page-hero {
  background: linear-gradient(160deg, var(--off-white) 0%, var(--sage) 100%);
  color: var(--text);
  padding: 130px 0 60px;
  text-align: center;
}

.page-hero h1 {
  color: var(--navy);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-areas {
  background: var(--off-white);
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.area-tag {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
  transition: all var(--transition);
}

.area-tag:hover {
  background: var(--sage);
  color: var(--navy);
  border-color: var(--sage-dark);
}

/* --- FAQ --- */
.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  transition: all var(--transition);
}

.faq-item.active .faq-icon {
  background: var(--gold);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Contact --- */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--gray-100);
}

.contact-card .contact-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.contact-card p,
.contact-card a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--gold);
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-contact p,
.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Forms --- */
.form-page {
  padding-top: var(--header-height);
  min-height: 100vh;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.form-intro {
  text-align: center;
  margin-bottom: 40px;
}

.form-intro h1 {
  margin-bottom: 12px;
}

.form-intro p {
  color: var(--text-light);
  font-size: 1rem;
}

.form-section {
  margin-bottom: 36px;
}

.form-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group .helper {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(168, 184, 174, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #c0392b;
}

.form-group .error-message {
  display: none;
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 4px;
}

.form-group.error .error-message {
  display: block;
}

/* Checkbox & Radio groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* Confirmation section */
.form-confirmation {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.form-confirmation p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.form-confirmation ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.form-confirmation ul li {
  list-style: disc;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.form-submit {
  text-align: center;
}

.form-submit .btn {
  min-width: 200px;
  padding: 14px 32px;
  font-size: 1rem;
}

.form-submit .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-disclaimer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gray-400);
  font-style: italic;
}

.form-post-submit-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Thank You Page --- */
.thank-you {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: var(--off-white);
}

.thank-you-content {
  max-width: 500px;
}

.checkmark {
  width: 80px;
  height: 80px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  color: var(--white);
}

.thank-you h1 {
  margin-bottom: 16px;
}

.thank-you p {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Mobile Nav Overlay --- */
@media (max-width: 1023px) {
  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 100px 32px 40px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-wrapper.open {
    right: 0;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav a {
    font-size: 1rem;
    padding: 12px 0;
    width: 100%;
  }

  .nav-cta {
    flex-direction: column;
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* --- Responsive: Tablet --- */
@media (min-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }

  .section {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Responsive: Desktop --- */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hamburger {
    display: none;
  }

  .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 3.6rem;
  }

  .container {
    padding: 0 60px;
  }
}

/* --- Loading spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
