/* ===== Global reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1f2933;
  overflow-x: hidden;
}

/* ===== Default soft background for non-home pages ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, #f4efe9 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #e0d4c7 0, transparent 55%);
  opacity: 0.9;
  z-index: -2;
}

/* ======================================================
   HOME HERO STYLE (photo + warm overlay + vignette)
   Applies ONLY when body has class="hero-home"
   ====================================================== */

.hero-home {
  color: #fdf6ec;
}

/* Background photo + warm gradient */
.hero-home::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(36, 24, 17, 0.7), rgba(95, 65, 46, 0.8)),
    url("hero-home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px);
  transform: scale(1.05); /* hide blur edges */
  z-index: -3;
}

/* Dark vignette around edges */
.hero-home::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0, transparent 55%, rgba(22, 16, 12, 0.75) 100%);
  z-index: -2;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(180, 150, 110, 0.28);
}

.hero-home header {
  background-color: rgba(24, 16, 11, 0.7);
  border-bottom-color: rgba(250, 250, 249, 0.2);
}

/* Full-width header content: name on left, nav taking the rest */
.header-inner {
  width: 100%;
  padding: 0.9rem 3rem;
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

/* Left block: name and subtitle */
.brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Script name */
.brand-name {
  font-family: "Great Vibes", cursive;
  font-size: 2.1rem;
  line-height: 1.2;
  color: #111827;
}

.hero-home .brand-name {
  color: #fdf6ec;
}

/* Serif subtitle */
.brand-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.hero-home .brand-subtitle {
  color: #e5e7eb;
}

/* Right side: navigation block */
.main-nav {
  flex: 1;              /* take the remaining space to the right of your name */
  min-width: 0;
}

/* Desktop: one line, evenly spaced, no wrapping */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;            /* keep everything on one line on larger screens */
  justify-content: space-evenly; /* evenly spaced across the full nav width */
}

/* Navigation links (NON-HOME PAGES COLOR CHANGED TO BROWN) */
.main-nav li a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #6b4a2c;  /* brown for white background pages */
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

/* Home page keeps the light/gold navigation color */
.hero-home .main-nav li a {
  color: #fef3c7;
}

.main-nav li a:hover {
  background-color: rgba(248, 250, 252, 0.12);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

/* Non-home nav hover: warm brown tint instead of white-on-white */
body:not(.hero-home) .main-nav li a:hover {
  background-color: rgba(107, 74, 44, 0.09);
  color: #5a3d24;
  box-shadow: 0 1px 4px rgba(107, 74, 44, 0.14);
}

.main-nav li a.active {
  background-color: #6b4a2c;
  color: #f9fafb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
  text-decoration: none; /* pill button look for active link */
}

/* ===== Main layout for other pages (card on soft bg) ===== */

main {
  max-width: 960px;
  margin: 3.25rem auto 4.5rem;
  padding: 2.5rem 2.25rem 3rem;
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: 1.6rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

/* ===== Main layout on HOME: float text over image ===== */

.hero-home main {
  background: transparent;
  box-shadow: none;
  max-width: 720px;
  margin-top: 5.5rem;
  margin-bottom: 4.5rem;
  padding: 0 2rem 3rem;
  color: #fdf6ec;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* ===== Page header ===== */

.page-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(180, 150, 110, 0.25);
  padding-bottom: 0.85rem;
}

.page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-home .page-header {
  border-bottom: none;
  text-align: center;
  margin-bottom: 1.25rem;
}

.hero-home .page-header h1 {
  color: #fdf6ec;
  font-size: 2.4rem;
}

/* Req 6: warm accent bar under page titles on non-home pages */
body:not(.hero-home) .page-header h1::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background-color: rgba(107, 74, 44, 0.5);
  border-radius: 999px;
  margin-top: 0.55rem;
}

/* ===== Content typography ===== */

.content {
  font-size: 0.98rem;
  color: #374151;
}

.content p {
  margin-bottom: 1rem;
}

.content ul {
  margin: 0.25rem 0 1.25rem 1.2rem;
  padding-left: 0.2rem;
}

.content li {
  margin-bottom: 0.3rem;
}

/* On home, center and lighten text like your example */
.hero-home .content {
  color: #fef9ef;
  text-align: center;
}

.hero-home .content ul {
  list-style-position: inside;
}

/* ===== About photo on home page ===== */

.hero-home .about-photo-wrapper {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.hero-home .about-photo {
  width: 210px;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid rgba(253, 246, 236, 0.92);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.72);
}

/* ===== Services, Rates, FAQ, Contact (non-home) ===== */

.service-category {
  margin-bottom: 1.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(180, 150, 110, 0.28);
}

.service-category:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.service-category h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: #1f2937;
  font-weight: 600;
}

.service-category p {
  margin-bottom: 0.6rem;
}

.subheading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.4rem 0 0.6rem;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-block {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background-color: #fdf8f3;
  border: 1px solid rgba(180, 150, 110, 0.22);
}

.step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #6b4a2c;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-label {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.15rem 0 0.25rem;
  color: #111827;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(180, 150, 110, 0.28);
}

.faq-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-item h2 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
  color: #111827;
  font-weight: 600;
}

.contact-block {
  margin-bottom: 1.4rem;
}

.contact-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #111827;
}

/* Links in content */
.content a {
  color: #6b4a2c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.content a:hover {
  color: #4e3018;
}

/* ===== Responsive layout tweaks ===== */

@media (max-width: 780px) {
  main {
    margin: 2.5rem 1.1rem 3rem;
    padding: 2rem 1.4rem 2.4rem;
    border-radius: 1.3rem;
  }

  .hero-home::before {
    background-image:
      linear-gradient(to bottom, rgba(36, 24, 17, 0.7), rgba(95, 65, 46, 0.8)),
      url("hero-home-mobile.jpg");
  }

  .hero-home main {
    margin-top: 3.8rem;
    padding: 0 1.5rem 2.5rem;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

  .hero-home .page-header h1 {
    font-size: 2rem;
  }

  /* Slightly smaller oval on small screens */
  .hero-home .about-photo {
    width: 170px;
    height: 220px;
  }

  /* Form collapses to single column on mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

/* ===== Request a Quote Form ===== */

.quote-form {
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #374151;
}

.form-group input:not([type="radio"]),
.form-group select,
.form-group textarea {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  color: #111827;
  background-color: #fdf8f3;
  border: 1px solid rgba(180, 150, 110, 0.3);
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  width: 100%;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-group input:not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6b4a2c;
  box-shadow: 0 0 0 3px rgba(107, 74, 44, 0.12);
  background-color: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

/* Radio buttons */

.radio-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 0.45rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #374151;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: #6b4a2c;
  cursor: pointer;
  flex-shrink: 0;
}

/* Required asterisk */

.required {
  color: #b45309;
}

/* Form footer: note + submit button */

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(180, 150, 110, 0.22);
}

.form-note {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 0;
}

.submit-btn {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f9fafb;
  background-color: #6b4a2c;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 2.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(107, 74, 44, 0.3);
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.submit-btn:hover {
  background-color: #5a3d24;
  box-shadow: 0 6px 16px rgba(107, 74, 44, 0.4);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(107, 74, 44, 0.25);
}

/* =======================================================
   MOBILE OPTIMIZATION
   Hamburger nav, form usability, touch targets
   ======================================================= */

/* Hamburger checkbox: unavailable on desktop */
.nav-toggle {
  display: none;
}

/* Hamburger label: hidden on desktop */
.nav-toggle-label {
  display: none;
}

@media (max-width: 900px) {

  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Header: single row — brand left, hamburger right */
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.8rem 1.1rem;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  /* Hamburger button: 44×44px minimum tap target */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.4rem;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
  }

  .nav-toggle-label:active {
    background-color: rgba(107, 74, 44, 0.09);
  }

  .hero-home .nav-toggle-label:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid #6b4a2c;
    outline-offset: 3px;
  }

  .hero-home .nav-toggle:focus-visible + .nav-toggle-label {
    outline-color: #fef3c7;
  }

  /* Three bars */
  .nav-toggle-label span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #6b4a2c;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }

  .hero-home .nav-toggle-label span {
    background-color: #fef3c7;
  }

  /* Nav: hidden by default on mobile */
  .main-nav {
    display: none;
    flex: none;
    width: 100%;
    padding: 0.5rem 0 0.35rem;
    border-top: 1px solid rgba(180, 150, 110, 0.25);
    margin-top: 0.55rem;
  }

  .hero-home .main-nav {
    border-top-color: rgba(250, 250, 249, 0.18);
  }

  /* Show nav when checkbox is checked */
  .nav-toggle:checked ~ .main-nav {
    display: block;
  }

  /* Nav links: full-width rows with generous tap targets */
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.15rem;
    justify-content: flex-start;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav li a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    font-size: 0.88rem;
    border-radius: 0.5rem;
    text-align: left;
  }

  /* Hamburger → X animation when open */
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Form: iOS zoom fix + comfortable touch targets */
  .form-group input:not([type="radio"]),
  .form-group select,
  .form-group textarea {
    font-size: 1rem;          /* must be ≥16px to prevent iOS auto-zoom on focus */
    padding: 0.75rem 0.9rem;
  }

  .radio-label {
    font-size: 1rem;
    padding: 0.3rem 0;
  }

  .radio-label input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
  }

  .form-row {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .form-group--full {
    margin-bottom: 1rem;
  }

  /* Buttons: meet 44px tap target minimum */
  .submit-btn {
    min-height: 44px;
  }

  .cta-btn {
    min-height: 44px;
    padding: 0.75rem 1.6rem;
  }

  .hero-cta-btn {
    min-height: 44px;
    padding: 0.75rem 2rem;
  }
}

/* ===== Call to Action blocks (non-home pages) ===== */

.cta-block {
  margin-top: 2rem;
  padding: 1.4rem 1.75rem;
  background-color: #fdf8f3;
  border: 1px solid rgba(180, 150, 110, 0.3);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-text {
  font-size: 0.97rem;
  color: #374151;
  line-height: 1.5;
}

.cta-text strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: #111827;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cta-btn {
  display: inline-block;
  flex-shrink: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f9fafb;
  background-color: #6b4a2c;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  box-shadow: 0 4px 10px rgba(107, 74, 44, 0.28);
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.cta-btn:hover {
  background-color: #5a3d24;
  box-shadow: 0 6px 16px rgba(107, 74, 44, 0.38);
  color: #f9fafb;
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(107, 74, 44, 0.22);
}

/* ===== Hero CTA (home page) ===== */

.hero-cta {
  margin-top: 2rem;
  text-align: center;
}

.hero-cta p {
  font-size: 1rem;
  color: #fef9ef;
  margin-bottom: 0.85rem;
}

.hero-cta-btn {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  color: #3d2510;
  background-color: #fdf6ec;
  border-radius: 999px;
  padding: 0.7rem 2rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.45);
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.hero-cta-btn:hover {
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.55);
  transform: translateY(-1px);
}

.hero-cta-btn:active {
  transform: translateY(0);
}

@media (max-width: 780px) {
  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ===== Thank-you page action ===== */

.page-action {
  margin-top: 2.5rem;
  text-align: center;
}

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

.site-footer {
  text-align: center;
  padding: 1.25rem 1rem 2.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  color: #b8a48c;
}

.hero-home .site-footer {
  color: rgba(253, 246, 236, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
