/*
 * Inner product pages — First Choice Windows
 * Windows, doors, conservatories, about and gallery.
 *
 * Load order: chrome.css -> home.css -> pages.css
 * Reuses the home page's section furniture (.section, .split, .eyebrow,
 * .section-head, .cta-band, .badge-row ...) and adds the photo-led blocks
 * these pages need. Everything here is scoped under body.pg so the home
 * page is never affected.
 */

/* ============================================================
   Rhythm: inner pages breathe more than the dense home page
   ============================================================ */
.pg .section { padding: clamp(2.25rem, 4.5vw, 3.75rem) 0; }
.pg .section-head h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.pg .section-head + * { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.pg .split-copy h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); text-transform: uppercase; }
.pg .split-copy p { margin-top: 1rem; }
.pg .split-copy h2 + p { margin-top: 1.1rem; }
.pg .split-copy .fc-btn { margin-top: 1.6rem; }
.pg .split-copy .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.pg .split-copy .btn-row .fc-btn { margin-top: 0; }
.pg .split--flip .split-media { order: 2; }

/* Page hero: a quote button right where people land */
.pg .fc-pagehero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Short tick list */
.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink); font-weight: 600; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem;
    border-radius: 50%; background: var(--blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E") center / contain;
}
.ticks li::after {
    content: ""; position: absolute; left: .34rem; top: calc(.3em + .26rem);
    width: .38rem; height: .22rem; border: 2px solid #fff; border-top: 0; border-right: 0;
    transform: rotate(-45deg);
}
.on-dark .ticks li { color: #fff; }

/* ============================================================
   Quality strip: icon + headline + one line, 4 across
   ============================================================ */
.quality-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
    margin: 0; padding: 0; list-style: none;
}
.quality {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem;
}
.quality svg { width: 32px; height: 32px; color: var(--blue); }
.quality img { height: 44px; width: auto; }
.quality h3 {
    margin-top: 1rem; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}
.quality p { margin-top: .45rem; font-size: .9rem; line-height: 1.55; }
.on-dark .quality { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.on-dark .quality svg { color: #7cb6e0; }
.on-dark .quality p { color: #b9c9d8; }

/* ============================================================
   Style cards: a photo for each style, with its own quote link
   ============================================================ */
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.style-grid--3 { grid-template-columns: repeat(3, 1fr); }
.style-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.style-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.style-card img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.style-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.15rem 1.15rem 1.3rem; }
.style-card h3 { font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.style-card p { margin: .45rem 0 1rem; font-size: .9rem; line-height: 1.55; }
.style-card .link-arrow { margin-top: auto; }

/* ============================================================
   Alternating feature rows: image one side, copy the other
   ============================================================ */
.rows { display: grid; gap: clamp(2.25rem, 5vw, 4rem); }
.row {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.75rem, 4.5vw, 4rem);
    align-items: center;
}
.row:nth-child(even) .row-media { order: 2; }
.row-media { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; }
.row-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.row-media img:first-child { grid-row: span 2; aspect-ratio: 3 / 3.6; }
.row-media img:not(:first-child) { aspect-ratio: 1 / 1; }
.row-media--single { grid-template-columns: 1fr; }
.row-media--single img:first-child { grid-row: auto; aspect-ratio: 4 / 3.3; }
.row-copy h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); text-transform: uppercase; }
.row-copy p { margin-top: 1rem; }
.row-copy .fc-btn { margin-top: 1.5rem; }

/* ============================================================
   Photo mosaic: completed work, a large lead image + supporting
   ============================================================ */
.mosaic {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px);
    gap: .75rem;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic + .center-cta { margin-top: 1.75rem; }

/* ============================================================
   Colour swatches drawn from real installs
   ============================================================ */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.swatch { text-align: center; }
.swatch img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; border-radius: var(--radius); }
.swatch span {
    display: block; margin-top: .55rem; font-size: .74rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}

/* Style chips (conservatory styles) */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.chips li {
    padding: .55rem .95rem; border-radius: 999px; background: var(--blue-tint);
    color: var(--ink); font-size: .85rem; font-weight: 700;
}
.chips li span { font-weight: 400; color: var(--body); }

/* ============================================================
   Stats band
   ============================================================ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-band strong {
    display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 900; line-height: 1;
    color: #fff; letter-spacing: -.02em;
}
.stat-band span {
    display: block; margin-top: .6rem; font-size: .76rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: #9fc4e2;
}

/* ============================================================
   Mid-page quote bar
   ============================================================ */
.quote-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    background: var(--blue-tint); border: 1px solid #cfe1f0; border-radius: var(--radius-lg);
    padding: 1.35rem clamp(1.25rem, 3vw, 2rem);
}
.quote-bar strong { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 800; }
.quote-bar span { font-size: .92rem; }
.quote-bar-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Pull quote (word of mouth) */
.pull {
    margin: 0; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pull blockquote { margin: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); font-weight: 600; }
.pull figcaption { margin-top: 1rem; font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.pull .stars { margin-bottom: 1rem; }

/* ============================================================
   Gallery folders
   ============================================================ */
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.folder {
    position: relative; display: block; width: 100%; padding: 0; text-align: left;
    border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    background: var(--navy); color: #fff; font: inherit; isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease;
}
.folder:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.folder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.folder:hover img { transform: scale(1.04); }
.folder::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(0, 12, 26, 0) 40%, rgba(0, 12, 26, .88) 100%);
}
.folder-label { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 1; }
.folder-label strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.folder-label span { display: inline-flex; align-items: center; gap: .4rem; margin-top: .25rem; font-size: .82rem; color: #cfe0ef; }
.folder-label span::before {
    content: ""; width: 15px; height: 12px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M0 3a3 3 0 0 1 3-3h6l2.5 3H21a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.album[hidden], #folders[hidden] { display: none; }
/* clear the sticky header when an album is scrolled into view */
.album, #folders { scroll-margin-top: 92px; }
.album-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.album-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); text-transform: uppercase; }
.album-back {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
    color: var(--ink); cursor: pointer;
}
.album-back::before { content: "\2190"; }
.album-back:hover { border-color: var(--blue); color: var(--blue); }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.album-grid a { display: block; border-radius: var(--radius); overflow: hidden; }
.album-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s ease; }
.album-grid a:hover img { transform: scale(1.05); }

.lightbox {
    width: min(1100px, 100% - 2rem); max-height: calc(100vh - 2rem); padding: 0;
    border: 0; border-radius: var(--radius-lg); background: #000; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 8, 18, .85); }
.lightbox img { width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; background: #000; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: var(--navy); }
.lightbox-bar span { font-size: .85rem; color: #cfe0ef; }
.lightbox-nav { display: flex; gap: .5rem; }
.lightbox button {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
    background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer;
}
.lightbox button:hover { background: var(--blue); border-color: var(--blue); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .swatches { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
    .pg .split--flip .split-media { order: -1; }
    .quality-grid, .style-grid, .stat-band { grid-template-columns: repeat(2, 1fr); }
    .style-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .row { grid-template-columns: 1fr; }
    .row:nth-child(even) .row-media { order: 0; }
    .folder-grid { grid-template-columns: repeat(2, 1fr); }
    .album-grid { grid-template-columns: repeat(3, 1fr); }
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 34vw, 240px); }
}
@media (max-width: 600px) {
    .quality-grid, .style-grid, .style-grid--3, .folder-grid { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: repeat(2, 1fr); }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .swatches { grid-template-columns: repeat(2, 1fr); }
    .quote-bar-actions, .quote-bar-actions .fc-btn, .pg .fc-pagehero-actions .fc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .style-card:hover, .folder:hover { transform: none; }
    .folder:hover img, .album-grid a:hover img { transform: none; }
}

/* Contact page cards */
.contact-grid .quality p { margin-top: .45rem; }
.contact-big { font-size: 1.15rem; font-weight: 800; color: var(--ink); word-break: break-word; }
.contact-big:hover { color: var(--blue); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-actions .fc-btn { padding: .6rem 1rem; }
.contact-address { margin-top: .45rem; font-style: normal; color: var(--ink); line-height: 1.6; }

/* Brochure downloads (windows and doors pages) */
.brochure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; max-width: 960px; margin-inline: auto; }
.brochure {
    display: flex; align-items: center; gap: .9rem; height: 100%;
    padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.brochure:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.brochure svg { flex: 0 0 auto; width: 34px; height: 34px; color: var(--blue); }
.brochure strong { display: block; color: var(--ink); font-size: .95rem; }
.brochure > span > span { font-size: .82rem; }
.center-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.pull-lead { margin: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); font-weight: 600; }
