/* ================================================================
   WD Store — Location Page Styles (v2 — brand-matched)

   Brand colors pulled from /window-replacement/:
   - Primary accent (button bg):   #c8b84a  (warm gold/olive)
   - Accent text on gold:          #3a3b1c  (deep olive)
   - Body text:                    #666666  (medium gray)
   - Heading/dark:                 #1a1a1a  (near black)
   - Section bg dark:              #1a1a1a  (near black)
   - Section bg cream:             #f5f1e8  (warm off-white)
   - Font family:                  Raleway (inherits from parent)

   Approach: scoped to .wdstore-location-page, inherits theme font,
   matches the visual density of the live /window-replacement/ page.
   ================================================================ */

.wdstore-location-page {
    --wd-accent:         #c8b84a;
    --wd-accent-hover:   #b3a43e;
    --wd-accent-text:    #3a3b1c;
    --wd-text:           #1a1a1a;
    --wd-text-body:      #666666;
    --wd-text-muted:     #888888;
    --wd-bg:             #ffffff;
    --wd-bg-cream:       #f5f1e8;
    --wd-bg-card:        #ffffff;
    --wd-bg-dark:        #1a1a1a;
    --wd-border:         #e5e2d8;
    --wd-border-strong:  #c8c4b8;
    --wd-gold:           #c8b84a;

    --wd-radius-sm:      4px;
    --wd-radius-md:      6px;
    --wd-radius-lg:      8px;

    color: var(--wd-text-body);
    line-height: 1.7;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wdstore-location-page .container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Tighter section spacing — matches live page density */
.wdstore-location-page section {
    padding: 40px 0;
}
.wdstore-location-page section + section {
    border-top: 1px solid var(--wd-border);
}
@media (max-width: 768px) {
    .wdstore-location-page section { padding: 28px 0; }
}

/* Headings — smaller, matching live page scale */
.wdstore-location-page h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--wd-text);
    letter-spacing: -0.01em;
}
.wdstore-location-page h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 18px;
    color: var(--wd-text);
}
.wdstore-location-page h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--wd-text);
}
@media (max-width: 768px) {
    .wdstore-location-page h1 { font-size: 26px; }
    .wdstore-location-page h2 { font-size: 20px; }
}

/* ================================================================
   HERO — BASE + IMAGE VARIANT
   ================================================================ */
.wdstore-hero {
    background: var(--wd-bg);
    padding-top: 36px;
    padding-bottom: 32px;
}
.wdstore-hero--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 60px;
    padding-bottom: 60px;
}
.wdstore-hero--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 28, 10, 0.62);
}
.wdstore-hero--has-image .container {
    position: relative;
    z-index: 1;
}
.wdstore-hero--has-image h1,
.wdstore-hero--has-image .wdstore-hero__eyebrow,
.wdstore-hero--has-image .wdstore-hero__intro {
    color: #ffffff;
}
.wdstore-hero--has-image .wdstore-hero__badges li {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.wdstore-hero--has-image .wdstore-stats {
    border-color: rgba(255, 255, 255, 0.2);
}
.wdstore-hero--has-image .wdstore-stats__number {
    color: #ffffff;
}
.wdstore-hero--has-image .wdstore-stats__label {
    color: rgba(255, 255, 255, 0.75);
}
.wdstore-hero--has-image .wdstore-stats__item {
    border-color: rgba(255, 255, 255, 0.2);
}

.wdstore-hero__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--wd-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.wdstore-hero__title {
    max-width: 760px;
}
.wdstore-hero__intro {
    font-size: 16px;
    color: var(--wd-text-body);
    max-width: 720px;
    margin: 0 0 20px;
    line-height: 1.6;
}

/* Trust badges row — small, inline */
.wdstore-hero__badges {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wdstore-hero__badges li {
    background: var(--wd-bg-cream);
    color: var(--wd-text);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--wd-radius-sm);
    border: 1px solid var(--wd-border);
}
.wdstore-hero__badges li.wdstore-badge--rating {
    background: #fff8db;
    color: var(--wd-accent-text);
    border-color: var(--wd-gold);
}

/* STAT ROW — matches live page's "20+ Years · 10,000+ Homes" pattern */
.wdstore-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 24px 0 28px;
    border-top: 1px solid var(--wd-border);
    border-bottom: 1px solid var(--wd-border);
    padding: 18px 0;
}
.wdstore-stats__item {
    text-align: center;
    padding: 0 16px;
    border-right: 1px solid var(--wd-border);
}
.wdstore-stats__item:last-child {
    border-right: none;
}
.wdstore-stats__number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--wd-text);
    line-height: 1;
    letter-spacing: -0.01em;
}
.wdstore-stats__label {
    display: block;
    font-size: 11px;
    color: var(--wd-text-muted);
    margin-top: 6px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
@media (max-width: 768px) {
    .wdstore-stats { grid-template-columns: 1fr 1fr; }
    .wdstore-stats__item:nth-child(2) { border-right: none; }
    .wdstore-stats__item:nth-child(1),
    .wdstore-stats__item:nth-child(2) {
        border-bottom: 1px solid var(--wd-border);
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
}

/* NAP — cleaner, less card-like */
.wdstore-nap {
    background: var(--wd-bg-cream);
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-md);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .wdstore-nap {
        grid-template-columns: 1fr;
        padding: 18px 20px;
        gap: 18px;
    }
}
.wdstore-nap__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--wd-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.wdstore-nap__address address {
    font-style: normal;
    line-height: 1.6;
    font-size: 15px;
    color: var(--wd-text);
}
.wdstore-nap__phone {
    color: var(--wd-text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}
.wdstore-nap__phone:hover {
    color: var(--wd-accent-hover);
    text-decoration: underline;
}
.wdstore-nap__email {
    font-size: 13px;
    color: var(--wd-text-body);
}
.wdstore-nap__cta {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--wd-border);
    margin-top: 4px;
}
@media (max-width: 600px) {
    .wdstore-nap__cta { flex-direction: column; }
}

/* BUTTONS — match live page gold style */
.wdstore-btn {
    display: inline-block;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--wd-radius-sm);
    border: 2px solid transparent;
    transition: all 0.15s ease;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
}
.wdstore-btn--primary {
    background: var(--wd-accent);
    color: var(--wd-accent-text);
    border-color: var(--wd-accent);
    flex: 1;
}
.wdstore-btn--primary:hover, .wdstore-btn--primary:focus {
    background: var(--wd-accent-hover);
    border-color: var(--wd-accent-hover);
    color: var(--wd-accent-text);
}
.wdstore-btn--secondary {
    background: transparent;
    color: var(--wd-text);
    border-color: var(--wd-text);
    flex: 1;
}
.wdstore-btn--secondary:hover, .wdstore-btn--secondary:focus {
    background: var(--wd-text);
    color: #fff;
}

/* HOURS */
.wdstore-hours {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: 13px;
}
.wdstore-hours dt { font-weight: 600; color: var(--wd-text); }
.wdstore-hours dd { margin: 0; color: var(--wd-text-body); }
.wdstore-hours__closed { color: var(--wd-text-muted); font-style: italic; }
.wdstore-hours__placeholder { font-size: 13px; color: var(--wd-text-body); margin: 0; }

/* MAP */
.wdstore-map__embed {
    border-radius: var(--wd-radius-md);
    overflow: hidden;
    border: 1px solid var(--wd-border);
}
.wdstore-map__embed iframe { display: block; width: 100%; }

/* SERVICES — card style matching /window-replacement/ */
.wdstore-services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .wdstore-services__grid { grid-template-columns: 1fr; }
}
.wdstore-services__card {
    background: var(--wd-bg-card);
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-md);
    padding: 22px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wdstore-services__card:hover {
    border-color: var(--wd-accent);
    box-shadow: 0 2px 12px rgba(200, 184, 74, 0.08);
}
.wdstore-services__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--wd-accent-text);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.wdstore-services__card p {
    color: var(--wd-text-body);
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
}
.wdstore-link {
    color: var(--wd-text);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 2px solid var(--wd-accent);
    padding-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wdstore-link:hover {
    color: var(--wd-accent-text);
    border-bottom-color: var(--wd-accent-hover);
}

/* SERVICE AREA */
.wdstore-area {
    background: var(--wd-bg-cream);
}
.wdstore-area p {
    font-size: 14px;
    color: var(--wd-text-body);
}
.wdstore-area__cities {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.wdstore-area__cities li {
    list-style: none;
    padding: 0;
}
.wdstore-area__city-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--wd-bg);
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-sm);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--wd-text);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.wdstore-area__city-link:hover,
.wdstore-area__city-link:focus {
    border-color: var(--wd-accent);
    background: #fff;
    color: var(--wd-accent-text);
    box-shadow: 0 1px 6px rgba(200, 184, 74, 0.15);
}
.wdstore-area__arrow {
    color: var(--wd-accent);
    font-weight: 400;
    transition: transform 0.15s ease;
    margin-left: 8px;
}
.wdstore-area__city-link:hover .wdstore-area__arrow,
.wdstore-area__city-link:focus .wdstore-area__arrow {
    transform: translateX(3px);
}

/* WHY US — cleaner, no left bars */
.wdstore-why__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 768px) {
    .wdstore-why__grid { grid-template-columns: 1fr; }
}
.wdstore-why__grid li {
    background: var(--wd-bg);
    border: 1px solid var(--wd-border);
    border-left: 3px solid var(--wd-accent);
    padding: 14px 18px;
    border-radius: 0 var(--wd-radius-sm) var(--wd-radius-sm) 0;
}
.wdstore-why__grid strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--wd-text);
    font-weight: 700;
}
.wdstore-why__grid span {
    font-size: 13px;
    color: var(--wd-text-body);
    line-height: 1.5;
}

/* TESTIMONIALS */
.wdstore-testimonials {
    background: var(--wd-bg-cream);
}
.wdstore-testimonials__grid {
    display: grid;
    gap: 14px;
}
.wdstore-testimonial {
    background: var(--wd-bg);
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-md);
    padding: 18px 22px;
    margin: 0;
}
.wdstore-testimonial__stars {
    color: var(--wd-gold);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.wdstore-testimonial p {
    font-style: italic;
    color: var(--wd-text);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 10px;
    font-family: Georgia, serif;
}
.wdstore-testimonial cite {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--wd-text);
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
}
.wdstore-testimonial__source {
    font-weight: 400;
    color: var(--wd-text-muted);
}
.wdstore-testimonials__placeholder {
    color: var(--wd-text-body);
    font-size: 14px;
}
.wdstore-testimonials__more {
    margin-top: 18px;
    font-size: 13px;
}
.wdstore-testimonials__more a {
    color: var(--wd-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--wd-accent);
    padding-bottom: 1px;
    text-decoration: none;
}

/* FAQ */
.wdstore-faq__item {
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-md);
    padding: 16px 20px;
    margin-bottom: 10px;
    background: var(--wd-bg);
}
.wdstore-faq__item h3 {
    font-size: 15px;
    margin: 0 0 6px;
}
.wdstore-faq__item p {
    margin: 0;
    color: var(--wd-text-body);
    font-size: 14px;
    line-height: 1.6;
}

/* FINAL CTA — olive green matching brand */
.wdstore-cta {
    background: #4e4f25;
    color: #fff;
    padding: 44px 0;
}
.wdstore-cta h2 { color: #fff; margin-bottom: 8px; }
.wdstore-cta p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 0 20px;
    font-size: 15px;
}
.wdstore-cta .wdstore-btn--primary {
    background: var(--wd-accent);
    color: var(--wd-accent-text);
    border-color: var(--wd-accent);
    flex: 0 0 auto;
}
.wdstore-cta .wdstore-btn--primary:hover {
    background: var(--wd-accent-hover);
    border-color: var(--wd-accent-hover);
}
.wdstore-cta a:not(.wdstore-btn) {
    color: var(--wd-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--wd-accent);
}

.wdstore-location-page a:focus-visible,
.wdstore-location-page button:focus-visible {
    outline: 2px solid var(--wd-accent);
    outline-offset: 2px;
}