/* Page-specific styles only. Global navigation, footer, buttons and containers remain in style.css. */
.automatic-doors-page {
    --ad-red: #e30613;
    --ad-deep-red: #a50008;
    --ad-panel: #111214;
    --ad-line: rgba(255, 255, 255, .1);
    background: #08090a;
    color: #fff;
    overflow: hidden;
}

.automatic-doors-page img { display: block; width: 100%; }
.automatic-doors-page h1,
.automatic-doors-page h2,
.automatic-doors-page h3 { margin-top: 0; color: #fff; }
.automatic-doors-page h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.045em; }
.automatic-doors-page h2 span,
.automatic-doors-page h1 span { color: var(--ad-red); }
.automatic-doors-page p { color: rgba(255, 255, 255, .68); }

.ad-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.ad-section--dark { background: #0d0e10; }
.ad-section--red { background: linear-gradient(125deg, #890008, var(--ad-red)); }
.ad-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin: 0 0 1.1rem;
    color: var(--ad-red) !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.ad-eyebrow::before { content: ""; width: 38px; height: 2px; background: currentColor; }
.ad-lead { color: rgba(255, 255, 255, .9) !important; font-size: clamp(1.08rem, 1.7vw, 1.32rem); }
.ad-heading { max-width: 780px; margin-bottom: 3rem; }
.ad-heading > p:last-child { max-width: 680px; margin-bottom: 0; }

.ad-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: flex-end;
    padding: 12rem 0 7rem;
    border-bottom: 5px solid var(--ad-red);
}
.ad-hero__image,
.ad-hero__shade { position: absolute; inset: 0; height: 100%; }
.ad-hero__image { object-fit: cover; }
.ad-hero__shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .58) 56%, rgba(0, 0, 0, .28)),
        linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 65%);
}
.ad-hero__content { position: relative; z-index: 2; width: 100%; }
.ad-hero h1 { max-width: 980px; margin-bottom: 1.4rem; font-size: clamp(3rem, 7vw, 6.7rem); line-height: .94; letter-spacing: -.06em; }
.ad-hero__lead { max-width: 700px; margin-bottom: 2.2rem; color: rgba(255,255,255,.84) !important; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.ad-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ad-hero__facts {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(14px);
}
.ad-hero__facts div { padding: 1.25rem 1.5rem; border-left: 1px solid rgba(255,255,255,.12); }
.ad-hero__facts strong,
.ad-hero__facts span { display: block; }
.ad-hero__facts strong { color: #fff; font-size: 1.45rem; }
.ad-hero__facts span { color: rgba(255,255,255,.58); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.ad-intro { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.ad-intro__copy p:last-child { margin-bottom: 0; }
.ad-feature-image { position: relative; margin: 0; }
.ad-feature-image::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--ad-red); z-index: 0; }
.ad-feature-image img { position: relative; z-index: 1; min-height: 520px; object-fit: cover; }
.ad-feature-image figcaption { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 1rem 1.2rem; background: var(--ad-red); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; }

.ad-solutions { display: grid; gap: 1.5rem; }
.ad-solution { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); min-height: 390px; border: 1px solid var(--ad-line); background: var(--ad-panel); }
.ad-solution:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
.ad-solution:nth-child(even) img { order: 2; }
.ad-solution img { height: 100%; min-height: 390px; object-fit: cover; }
.ad-solution > div { padding: clamp(2rem, 5vw, 4.5rem); }
.ad-solution > div > span { color: var(--ad-red); font-size: 2.4rem; font-weight: 900; }
.ad-solution h3 { margin: .6rem 0 1rem; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.ad-solution ul { display: grid; gap: .65rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.ad-solution li { position: relative; padding-left: 1.5rem; color: rgba(255,255,255,.78); }
.ad-solution li::before { content: "✓"; position: absolute; left: 0; color: var(--ad-red); font-weight: 800; }

.ad-benefits { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: clamp(3rem, 7vw, 7rem); }
.ad-benefits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ad-line); background: var(--ad-line); gap: 1px; }
.ad-benefits__grid article { padding: 2rem; background: #0d0e10; }
.ad-benefits__grid i { margin-bottom: 1.2rem; color: var(--ad-red); font-size: 1.7rem; }
.ad-benefits__grid h3 { margin-bottom: .65rem; font-size: 1.1rem; }
.ad-benefits__grid p { margin: 0; font-size: .9rem; }

.ad-adsa { display: grid; grid-template-columns: 180px minmax(0, 900px); align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); }
.ad-adsa__mark { width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.12); font-size: 4.5rem; }
.ad-adsa .ad-eyebrow { color: #fff !important; }
.ad-adsa h2 span { color: #fff; }
.ad-adsa p { color: rgba(255,255,255,.86); }

.ad-integration { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--ad-line); background: var(--ad-line); }
.ad-integration article { min-height: 220px; padding: 2rem; background: #111214; }
.ad-integration strong { display: block; margin-bottom: 1rem; color: #fff; font-size: 1.1rem; }
.ad-integration strong::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 1.2rem; background: var(--ad-red); }
.ad-integration p { margin: 0; font-size: .9rem; }

.ad-process { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(3rem, 8vw, 8rem); }
.ad-process ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ad-process li { display: grid; grid-template-columns: 65px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--ad-line); }
.ad-process li > span { color: var(--ad-red); font-size: 1.5rem; font-weight: 900; }
.ad-process h3 { margin-bottom: .45rem; font-size: 1.2rem; }
.ad-process li p { margin: 0; font-size: .92rem; }

.ad-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ad-gallery button { position: relative; min-height: 250px; padding: 0; overflow: hidden; border: 1px solid var(--ad-line); background: #111; cursor: zoom-in; }
.ad-gallery img { height: 100%; min-height: 250px; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.ad-gallery button:hover img,
.ad-gallery button:focus-visible img { transform: scale(1.045); filter: brightness(.72); }

.ad-lightbox[hidden] { display: none; }
.ad-lightbox { position: fixed; inset: 0; z-index: 30000; display: grid; place-items: center; padding: 4rem; background: rgba(0,0,0,.92); }
.ad-lightbox img { max-width: min(1400px, 94vw); max-height: 88vh; object-fit: contain; }
.ad-lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: #111; color: #fff; font-size: 2rem; cursor: pointer; }

.ad-faq { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr); gap: clamp(3rem, 7vw, 7rem); }
.ad-faq details { border-top: 1px solid var(--ad-line); }
.ad-faq details:last-child { border-bottom: 1px solid var(--ad-line); }
.ad-faq summary { position: relative; padding: 1.45rem 3rem 1.45rem 0; cursor: pointer; color: #fff; font-weight: 700; list-style: none; }
.ad-faq summary::-webkit-details-marker { display: none; }
.ad-faq summary::after { content: "+"; position: absolute; right: .3rem; color: var(--ad-red); font-size: 1.5rem; }
.ad-faq details[open] summary::after { content: "−"; }
.ad-faq details p { padding: 0 3rem 1.4rem 0; margin: 0; }

.ad-cta { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; background: linear-gradient(115deg, rgba(119,0,6,.96), rgba(227,6,19,.84)), url("../img/products/automatic-sliding-entrance-exterior.png") center/cover; }
.ad-cta .container { max-width: 1000px; }
.ad-cta .ad-eyebrow { color: #fff !important; }
.ad-cta h2 { max-width: 900px; margin-bottom: 1.2rem; }
.ad-cta > .container > p:not(.ad-eyebrow) { max-width: 680px; color: rgba(255,255,255,.86); }
.ad-cta__phone { display: inline-flex; align-items: center; gap: .85rem; color: #fff; font-weight: 800; }
.ad-cta__phone i { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.ad-cta__phone span { display: flex; flex-direction: column; }
.ad-cta__phone small { margin-bottom: .2rem; color: rgba(255,255,255,.7); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 1050px) {
    .ad-hero__facts { position: relative; right: auto; bottom: auto; z-index: 2; width: 100%; grid-template-columns: repeat(3, 1fr); }
    .ad-hero { display: grid; padding-bottom: 0; }
    .ad-hero__content { padding-bottom: 4rem; }
    .ad-intro,
    .ad-benefits,
    .ad-process,
    .ad-faq { grid-template-columns: 1fr; }
    .ad-integration { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .ad-section { padding: 4rem 0; }
    .ad-hero { min-height: 700px; padding-top: 8rem; }
    .ad-hero h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
    .ad-hero__facts div { padding: 1rem .7rem; text-align: center; }
    .ad-hero__facts strong { font-size: 1.15rem; }
    .ad-hero__facts span { font-size: .55rem; }
    .ad-actions { align-items: stretch; flex-direction: column; }
    .ad-actions .btn { width: 100%; }
    .ad-feature-image img { min-height: 340px; }
    .ad-solution,
    .ad-solution:nth-child(even) { grid-template-columns: 1fr; }
    .ad-solution:nth-child(even) img { order: 0; }
    .ad-solution img { min-height: 280px; max-height: 360px; }
    .ad-benefits__grid,
    .ad-integration { grid-template-columns: 1fr; }
    .ad-adsa { grid-template-columns: 1fr; text-align: left; }
    .ad-adsa__mark { width: 120px; height: 120px; font-size: 3rem; }
    .ad-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ad-gallery button,
    .ad-gallery img { min-height: 180px; }
    .ad-lightbox { padding: 1rem; }
}

@media (max-width: 480px) {
    .ad-hero__facts { grid-template-columns: 1fr; }
    .ad-hero__facts div { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
    .ad-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .ad-gallery img { transition: none; }
}
