/*
Theme Name: The Perfect Shades
Theme URI: https://theperfectshades.com/
Author: The Perfect Shades
Description: A light, modern, responsive theme for Richmond's custom window treatment specialist.
Version: 1.3.0
Text Domain: the-perfect-shades
*/

@font-face {
  font-family: "League Spartan";
  src: url("assets/LeagueSpartan.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #3f352d;
  --ink-soft: #6f6257;
  --cream: #faf7f1;
  --sand: #e9dece;
  --sage: #eee6da;
  --green: #8a7058;
  --green-dark: #755f4d;
  --gold: #b58d63;
  --white: #fff;
  --line: rgba(63, 53, 45, .14);
  --shadow: 0 24px 70px rgba(63, 53, 45, .13);
  --radius: 28px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 18px; background: var(--ink); color: #fff; z-index: 9999; }
.skip-link:focus { top: 16px; }

h1, h2, h3, h4 { margin: 0 0 .55em; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 4.35rem); }
h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); }
p { margin: 0 0 1.15em; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lead { max-width: 760px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; font-size: .87rem; font-weight: 750; letter-spacing: .04em; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--green-dark); box-shadow: 0 12px 30px rgba(117, 95, 77, .22); }
.button-light { border-color: rgba(255,255,255,.55); background: #fff; color: var(--ink); }
.button-ghost { background: transparent; color: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-weight: 800; }
.text-link::after { content: "\2192"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

.site-header { position: sticky; top: 0; z-index: 5000; isolation: isolate; border-bottom: 1px solid transparent; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 35px rgba(63,53,45,.07); }
.notice-bar { padding: 8px 20px; background: var(--ink); color: #fff; text-align: center; font-size: .75rem; font-weight: 650; letter-spacing: .07em; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-lockup { gap: 12px; font-family: "League Spartan", Arial, Helvetica, sans-serif; line-height: 1; }
.brand-lockup .brand-icon { flex: 0 0 auto; width: 62px; height: 62px; }
.brand-words { display: grid; align-content: center; }
.brand-the { margin-bottom: 3px; color: var(--green); font-size: 8px; font-weight: 650; letter-spacing: .43em; }
.brand-perfect { color: var(--ink); font-size: 25px; font-weight: 680; letter-spacing: -.02em; }
.brand-shades { margin-top: 3px; color: var(--green); font-size: 14px; font-weight: 560; letter-spacing: .31em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 27px 13px; border: 0; background: none; color: var(--ink); font-size: .84rem; font-weight: 750; }
.nav-link:hover, .nav-link:focus-visible { color: var(--gold); }
.has-menu .nav-link::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.mega-menu { position: absolute; top: calc(100% - 5px); left: 50%; display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); width: 590px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: .18s ease; }
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-menu a { padding: 9px 12px; border-radius: 10px; color: var(--ink-soft); font-size: .86rem; font-weight: 650; }
.mega-menu a:hover { background: var(--cream); color: var(--green); }
.mega-menu .menu-all { color: var(--green); font-weight: 850; }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s; }
.mobile-nav { display: none; }

.hero { position: relative; min-height: min(830px, calc(100svh - 116px)); display: grid; align-items: end; overflow: hidden; background: var(--ink); color: #fff; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; opacity: .83; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(55,43,34,.86) 0%, rgba(55,43,34,.54) 44%, rgba(55,43,34,.07) 75%), linear-gradient(0deg, rgba(44,34,27,.52), transparent 50%); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(90px, 12vw, 155px); }
.hero h1 { max-width: 850px; }
.hero .eyebrow { color: #e8e5df; }
.hero .lead { max-width: 650px; margin-bottom: 30px; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { position: absolute; z-index: 3; right: max(20px, calc((100vw - var(--max))/2)); bottom: 38px; display: flex; gap: 11px; align-items: center; font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.hero-note::before { content: ""; width: 38px; height: 1px; background: rgba(255,255,255,.65); }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 25px 22px; border-right: 1px solid var(--line); text-align: center; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: .88rem; }
.trust-item span { color: var(--ink-soft); font-size: .75rem; }

.section { padding-block: clamp(80px, 10vw, 140px); }
.section-soft { background: var(--cream); }
.section-sage { background: var(--sage); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 48px; }
.section-head > div { max-width: 760px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { position: relative; min-height: 490px; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 15px 40px rgba(63,53,45,.09); }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(55,43,34,.89), rgba(55,43,34,.02) 68%); }
.product-card-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px; }
.product-card h3 { margin-bottom: 7px; }
.product-card p { margin: 0; color: rgba(255,255,255,.74); font-size: .9rem; }
.product-card:hover img { transform: scale(1.045); }
.product-card:hover .text-link { color: #fff; }
.product-card.wide { grid-column: span 2; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(45px, 8vw, 105px); }
.split-media { position: relative; }
.split-media img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.split-media.landscape img { aspect-ratio: 4/3; }
.split-content .lead { margin-bottom: 28px; }
.mini-points { display: grid; gap: 12px; margin: 30px 0; padding: 0; list-style: none; }
.mini-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.mini-points li::before { content: "\2713"; display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--sage); color: var(--green); font-size: .75rem; font-weight: 900; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: steps; }
.step { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; counter-increment: steps; }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 42px; color: var(--gold); font-weight: 850; letter-spacing: .08em; }
.step p { margin: 0; color: var(--ink-soft); }
.local-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.area-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.area-links a { padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; color: rgba(255,255,255,.84); font-weight: 700; }
.area-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 35px; align-items: center; padding: clamp(38px, 6vw, 75px); border-radius: 36px; background: var(--sage); }
.cta-panel::after { content: ""; position: absolute; right: -60px; bottom: -100px; width: 320px; height: 320px; border: 1px solid rgba(138,112,88,.22); border-radius: 50%; box-shadow: 0 0 0 45px rgba(138,112,88,.05), 0 0 0 90px rgba(138,112,88,.035); }
.cta-panel .button { position: relative; z-index: 2; justify-self: end; }

.page-hero { padding-block: clamp(75px, 10vw, 125px); background: var(--cream); }
.breadcrumbs { margin-bottom: 26px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.breadcrumbs a:hover { color: var(--gold); }
.page-hero h1 { max-width: 930px; font-size: clamp(3rem, 6.7vw, 6rem); }
.page-hero .lead { max-width: 780px; margin-bottom: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: transform .2s, box-shadow .2s; }
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.catalog-card img { aspect-ratio: 4/3; object-fit: cover; }
.catalog-card-copy { padding: 25px; }
.catalog-card p { color: var(--ink-soft); font-size: .9rem; }
.catalog-card h3 { font-size: 1.65rem; }

.product-hero { padding-block: clamp(40px, 6vw, 80px); background: var(--cream); }
.product-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(40px, 7vw, 85px); }
.product-hero h1 { font-size: clamp(3.1rem, 6vw, 6.2rem); }
.product-hero-media img { aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 50%; background: var(--sage); color: var(--green); font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.best-for { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.best-for span { padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.product-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.product-nav a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.product-nav a:hover { background: var(--cream); color: var(--green); }

.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 105px); align-items: start; }
.story-image { position: sticky; top: 130px; }
.story-image img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.story-copy h2 { font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { min-height: 290px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.value-card .number { display: block; margin-bottom: 45px; color: var(--gold); font-weight: 850; }

.quote-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 8vw, 95px); align-items: start; }
.quote-aside { position: sticky; top: 130px; }
.quote-aside-card { margin-top: 28px; padding: 25px; border-radius: 20px; background: var(--sage); }
.quote-aside-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 15px; border: 1px solid #cad5d1; border-radius: 12px; outline: 0; background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(138,112,88,.12); }
.form-note { color: var(--ink-soft); font-size: .78rem; }
.form-success { margin-bottom: 25px; padding: 20px; border: 1px solid #bda98f; border-radius: 14px; background: #f6f0e8; color: #5f4b39; font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px !important; }

.content-page { padding-block: clamp(70px, 9vw, 115px); }
.content-page h2 { margin-top: 1.1em; font-size: 2.2rem; }
.content-page h3 { margin-top: 1.2em; }
.content-page p, .content-page li { color: var(--ink-soft); }
.location-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; }
.location-aside { padding: 30px; border-radius: 22px; background: var(--sage); }
.location-aside h3 { font-size: 1.7rem; }
.location-aside ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }

.site-footer { padding-top: 80px; background: #806a55; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 65px; }
.footer-logo { display: inline-flex; }
.footer-logo .brand-icon { width: 70px; height: 70px; }
.footer-logo .brand-the, .footer-logo .brand-shades { color: #ded3c5; }
.footer-logo .brand-perfect { color: #fff; font-size: 28px; }
.footer-brand p { max-width: 350px; margin-top: 24px; color: rgba(255,255,255,.64); }
.footer-title { margin-bottom: 18px; color: rgba(255,255,255,.46); font-family: inherit; font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); font-size: .75rem; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
.floating-quote { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: none; }

@media (max-width: 1080px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; z-index: 5001; display: block; height: calc(100svh - 113px); padding: 22px 20px 45px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #fff; box-shadow: 0 24px 50px rgba(63,53,45,.16); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; }
  .menu-open .mobile-nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-nav details { border-bottom: 1px solid var(--line); }
  .mobile-nav summary, .mobile-nav > a { display: block; padding: 18px 3px; font-family: Georgia, serif; font-size: 1.45rem; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav .mobile-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; padding: 0 0 20px; }
  .mobile-nav .mobile-sub a { padding: 7px 3px; color: var(--ink-soft); font-size: .88rem; }
  .mobile-nav .button { margin-top: 25px; font-family: inherit; font-size: .85rem; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .notice-bar { font-size: .67rem; }
  .header-inner { min-height: 78px; }
  .brand-lockup { gap: 10px; }
  .brand-lockup .brand-icon { width: 58px; height: 58px; }
  .brand-perfect { font-size: 23px; }
  .brand-shades { font-size: 13px; letter-spacing: .29em; }
  .mobile-nav { height: calc(100svh - 109px); }
  .hero { min-height: 710px; }
  .hero::after { background: linear-gradient(0deg, rgba(55,43,34,.94) 0%, rgba(55,43,34,.48) 70%, rgba(55,43,34,.2)); }
  .hero-content { padding-block: 100px 125px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-note { left: 14px; right: auto; bottom: 26px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { display: block; }
  .section-head .text-link { margin-top: 15px; }
  .product-grid, .catalog-grid, .split, .steps, .local-band, .cta-panel, .product-hero-grid, .story-grid, .values-grid, .quote-layout, .location-intro { grid-template-columns: 1fr; }
  .product-card, .product-card.wide { grid-column: auto; min-height: 430px; }
  .split-media { order: -1; }
  .steps { gap: 12px; }
  .step::before { margin-bottom: 24px; }
  .area-links { grid-template-columns: 1fr; }
  .cta-panel .button { justify-self: start; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-hero-copy { padding-top: 15px; }
  .story-image, .quote-aside { position: static; }
  .quote-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: grid; padding-bottom: 92px; }
  .floating-quote { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
