/*
 * Shared site chrome — First Choice Windows
 * Header, page hero, footer and buttons, matching the design template.
 *
 * Every class is namespaced `fc-` so this layers cleanly over css/base.css
 * without colliding with the existing page-content styles (.container,
 * .btn, .section, header.hero, footer.site-footer all stay untouched).
 *
 * Load order:
 *   inner pages   base.css  -> chrome.css
 *   home page     chrome.css -> home.css   (home.css widens --container)
 */

/* ============================================================
   Tokens
   ============================================================ */
:root {
    --navy: #001225;
    --navy-soft: #0a1f38;
    --blue: #1e72b2;
    --blue-dark: #145a90;
    --blue-tint: #eaf2f9;
    --charcoal: #282c2f;
    --ink: #14202b;
    --body: #4d5a67;
    --line: #e3e8ee;
    --off-white: #f7f9fb;
    --star: #f5a623;

    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .07);
    --shadow-lg: 0 2px 4px rgba(16, 32, 48, .07), 0 18px 44px rgba(16, 32, 48, .13);
    --eyebrow: .72rem;

    /* One width for the whole site, header, content and footer alike. */
    --container: min(1240px, 100% - 2.5rem);
}

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

.fc-skip {
    position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
    background: var(--navy); color: #fff; padding: .7rem 1.2rem;
    border-radius: 0 0 var(--radius) var(--radius); z-index: 200; font-weight: 700;
}
.fc-skip:focus { transform: translate(-50%, 0); }

/* ============================================================
   Buttons
   ============================================================ */
.fc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.7rem;
    font: inherit; font-weight: 800; font-size: .82rem;
    letter-spacing: .08em; text-transform: uppercase;
    border: 2px solid transparent; border-radius: var(--radius);
    cursor: pointer; text-decoration: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.fc-btn:hover { transform: translateY(-2px); }
.fc-btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.fc-btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.fc-btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.fc-btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.fc-btn--ghost-dark { color: var(--ink); border-color: var(--line); background: #fff; }
.fc-btn--ghost-dark:hover { border-color: var(--blue); color: var(--blue); }
.fc-btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.fc-btn--white:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   Header
   ============================================================ */
.fc-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff; border-bottom: 1px solid var(--line);
}
.fc-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 92px; }

.fc-brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; text-decoration: none; }
.fc-brand img { height: 46px; width: auto; display: block; }
.fc-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.fc-brand-text strong {
    font-size: 1.02rem; font-weight: 900; letter-spacing: .02em;
    text-transform: uppercase; color: var(--navy);
}
.fc-brand-text span {
    font-size: .62rem; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--blue);
}

.fc-nav { margin-inline: auto; }
.fc-nav ul { display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; list-style: none; }
.fc-nav a {
    font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink); text-decoration: none; padding: .4rem 0;
    border-bottom: 2px solid transparent; display: inline-block;
}
.fc-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.fc-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.fc-header-actions { display: flex; align-items: center; gap: 1.1rem; flex: 0 0 auto; }
.fc-phone { text-align: right; line-height: 1.2; text-decoration: none; }
.fc-phone span {
    display: block; font-size: .6rem; font-weight: 800;
    letter-spacing: .16em; text-transform: uppercase; color: var(--body);
}
.fc-phone strong { font-size: 1.08rem; font-weight: 900; color: var(--navy); white-space: nowrap; }
.fc-header-actions .fc-btn { padding: .8rem 1.3rem; }

.fc-nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-left: auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.fc-nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; }
.fc-nav-toggle span::before, .fc-nav-toggle span::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy);
}
.fc-nav-toggle span::before { top: -6px; }
.fc-nav-toggle span::after { top: 6px; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.fc-pagehero { position: relative; background: var(--navy); isolation: isolate; }
.fc-pagehero-bg { position: absolute; inset: 0; z-index: -2; }
.fc-pagehero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-pagehero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(0, 12, 26, .92) 0%, rgba(0, 12, 26, .8) 45%, rgba(0, 16, 34, .5) 100%);
}
/* The 44rem measure lives on the heading, not on this block. Applied here it
   would fight .fc-container's margin-inline: auto and centre the whole hero
   instead of holding the container's left edge. */
.fc-pagehero-inner { padding: clamp(2.75rem, 5.5vw, 4.5rem) 0; }
.fc-pagehero h1 {
    margin: 0; max-width: 44rem; color: #fff; font-weight: 800; line-height: 1.12; letter-spacing: -.015em;
    font-size: clamp(1.8rem, 4vw, 2.9rem); text-transform: uppercase;
}
.fc-pagehero p { margin: 1rem 0 0; color: #d3dfea; font-size: clamp(.98rem, 1.4vw, 1.1rem); max-width: 34rem; }
.fc-crumbs { margin-bottom: .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fc-crumbs a { color: #8cc2e8; text-decoration: none; }
.fc-crumbs a:hover { text-decoration: underline; }
.fc-crumbs span { color: #7e93a8; margin: 0 .45rem; }
.fc-crumbs strong { color: #fff; font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.fc-footer { background: var(--navy); color: #93a8bc; padding: clamp(1.5rem, 2.5vw, 2rem) 0 0; }
.fc-footer a { color: inherit; text-decoration: none; }
.fc-footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: clamp(1.75rem, 4vw, 3rem); padding-bottom: 1.35rem;
}
.fc-footer .fc-brand-text strong { color: #fff; }
.fc-footer .fc-brand-text span { color: #7cb6e0; }
.fc-footer-about p { margin: 1.1rem 0 0; font-size: .88rem; max-width: 24rem; line-height: 1.6; }
.fc-footer h3 {
    color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; margin: 0 0 .5rem;
}
.fc-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .28rem; }
.fc-footer li a { font-size: .89rem; }
.fc-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fc-footer-contact a { display: block; font-size: .89rem; }
/* One line per line of the address, as supplied.
   The spans are set to block rather than left as grid items: relying on the
   grid to blockify inline children put the first two lines together in
   Safari. Line-height carries the spacing now that there is no gap. */
.fc-footer-contact address {
    font-style: normal;
    font-size: .89rem; line-height: 1.55; margin-bottom: .8rem;
}
.fc-footer-contact address span { display: block; }
.fc-footer-contact address a { display: inline; color: #fff; font-weight: 700; }
.fc-footer-contact address a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fc-footer-contact strong { display: block; color: #fff; font-size: 1.15rem; font-weight: 900; margin-bottom: .2rem; }

.fc-footer-accreditations {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
    padding: .5rem 0; border-top: 1px solid rgba(255, 255, 255, .1);
}
.fc-footer-accreditations img { height: 56px; width: auto; background: #fff; padding: 6px 9px; border-radius: 5px; display: block; }
.fc-guarantee {
    display: flex; align-items: center; gap: .7rem;
    font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.fc-guarantee svg { width: 32px; height: 32px; color: #7cb6e0; }

.fc-footer-legal {
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
    padding: .85rem 0 1.1rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem;
}
.fc-footer-legal p { margin: 0; }
.fc-footer-legal nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .fc-header-inner { min-height: 76px; flex-wrap: wrap; }
    .fc-nav-toggle { display: flex; }
    .fc-nav { order: 3; flex-basis: 100%; margin-inline: 0; display: none; }
    .fc-nav[data-open="true"] { display: block; }
    .fc-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: .75rem; border-top: 1px solid var(--line); }
    .fc-nav li + li { border-top: 1px solid var(--line); }
    .fc-nav a { display: block; padding: .85rem .25rem; border-bottom: 0; }
    .fc-header-actions .fc-btn { display: none; }
    .fc-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .fc-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-btn:hover { transform: none; }
    .fc-btn { transition-duration: .01ms; }
}

/* ============================================================
   Carousel
   Scroll-snap track with arrow + dot controls. Works without JS
   (native horizontal scroll); JS only adds the buttons' behaviour.
   Items per view is driven by --per-view so one component serves
   several densities.
   ============================================================ */
.fc-carousel { --gap: 1.1rem; --per-view: 6; }

/* Frame exists so the arrows centre on the track, not on the dots below it. */
.fc-carousel-frame { position: relative; }

.fc-carousel-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* room for card hover lift + focus rings */
    padding: 4px 4px 8px;
    margin: -4px -4px -8px;
}
.fc-carousel-viewport::-webkit-scrollbar { display: none; }
.fc-carousel-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }

.fc-carousel-track {
    display: flex;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.fc-carousel-item {
    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    scroll-snap-align: start;
    display: flex;
}
.fc-carousel-item > * { flex: 1 1 auto; }

.fc-carousel--1 { --per-view: 1; }
.fc-carousel--3 { --per-view: 3; }
.fc-carousel--4 { --per-view: 4; }
.fc-carousel--6 { --per-view: 6; }

/* Arrows sit either side of the track, half in the page gutter so they
   cover as little of the end cards as possible. -20px matches the
   container's narrowest gutter, so they never cause a horizontal scroll. */
.fc-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px; height: 40px;
    /* revealed by JS; without it the track is still swipeable */
    display: none; place-items: center;
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.fc-carousel[data-ready] .fc-carousel-btn { display: grid; }
.fc-carousel-btn svg { width: 17px; height: 17px; }
.fc-carousel-btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: #fff; }
.fc-carousel-btn:disabled { opacity: 0; pointer-events: none; }
.fc-carousel-prev { left: -20px; }
.fc-carousel-next { right: -20px; }
/* for carousels sitting mid-page with no gutter to bleed into */
.fc-carousel--inset .fc-carousel-prev { left: 8px; }
.fc-carousel--inset .fc-carousel-next { right: 8px; }

.fc-carousel-controls { display: flex; align-items: center; justify-content: center; margin-top: 1.5rem; }
.fc-carousel-dots { display: flex; align-items: center; gap: .5rem; }
.fc-carousel-dot {
    width: 9px; height: 9px; padding: 0;
    background: var(--line); border: 0; border-radius: 50%;
    cursor: pointer; transition: background-color .18s ease, width .18s ease;
}
.fc-carousel-dot[aria-current="true"] { background: var(--blue); width: 26px; border-radius: 5px; }

/* On dark bands */
.on-dark .fc-carousel-btn { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
.on-dark .fc-carousel-btn:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.on-dark .fc-carousel-dot { background: rgba(255, 255, 255, .3); }
.on-dark .fc-carousel-dot[aria-current="true"] { background: #fff; }

@media (max-width: 1100px) {
    .fc-carousel--6 { --per-view: 4; }
    .fc-carousel--4 { --per-view: 3; }
    .fc-carousel--3 { --per-view: 2; }
}
@media (max-width: 900px) {
    .fc-carousel--6 { --per-view: 3; }
}
@media (max-width: 760px) {
    .fc-carousel--6 { --per-view: 2; }
    .fc-carousel--4 { --per-view: 2; }
    .fc-carousel--3 { --per-view: 1; }
}
@media (max-width: 520px) {
    .fc-carousel--6 { --per-view: 1; }
    .fc-carousel--4 { --per-view: 1; }
    .fc-carousel--3 { --per-view: 1; }
    /* no gutter to spare at this width */
    .fc-carousel-prev { left: 2px; }
    .fc-carousel-next { right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-carousel-viewport { scroll-behavior: auto; }
}

/* Social links under the footer blurb: Instagram and WhatsApp.
   Facebook to be added once the page address is confirmed. */
.fc-footer .fc-social { display: flex; gap: .75rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.fc-footer .fc-social a {
    display: grid; place-items: center; width: 52px; height: 52px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff;
    transition: background-color .18s ease, border-color .18s ease;
}
.fc-footer .fc-social a:hover { background: var(--blue); border-color: var(--blue); }
.fc-footer .fc-social svg { width: 26px; height: 26px; }
