/* =================================================================
   SUBPAGE STYLES
   Styles specific to inner pages (About, Services, etc.)
   This file should be loaded AFTER styles.css on subpages only
   ================================================================= */

/* ------------------------------------------------
   UNIFIED SUBPAGE HERO
   All subpages use .service-hero class
   Supports left/right/center text alignment on desktop
   ------------------------------------------------ */
.service-hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 20%;
  background-repeat: no-repeat;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-hero);
}

/* Hero content - left aligned on desktop by default */
.service-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: left;
}

/* Inner wrapper to constrain text width */
.hero-text-wrapper {
  max-width: 460px;
}

/* Modifier for right-aligned heroes */
.service-hero.hero-text-right .service-hero-content {
  display: flex;
  justify-content: flex-end;
}

.hero-text-right .hero-text-wrapper {
  text-align: left;
}

/* Modifier for centered heroes */
.service-hero.hero-text-center .service-hero-content {
  display: flex;
  justify-content: center;
}

.hero-text-center .hero-text-wrapper {
  text-align: center;
  max-width: 700px;
}

.service-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service-hero-subtitle {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

/* Service hero eyebrow (for service pages) */
.service-hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--secondary);
}

/* ------------------------------------------------
   ABOUT PAGE BIO SECTION
   ------------------------------------------------ */
.about-bio {
  padding: 64px 0 96px;
  background-color: var(--background-services);
}

.about-bio-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.about-bio-content {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
}

.about-bio-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
}

.about-bio-content p + p {
  margin-top: 32px;
}

/* ------------------------------------------------
   CONTACT PAGE SECTION
   ------------------------------------------------ */
.contact-section {
  padding: 80px 0 100px;
  background-color: var(--background-services);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Contact Info (Left Column) */
.contact-info {
  padding-right: 20px;
}

.contact-info-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.contact-info-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--background-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-detail-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.contact-detail-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail-value:hover {
  color: var(--primary);
}

/* Contact Form (Right Column) */
.contact-form-wrapper {
  background-color: var(--text-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-label .required {
  color: var(--primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background-color: var(--background-services);
  border: 1px solid var(--background-hero);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(158, 47, 47, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  background-color: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}


/* =========================
   SERVICE PAGE STYLES
========================= */

.service-page {
  background: #fff;
}

.service-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--secondary);
}

/* Shared sections */
.service-intro,
.service-includes,
.service-fit,
.service-addons,
.service-cta {
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.section-heading p {
  color: #555;
  line-height: 1.8;
}

/* Intro */
.service-intro {
  background: #fff;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.service-intro-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 24px;
}

.service-intro-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 22px;
}

.service-summary-card {
  background: #f8f5f1;
  border: 1px solid #e9dfd2;
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 120px;
}

.service-summary-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b6b43;
  margin-bottom: 10px;
}

.service-summary-price {
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1f1f1f;
}

.service-summary-price span {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
}

.service-summary-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 24px;
}

/* Buttons */
.service-button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.service-button:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}


/* CTA Button Override */
.service-cta .service-button {
  background: var(--secondary);
  color: var(--text-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-cta .service-button:hover {
  transform: translateY(-2px);
  background: var(--secondary-dark);
  color: var(--text-dark);
}

/* Includes */
.service-includes {
  background: #faf9f7;
}

.service-includes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-feature-card {
  background: #fff;
  border: 1px solid #ece8e1;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.service-feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.service-feature-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-feature-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.7;
  color: #444;
}

.service-feature-card li:last-child {
  margin-bottom: 0;
}

.service-feature-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  left: 0;
  top: 11px;
}

/* Fit section */
.service-fit {
  background: #fff;
}

.service-fit-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.service-fit-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 22px;
}

.service-fit-content p {
  color: #444;
  line-height: 1.85;
  margin-bottom: 20px;
}

.service-fit-list-card {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.18);
}

.service-fit-list-card h3 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.service-fit-list-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-fit-list-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.service-fit-list-card li:last-child {
  margin-bottom: 0;
}

.service-fit-list-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Add-ons */
.service-addons {
  background: #faf9f7;
}

.service-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-addon-card {
  background: #fff;
  border: 1px solid #ece8e1;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.service-addon-card h3 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.service-addon-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.service-addon-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.7;
  color: #444;
}

.service-addon-card li:last-child {
  margin-bottom: 0;
}

.service-addon-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b99a6b;
  position: absolute;
  left: 0;
  top: 11px;
}

.service-addon-card span {
  color: #666;
  font-size: 0.96rem;
}

/* CTA */
.service-cta {
  background: #fff;
}

.service-cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 60px 50px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(16, 32, 51, 0.18);
}

.service-cta-box h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.service-cta-box p {
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}


/* =================================================================
   SUBPAGE RESPONSIVE - TABLET (max-width: 1024px)
   ================================================================= */
@media (max-width: 1024px) {
  /* Unified hero */
  .service-hero {
    height: 400px;
  }
  
  .service-hero-content {
    padding: 0 24px;
  }
  
  .hero-text-wrapper {
    max-width: 480px;
  }
  
  .service-hero h1 {
    font-size: 32px;
  }
  
  .service-hero-subtitle {
    font-size: 16px;
  }
  
  /* About bio */
  .about-bio {
    padding: 48px 0 72px;
  }
  
  .about-bio-content p {
    font-size: 17px;
  }
  
  /* Contact page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-info {
    padding-right: 0;
    text-align: left;
  }
  
  .contact-info-title {
    text-align: left;
  }
  
  .contact-info-text {
    text-align: left;
  }

  /* Service grids */
  .service-intro-grid,
  .service-fit-grid,
  .service-includes-grid,
  .service-addon-grid {
    grid-template-columns: 1fr;
  }

  .service-summary-card {
    position: static;
  }

  .service-intro,
  .service-includes,
  .service-fit,
  .service-addons,
  .service-cta {
    padding: 75px 0;
  }
}


/* =================================================================
   SUBPAGE RESPONSIVE - MOBILE (max-width: 767px)
   ================================================================= */
@media (max-width: 767px) {
  .service-hero {
    height: 350px;
    justify-content: center;
  }
  
  /* Center text on mobile - face coverage is acceptable */
  .service-hero-content {
    text-align: center;
    padding: 0 20px;
  }
  
  .hero-text-wrapper {
    max-width: 100%;
  }
  
  /* Override left/right modifiers on mobile */
  .service-hero.hero-text-right .service-hero-content {
    justify-content: center;
  }
  
  .hero-text-right .hero-text-wrapper {
    text-align: center;
  }

  /* Contact page */
  .contact-section {
    padding: 60px 0 80px;
  }
  
  .contact-inner {
    padding: 0 16px;
  }
  
  .contact-form-wrapper {
    padding: 28px 20px;
  }

  .service-container {
    width: min(100%, calc(100% - 24px));
  }

  .service-summary-card,
  .service-feature-card,
  .service-addon-card,
  .service-fit-list-card,
  .service-cta-box {
    padding: 26px 22px;
  }

  .section-heading {
    margin-bottom: 38px;
  }
}


/* =================================================================
   SUBPAGE RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ================================================================= */
@media (max-width: 480px) {
  /* Unified hero */
  .service-hero {
    height: 320px;
  }
  
  .service-hero h1 {
    font-size: 26px;
  }
  
  .service-hero-subtitle {
    font-size: 15px;
  }
  
  .service-hero-eyebrow {
    font-size: 11px;
  }
  
  /* Contact page */
  .contact-info-title {
    font-size: 24px;
  }
  
  .contact-form-wrapper {
    padding: 24px 16px;
    border-radius: 12px;
  }
  
  .form-input,
  .form-textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .form-submit {
    width: 100%;
    padding: 14px 24px;
  }
  
  /* About bio */
  .about-bio {
    padding: 40px 0 60px;
  }
  
  .about-bio-content {
    padding-left: 16px;
  }
  
  .about-bio-content p {
    font-size: 16px;
  }
}
