/*
 * Home page styles — First Choice Windows
 * Rebuilt to match resources/website-template.png (see asset bucket).
 * Palette sampled directly from the template mockup.
 *
 * Self-contained: index.html loads only this file, so the other 15 pages
 * keep using css/base.css untouched.
 */

/* ============================================================
   Tokens
   ============================================================ */
:root {
    /* One vertical rhythm for every section, whatever its background.
       Change this single value to open up or close the whole page. */
    --section-pad: clamp(.5rem, .9vw, .8rem);
    --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-5.2 7-11a7 7 0 1 0-14 0c0 5.8 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.6' fill='none'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    line-height: 1.62;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    line-height: 1.14;
    letter-spacing: -.015em;
    font-weight: 800;
}

p { margin: 0; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 3px;
}

.container { width: var(--container); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Shared section furniture
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section--offwhite { background: var(--off-white); }
.section--navy { background: var(--navy); }
.section--charcoal { background: var(--charcoal); }

.eyebrow {
    display: block;
    font-size: var(--eyebrow);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .85rem;
}

.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.1vw, 2.3rem); text-transform: uppercase; }
/* For a heading too long for the 46rem measure. Lifts the cap so it can use the
   full container, and eases the size down so it holds one line on desktop. */
.section-head--wide { max-width: none; }
.section-head--wide h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.section-head p { margin-top: 1rem; font-size: 1.02rem; }
.section-head + .fc-carousel { margin-top: 1.5rem; }
h2 + .fc-carousel { margin-top: 1.5rem; }
.section-head + .rating-bar { margin-top: 1.5rem; }

/* Inverted (on navy / charcoal) */
.on-dark { color: #c3d1de; }
.on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .eyebrow { color: #7cb6e0; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--blue);
}
.link-arrow::after { content: "\2192"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--navy); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg,
        rgba(0, 12, 26, .92) 0%, rgba(0, 12, 26, .82) 42%,
        rgba(0, 14, 30, .55) 70%, rgba(0, 16, 34, .38) 100%);
}
/* Copy on the left, company details on the right. A real two-column row
   rather than an absolutely positioned block, so nothing can overlap and
   the hero grows to fit whichever column is taller. */
.hero-inner {
    padding: clamp(2rem, 3.5vw, 2.75rem) 0;
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero-copy { flex: 1 1 auto; min-width: 0; }
.hero-address {
    flex: 0 0 auto;
    font-style: normal; text-align: right;
    font-size: 1.02rem; line-height: 1.65; color: #e2eaf2;
    /* Panel so the details read clearly against whatever the photo is doing
       behind them. Blur is progressive: without it the tint alone carries. */
    background: rgba(10, 20, 31, .66);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.hero-address span { display: block; }
.hero-address a { color: #fff; font-weight: 700; }
.hero-address a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
    /* too little width for two columns; the footer still carries the details */
    .hero-inner { display: block; }
    .hero-address { display: none; }
}
.hero .eyebrow { color: #8cc2e8; }
.hero h1 {
    max-width: 47rem;
    color: #fff;
    font-size: clamp(2.1rem, 5.1vw, 3.55rem);
    text-transform: uppercase;
    text-wrap: balance;
}
.hero p {
    margin-top: 1.4rem; max-width: 34rem;
    font-size: clamp(1rem, 1.5vw, 1.13rem); color: #d3dfea;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

/* ============================================================
   Trust bar
   ============================================================ */
.trust-bar { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08); }
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; padding: 1.75rem 0;
}
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-item svg { flex: 0 0 auto; width: 26px; height: 26px; color: #7cb6e0; }
.trust-item strong {
    display: block; font-size: .82rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: #fff; line-height: 1.25;
}
.trust-item span { font-size: .76rem; color: #9db2c6; }

/* ============================================================
   Why choose us  (image left / copy right)
   ============================================================ */
.split {
    display: grid; grid-template-columns: 1fr 1.06fr;
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split-media img {
    width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
    border-radius: var(--radius-lg);
}
.split-copy p + p { margin-top: 1rem; }

.feature-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem; margin-top: 2.4rem;
    padding-top: 2rem; border-top: 1px solid var(--line);
}
.feature { text-align: center; }
.feature a {
    display: block; padding: .6rem .4rem;
    border-radius: var(--radius); color: inherit; text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}
.feature a:hover { background: var(--blue-tint); transform: translateY(-2px); }
.feature a:hover strong { color: var(--blue); }
.feature svg { width: 30px; height: 30px; margin: 0 auto .7rem; color: var(--blue); }
.feature strong {
    display: block; font-size: .76rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: var(--ink); line-height: 1.3;
}
.feature span { display: block; margin-top: .25rem; font-size: .78rem; }

/* ============================================================
   Products & services  (6 across)
   ============================================================ */
.product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent;
}
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-card-body { padding: 1rem .95rem 1.15rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-card h3 {
    font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.product-card p { margin: .4rem 0 .9rem; font-size: .82rem; line-height: 1.5; }
.product-card .link-arrow { margin-top: auto; font-size: .7rem; }

/* ============================================================
   See the difference  (4 before/after, on navy)
   ============================================================ */
.transform-card {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius); overflow: hidden;
    transition: background-color .2s ease, transform .2s ease;
}
.transform-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.transform-card > a { display: block; color: inherit; text-decoration: none; }
.transform-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.transform-card-body { padding: 1.15rem 1.1rem 1.3rem; }
.transform-card h3 {
    font-size: .82rem; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; color: #fff;
}
.transform-card p { margin-top: .45rem; font-size: .84rem; color: #a9bdcf; line-height: 1.5; }
.center-cta { margin-top: 1.5rem; text-align: center; }
.review-grid + .center-cta { margin-top: .75rem; }

/* ============================================================
   Projects + Process  (two columns)
   ============================================================ */
/* start, not stretch: otherwise the process panel grows to match the projects
   column and leaves empty blue below the last step. */
.duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 4.5vw, 3.75rem);
       align-items: start; }

.project-row {
    /* Column so the View project link can be pushed to the foot of the card,
       lining the three up regardless of how long each description runs. */
    display: flex; flex-direction: column; gap: .85rem;
    padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.project-row:hover { border-color: transparent; box-shadow: var(--shadow); }
.project-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.project-row h3 { font-size: .95rem; }
.project-row p { margin-top: .3rem; font-size: .85rem; }
/* Its own strip at the foot of the card -- the card itself is no longer a link,
   so this is the only clickable target. */
.project-link {
    margin-top: auto;
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--blue);
}
.project-link::after { content: "\2192"; transition: transform .18s ease; }

/* Location sits directly under the image, above the title. */
.project-town {
    display: flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--body);
}
.project-town::before {
    content: ""; flex: 0 0 auto; width: 12px; height: 12px;
    background: currentColor;
    -webkit-mask: var(--pin) center / contain no-repeat;
    mask: var(--pin) center / contain no-repeat;
}
.project-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.project-link:hover::after { transform: translateX(3px); }

/* Block padding kept tighter than inline so the panel hugs its text. */
.process { background: var(--blue); border-radius: var(--radius-lg);
           padding: clamp(1.15rem, 1.8vw, 1.5rem) clamp(1.75rem, 3vw, 2.5rem); }
.process h2 { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.6rem); text-transform: uppercase; }
.process .eyebrow { color: #bcdcf3; }
.process-steps { counter-reset: step; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.process-steps li {
    counter-increment: step; position: relative;
    padding: 0 0 1.5rem 3.1rem;
}
.process-steps li::before {
    content: counter(step); position: absolute; left: 0; top: -.1rem;
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--blue); font-weight: 900; font-size: .88rem;
}
.process-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 1.05rem; top: 2.35rem; bottom: .35rem;
    width: 2px; background: rgba(255, 255, 255, .28);
}
.process-steps strong {
    display: block; font-size: .82rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: #fff;
}
.process-steps span { display: block; margin-top: .2rem; font-size: .87rem; color: #d6e9f7; line-height: 1.5; }
.process-steps li:last-child { padding-bottom: 0; }

/* ============================================================
   Reviews
   ============================================================ */
.rating-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .65rem; margin-bottom: .9rem;
    font-size: .85rem;
}
.rating-bar .excellent {
    font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 17px; height: 17px; }
.rating-bar .source { font-weight: 700; color: var(--ink); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review {
    margin: 0; /* figure has a default 40px side margin */
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.review .stars { margin-bottom: .9rem; }
.review blockquote { margin: 0; font-size: .95rem; color: var(--ink); line-height: 1.6; }
.review figcaption { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review cite { font-style: normal; font-weight: 800; font-size: .85rem; color: var(--ink); display: block; }
.review figcaption span { font-size: .78rem; }

/* ============================================================
   Family business band
   ============================================================ */
/* This slot holds a wide 399x127 graphic rather than a photo, so it keeps its
   own proportions instead of being cropped to the 4:3 media box above. */
.section--charcoal .split-media img { aspect-ratio: auto; object-fit: contain; }
.badge-row {
    display: flex; flex-wrap: wrap; gap: 2.2rem;
    margin-top: 2rem; padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.badge { display: flex; align-items: center; gap: .6rem; }
.badge svg { width: 24px; height: 24px; color: #7cb6e0; }
.badge strong {
    font-size: .78rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #fff;
}

/* ============================================================
   Closing CTA
   ============================================================ */
.cta-band { background: linear-gradient(105deg, var(--blue) 0%, var(--blue-dark) 100%); }
.cta-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 2rem; padding: clamp(.8rem, 1.35vw, 1.1rem) 0;
}
.cta-copy { max-width: 34rem; }
.cta-copy h2 { color: #fff; font-size: clamp(1.5rem, 2.9vw, 2.1rem); text-transform: uppercase; }
.cta-copy p { margin-top: .8rem; color: #dbebf8; font-size: 1.02rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .split, .duo { grid-template-columns: 1fr; }
    .split-media { order: -1; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero-cta .fc-btn, .cta-actions .fc-btn { flex: 1 1 100%; }
    .badge-row { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .product-card:hover, .transform-card:hover { transform: none; }
}
