﻿/* ------------------------------------------------------------------
   All the Small Things Home Repair — Site Styles (Final Version)
   ------------------------------------------------------------------ */

/* ==================== Theme Tokens ==================== */

:root {
  /* Brand palette */
  --teal-950: #003835;
  --teal-900: #004a45;
  --teal-800: #005a54;
  --teal-700: #006d65; /* primary */
  --teal-200: #cfe8e6;
  --teal-100: #e0f0ef;

  /* Light Theme (Default) */
  --bg: #fdfdfb;
  --surface: #ffffff;
  --text: #2b2b2b;
  --text-muted: #6b6b6b;
  --border: #dcdcdc;

  /* Effects */
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-md: 0 3px 12px rgba(16,24,40,.10);
  --shadow-lg: 0 8px 28px rgba(16,24,40,.16);

  /* Layout */
  --container: 1200px;
  --gutter: 1rem;

  /* Header logo controls */
  --logo-size:128px;       /* OUTER circle/ring size */
  --logo-img-scale: 1.2;   /* Inner graphic ONLY (e.g., 0.7–1.3) */
  --header-height: 88px;
}

@media (max-width: 820px) {
  :root {
    --logo-size: 125px;    /* OUTER circle/ring size on mobile */
    --logo-img-scale: 1;   /* Inner graphic scale on mobile */
    --header-height: 68px;
  }
}

/* Smooth anchor jump */
html {
  scroll-behavior: smooth;
}

/* ==================== Reset & Base ==================== */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  /* Site-wide background gradient (applies on all pages) */
  background: linear-gradient(180deg, #f9f3e9 0%, #f2f4ec 40%, #e8f5f1 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Note: The homepage previously set the same background.
   Keeping this commented for reference. If you want a
   unique homepage background later, re-enable and change. */
/* body.home-page {
  background: linear-gradient(180deg, #f9f3e9 0%, #f2f4ec 40%, #e8f5f1 100%);
} */

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

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

h1, h2, h3 {
  color: var(--teal-700);
  line-height: 1.25;
  margin: 0 0 .5rem 0;
  letter-spacing: .2px;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

/* Accessible focus */
:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 2px;
  border-radius: 8px;
}

.dropdown-menu a:focus-visible {
  outline-offset: -1px;
}

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

/* ==================== Layout Helpers ==================== */

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

/* ==================== Header & Navigation (Mobile-First) ==================== */

.site-header {
  background: linear-gradient(180deg, var(--teal-900), var(--teal-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: max(var(--header-height), var(--logo-size));
  padding: .5rem var(--gutter);
}

/* Logo wrapper (outer ring) */
.logo {
  position: relative;
  width: var(--logo-size);
  height: var(--logo-size);
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0,0,0,.22),
    0 0 0 2px rgba(255,255,255,.95),
    inset 0 1px 2px rgba(0,0,0,.04);
}

/* Inner logo graphic (scales independently from the ring) */
.logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  padding: 0;
  display: block;
  filter: saturate(112%) contrast(105%) drop-shadow(0 .5px 0 rgba(0,0,0,.10));
  transform: translate(3.5px, .2px) scale(var(--logo-img-scale));
  transform-origin: 50% 50%;
}

/* Mobile Nav Toggle (Hamburger) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 1.75rem;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 2px auto;
}

.nav-open .nav-toggle .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Menu */
.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 56, 53, 0.95);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.nav-open .primary-nav {
  transform: translateX(0);
}

body.nav-open {
  overflow: hidden;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
}

.nav-menu li a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  font-size: 1.25rem;
}

.nav-menu li a:hover {
  background: rgba(255,255,255,.12);
}

.nav-menu li a.active,
.nav-menu li a[aria-current="page"] {
  color: var(--teal-900);
  background: #fff;
}

.dropdown-menu {
  display: none;
  text-align: center;
}

.dropdown.open > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  font-size: 1.1rem;
  padding: .5rem 1rem;
  color: #fff;
}

.dropdown-toggle svg {
  margin-left: .3rem;
  vertical-align: middle;
}

/* Desktop Navigation Styles */
@media (min-width: 821px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    height: auto;
    width: auto;
    z-index: auto;
  }

  .nav-menu {
    flex-direction: row;
    height: auto;
    gap: .25rem;
  }

  .nav-menu li a {
    font-size: 1rem;
    padding: .55rem .8rem;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    margin-top: .5rem;
    padding: .35rem;
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: left;
    z-index: 1001;
  }

  .dropdown-menu li a {
    font-size: 1rem;
    padding: .65rem .75rem;
    color: var(--text);
  }

  .dropdown-menu li a:hover {
    background: rgba(0,0,0,.05);
  }
}

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

.home-page .hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4.5rem, 15vw, 7.5rem) var(--gutter);
  background: linear-gradient(140deg, var(--teal-950) 0%, var(--teal-800) 45%, var(--teal-700) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 5vw, 3rem);
  background:
    radial-gradient(circle at center,
      rgba(255,255,255,.85) 0%,
      rgba(255,255,255,.18) 50%,
      rgba(255,255,255,0) 70%),
    url("../images/logo.png") center/ min(180px, 27.5vw) auto no-repeat;
  opacity: .28;
  filter: saturate(120%) drop-shadow(0 12px 28px rgba(0,0,0,.35));
  z-index: -2;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,56,53,.35) 0%, rgba(0,56,53,.7) 100%);
  z-index: -1;
}

.home-page .hero-image {
  display: none;
}

.home-page .hero-overlay {
  position: relative;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  padding: clamp(1.75rem, 6vw, 2.75rem);
  max-width: min(640px, 92vw);
  width: 100%;
  box-shadow: var(--shadow-lg);
  color: #fff;
  display: grid;
  gap: 1.25rem;
}

.home-page .hero-overlay .tagline {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.45rem);
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,.35);
}

/* ==================== Intro Banner (logo card) ==================== */

.home-page .intro-banner {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column; /* tagline then card */
  align-items: center;
}

/* Base tagline styling */
.home-page .tagline-highlight {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 0 1.1rem 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--teal-900);
  letter-spacing: .25px;
}

/*  Invisible spacer tagline inside the card */
.home-page .tagline-inside {
  visibility: hidden;   /* still takes up space, but not drawn */
  user-select: none;    /* can't be selected / highlighted */
}
.home-page .tagline-top {
  font-family:
    "Chalkboard",
    "Comic Sans MS",
    "Marker Felt",
    system-ui,
    sans-serif;
}
/* Main card */
.home-page .intro-content {
  position: relative;
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
  padding: clamp(1.65rem, 4.2vw, 2.46rem);
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,.12);
  border: 1px solid rgba(0,109,101,.18);
  min-height: clamp(288px, 36vw, 432px);
  width: min(1200px, 96vw);
  overflow: hidden;
}

.home-page .intro-content::before {
  content: "";
  position: absolute;
  inset: -20% -16%;
  border-radius: inherit;
  background: linear-gradient(140deg,
    rgba(255,255,255,.96) 0%,
    rgba(225,244,240,.88) 45%,
    rgba(200,232,224,.82) 100%);
  pointer-events: none;
}

.home-page .intro-content::after {
  content: "";
  position: absolute;
  inset: -10% -12%;
  background: url("../images/logo.png") center/ contain no-repeat;
  opacity: .14;
  filter: blur(1px) saturate(115%);
  background-size: 33% auto;
  pointer-events: none;
}

.home-page .cta-group .btn {
  position: relative;
  z-index: 2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem 1.1rem;
  background: var(--teal-700);
  color: #fff;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,109,101,.18);
  transition: transform .06s ease, filter .15s ease, box-shadow .2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(.97);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid color-mix(in hsl, var(--teal-700), #ffffff 20%);
  outline-offset: 2px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary,
.cta-btn {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,109,101,.18);
}

.btn--ghost {
  background: transparent;
  color: var(--teal-900);
  border: 1.5px solid currentColor;
  box-shadow: none;
}

.btn--ghost:hover {
  filter: brightness(.94);
}

/* Optional XL button style (not used by intro button) */
.btn--xl {
  padding: .45rem 1.2rem;
  min-height: 15px;
  font-size: 1.06rem;
}

.cta-group {
  display: grid;
  justify-items: center;
  gap: .5rem;
  margin-top: 2rem;
  margin-left: -10px; /* tweak this if you want the whole button group shifted */
}

.microcopy {
  font-size: .85rem;
  opacity: .75;
  margin-top: .1rem;
}

/* ==================== Sections (global) ==================== */

section {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.welcome-section {
  text-align: center;
}

.welcome-section .welcome-message {
  font-size: 1.0625rem;
  color: var(--text);
}

.home-page .welcome-section,
.home-page .services-snapshot,
.home-page .final-cta {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.home-page .welcome-section h2 {
  margin-bottom: .75rem;
}

.home-page .welcome-section .list-checked {
  margin-top: 1.5rem;
}

.home-page .services-snapshot,
.home-page .final-cta {
  text-align: center;
}

.home-page .service-card {
  background: #fff;
  border: none;
  box-shadow: 0 18px 38px rgba(0,0,0,.08);
  padding: 1.35rem 1.5rem;
}

.home-page .services-link .btn,
.home-page .final-cta .btn {
  background: var(--teal-700);
  color: #fff;
}

.home-page .final-cta {
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.sticky-cta {
  display: none;
}

@media (max-width: 640px) {
  .sticky-cta {
    position: sticky;
    bottom: .75rem;
    margin: .75rem auto 0;
    display: block;
    width: calc(100% - 1.5rem);
    text-align: center;
    padding: .9rem 1.1rem;
    background: var(--teal-700);
    color: #fff;
    border-radius: 9999px;
    box-shadow: 0 12px 28px rgba(0,109,101,.28);
    z-index: 10;
  }
}

@media (max-width: 720px) {
  .home-page .welcome-section,
  .home-page .services-snapshot,
  .home-page .final-cta {
    margin-top: 1.75rem;
    padding: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .sticky-cta {
    transition: none;
  }
}

/* Reusable Checked List Style */

.list-checked {
  list-style: none;
  text-align: left;
  padding: 1rem 0 0 0;
  max-width: 900px;
  margin-inline: auto;
}

.list-checked li {
  margin: .5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.list-checked li::before {
  content: "✔";
  color: #0a8a80;
  position: absolute;
  left: 0;
  top: 0;
}

.list-checked strong {
  color: var(--teal-700);
}

/* ==================== Services Snapshot ==================== */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

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

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

.services-link {
  margin-top: 1.5rem;
}

/* ==================== Testimonial Teaser ==================== */

.testimonial-teaser {
  text-align: center;
}

.testimonial {
  font-style: italic;
  margin: 1rem auto;
  max-width: 700px;
  color: var(--text);
}

.testimonial cite {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

/* ==================== All Other Page Specific Styles ==================== */

.final-cta p {
  margin-bottom: 1.25rem;
}

.services-list {
  margin: 1rem 0;
  padding-left: 1.1rem;
}

.services-list li {
  margin: .6rem 0;
}

.services-list strong {
  color: var(--teal-700);
}

.booking-prompt {
  margin-top: 1.25rem;
  text-align: center;
}

.our-story p,
.team-section,
.community-note {
  margin: 1.5rem 0;
}

.team-member {
  margin-bottom: 1.25rem;
}

.team-member h3 {
  margin-bottom: .3rem;
}

.why-list {
  list-style: none;
  padding-left: 1.2rem;
}

.why-list li {
  position: relative;
  margin: .5rem 0;
}

.why-list li::before {
  content: "✔";
  color: var(--teal-700);
  position: absolute;
  left: -1.2rem;
}

.why-list strong {
  color: var(--teal-700);
}

.contact-info-section p {
  margin: .3rem 0;
}

.contact-form {
  max-width: 520px;
  margin: 1rem 0;
}
/* Center the note under the contact form */
.contact-form-section .form-note {
  max-width: 800px;        /* same as your ms-form-wrapper, optional */
  margin: 0.75rem auto 0;  /* center horizontally */
  text-align: center;      /* center the text itself */
}

.contact-form label {
  font-weight: 700;
}
.ms-form-wrapper {
  max-width: 800px;
  margin: 1.5rem auto 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .6rem .75rem;
  margin: .2rem 0 1rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 4px rgba(0,109,101,.12);
  outline: none;
}

.contact-form button {
  background: var(--teal-700);
  color: #fff;
  padding: .65rem 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.contact-form button:hover {
  filter: brightness(.95);
}

.scheduler-placeholder {
  background: var(--surface);
  padding: 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.testimonial-list .testimonial {
  border-left: 4px solid var(--teal-700);
  padding-left: 1rem;
  margin: 1.25rem 0;
}

.faq-list dt {
  font-weight: 700;
  margin-top: 1rem;
}

.faq-list dd {
  margin: .6rem 0 1rem 1rem;
  color: var(--text-muted);
}

/* Gallery Page */

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: clamp(220px, 26vw, 340px);
  max-width: none;
  object-fit: contain;
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0;
}

.gallery-item figcaption {
  text-align: center;
  font-size: .92em;
  margin-top: .55rem;
}

@media (max-width: 640px) {
  .gallery-item img {
    height: clamp(200px, 48vw, 300px);
  }

  .gallery-grid {
    gap: 1rem;
  }
}

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

footer {
  background: var(--teal-100);
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .95rem;
}

.footer-container p {
  margin: .35rem 0;
}

.tagline-footer {
  font-style: italic;
  color: var(--text-muted);
}
