/* ============================================================
   Ryan's Carpet Cleaning — Shared Stylesheet
   Colors: Gold #F2C12E  |  Navy #1B3A5C
   ============================================================ */

/* ----- VARIABLES ----- */
:root {
  --gold:       #F2C12E;
  --gold-dark:  #C9A015;
  --navy:       #1B3A5C;
  --navy-light: #254e7e;
  --white:      #ffffff;
  --off-white:  #f7f6f3;
  --text:       #2d2d2d;
  --text-light: #666666;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }
a     { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul    { list-style: none; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--navy); }

/* ============================================================
   HEADER & NAV
   ============================================================ */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 52px;
  width:  52px;
}

.nav-logo-text {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.nav-logo-text span {
  display: block;
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

nav ul li a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s;
  white-space: nowrap;
}

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

.btn-book {
  background: var(--gold) !important;
  color: var(--navy)  !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  transition: background 0.18s, color 0.18s !important;
}

.btn-book:hover {
  background: var(--gold-dark) !important;
  color: var(--white) !important;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: all 0.18s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-secondary:hover { background: var(--white); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); }

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 72px 1.5rem 88px;
  text-align: center;
}

.hero-logo {
  width: 165px;
  height: 165px;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.88;
}

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

.hero-phone {
  margin-top: 2.5rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.hero-phone a { color: inherit; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 52px 1.5rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.page-hero p {
  margin-top: 0.6rem;
  opacity: 0.78;
  font-size: 1.05rem;
}

.page-hero .gold-bar { margin: 0.8rem auto 0; }

/* ============================================================
   SECTION BASE
   ============================================================ */
section { padding: 64px 1.5rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header { margin-bottom: 2.5rem; }

.section-header.centered { text-align: center; }

.section-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 540px;
}

.section-header.centered .section-sub { margin: 0 auto; }

.gold-bar {
  width: 54px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.7rem 0 1rem;
}

.section-header.centered .gold-bar { margin: 0.7rem auto 1rem; }

/* Alternate backgrounds */
section.bg-off-white { background: var(--off-white); }

section.bg-navy {
  background: var(--navy);
  color: var(--white);
}

section.bg-navy .section-title { color: var(--white); }

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.85rem 1.6rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.1);
}

.card-icon  { font-size: 2.4rem; margin-bottom: 0.85rem; }
.card h3    { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--navy); }
.card p     { color: var(--text-light); font-size: 0.93rem; }

/* ============================================================
   SERVICES / PRICING PAGE
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 1.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.service-card .price {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.service-card .price-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

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

/* Included list */
.included-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.included-list li {
  color: var(--text-light);
  font-size: 0.93rem;
  padding-left: 1.4rem;
  position: relative;
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* ============================================================
   TRUST GRID
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item  { padding: 1rem; }
.trust-icon  { font-size: 2.8rem; margin-bottom: 0.7rem; }
.trust-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.3rem; }
.trust-item p  { font-size: 0.9rem; color: var(--text-light); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--gold);
  padding: 60px 1.5rem;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: var(--navy);
  opacity: 0.78;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-grid p {
  color: var(--text-light);
  font-size: 0.975rem;
  margin-bottom: 1rem;
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.about-logo-wrap img {
  width: 220px;
  height: 220px;
}

/* ============================================================
   SCHEDULING PAGE
   ============================================================ */
.scheduling-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.acuity-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

.acuity-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}

.acuity-placeholder {
  background: var(--off-white);
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-light);
}

.acuity-placeholder p { margin-bottom: 1rem; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.65rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content ul {
  color: var(--text-light);
  font-size: 0.96rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content ul li { margin-bottom: 0.35rem; }

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 52px 1.5rem 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-brand img { width: 60px; height: 60px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  transition: color 0.18s;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-contact a {
  color: var(--gold);
  transition: opacity 0.18s;
}

.footer-contact a:hover { opacity: 0.8; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.81rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.58);
  transition: color 0.18s;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  nav ul li a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.97rem;
  }

  .btn-book {
    margin-top: 0.5rem !important;
    display: inline-block !important;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-logo-wrap { padding: 1rem 0 0; }
  .about-logo-wrap img { width: 170px; height: 170px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero { padding: 52px 1.2rem 68px; }
  section { padding: 48px 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
