/* Styles for the home page only. Shared styles (menu, footer, contact form, logo bar) are in assets/site.css */
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; margin: 0; }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* VISUAL ANCHOR (THREAD) */
#thread-container { position: fixed; left: 3%; top: 0; bottom: 0; width: 6px; background: rgba(10, 27, 51, 0.1); z-index: 99; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
body.scrolled #thread-container { opacity: 1; }
#thread-line { position: absolute; top: 0; left: 0; width: 100%; background: var(--orange); height: 0; }
.dot { position: absolute; left: 50%; width: 18px; height: 18px; background: var(--white); border: 4px solid var(--orange); border-radius: 50%; transform: translateX(-50%); z-index: 100; transition: 0.4s ease; visibility: hidden; }
body.scrolled .dot { visibility: visible; }
.dot.active { background: var(--orange); transform: translateX(-50%) scale(1.2); }

/* HERO - Desktop Opaque layout profile */
.hero { position: relative; height: 85vh; display: flex; align-items: center; color: white; padding: 0 10%; overflow: hidden; background-image: linear-gradient(115deg, var(--navy) 48%, var(--orange) 48%, var(--orange) 48.5%, transparent 48.5%), url('../../Hero.jpg'); background-repeat: no-repeat, no-repeat; background-position: center right, center right; background-size: cover, 108%; animation: hero-zoom 26s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { background-size: cover, 108%; } to { background-size: cover, 122%; } }
.hero-content { position: relative; z-index: 3; max-width: 650px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(90deg, var(--orange) 0%, #ff9e6d 50%, var(--orange) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 4s linear infinite; background-size: 200% auto; }

/* HERO ACTIONS ROW */
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.btn-outline { background: transparent; color: white; padding: 18px 45px; font-weight: 700; font-family: 'Montserrat', sans-serif; border: 2px solid rgba(255,255,255,0.55); border-left: 6px solid var(--orange); cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; text-transform: uppercase; font-size: 0.875rem; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.9); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-outline svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* SECTIONS */
section { padding: 100px 8% 100px 15%; box-sizing: border-box; position: relative; width: 100%; }
.section-title { margin-bottom: 50px; text-align: left; }
.accent { width: 50px; height: 5px; background: var(--orange); margin: 20px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.card { background: var(--white); padding: 50px 40px; box-shadow: 0 15px 35px rgba(0,0,0,0.06); border-top: 5px solid var(--navy); transition: transform 0.35s ease, box-shadow 0.35s ease; height: 100%; }
.card:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(0,0,0,0.12); }

/* Staggered reveal timing for grid items */
.card:nth-child(1), .solution-card:nth-child(1), .process-item:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2), .solution-card:nth-child(2), .process-item:nth-child(2) { transition-delay: 0.12s; }
.card:nth-child(3), .solution-card:nth-child(3), .process-item:nth-child(3) { transition-delay: 0.24s; }
.solution-card:nth-child(4), .process-item:nth-child(4) { transition-delay: 0.36s; }
.solution-card:nth-child(5) { transition-delay: 0.48s; }
.solution-card:nth-child(6) { transition-delay: 0.6s; }
.solution-card:nth-child(7) { transition-delay: 0.72s; }
.bg-navy { background: var(--navy); color: white; }
.bg-gray { background: var(--light-gray); }

/* SOLUTIONS */
.solutions-wrapper { width: 100%; padding: 0 8% 0 15%; box-sizing: border-box; }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; width: 100%; padding-bottom: 45px; }
.solution-card { background: #0A1B33; color: #ffffff; padding: 45px; border-left: 5px solid #D86422; display: flex; flex-direction: column; justify-content: center; min-height: 250px; box-sizing: border-box; box-shadow: 0 15px 35px rgba(0,0,0,0.25); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.solution-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.4); }

/* SECTORS */
.sectors-layout { display: flex; gap: 60px; align-items: center; }
.vertical-text { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 4.5rem; font-weight: 700; color: var(--white); opacity: 0.1; font-family: 'Montserrat'; }
.sector-display-image { flex: 1; height: 500px; overflow: hidden; border-left: 10px solid var(--orange); background: #13243d; }
.sector-display-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.accordion-wrapper { flex: 1.2; }
.accordion-item { border-bottom: 1px solid rgba(255, 255, 255, 0.15); padding: 25px 0; cursor: pointer; }
.accordion-header { display: flex; justify-content: space-between; font-family: 'Montserrat'; font-weight: 700; color: var(--white); }
.accordion-content { max-height: 0; overflow: hidden; transition: 0.4s ease; color: #a1b1c5; }
.accordion-item.active .accordion-content { max-height: 150px; padding-top: 15px; }

/* ABOUT FLEX */
.about-flex { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-image { position: relative; width: 100%; }
.about-image img { width: 100%; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 12px solid var(--white); display: block; box-sizing: border-box; }
.about-image::after { content: ""; position: absolute; bottom: -20px; right: -20px; width: 100px; height: 100px; background: var(--orange); z-1; border-radius: 2px; }

/* UK-WIDE COVERAGE BLOCK */
.coverage-block { text-align: center; margin-top: 70px; }
.coverage-block h2 { font-size: 2rem; }
.coverage-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 30px 0 0; }
.coverage-list li { background: rgba(216,100,34,0.08); color: var(--orange); font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.5px; padding: 12px 28px; border: 1px solid rgba(216,100,34,0.25); border-radius: 30px; font-size: 0.95rem; text-transform: uppercase; }
.brand-bar-section { background: var(--orange); color: white; padding: 60px 8% 60px 15%; position: relative; clip-path: polygon(0 3.5%, 100% 0, 100% 100%, 0 100%); }
.brand-bar { display: flex; justify-content: space-between; align-items: center; }
.brand-bar h2 { font-size: 1.8rem; margin: 0; letter-spacing: 1px; }
.btn { background: var(--orange); color: white; padding: 18px 45px; font-weight: 700; border: none; border-left: 6px solid white; cursor: pointer; transition: 0.3s; display: inline-block; text-decoration: none; text-transform: uppercase; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-navy { background: var(--navy) !important; border: none !important; }

@media (max-width: 1024px) {
    #thread-container { display: none; }
    section, footer, .brand-bar-section, .solutions-wrapper { padding: 80px 5% !important; }
    .vertical-text { display: none !important; }
    .sector-display-image { display: block !important; height: 200px; width: 100%; border-left: none; border-top: 5px solid var(--orange); margin-bottom: 25px; }
    .sectors-layout { display: flex; flex-direction: column; width: 100%; gap: 0; }
    .accordion-wrapper { width: 100%; }
    .brand-bar-section { clip-path: none; }

    /* Transparent image overlay effect for handheld mobile sizes as requested */
    .hero { background-image: linear-gradient(rgba(10, 27, 51, 0.55), rgba(10, 27, 51, 0.72)), url('../../Hero.jpg') !important; background-size: cover !important; background-position: center !important; animation: none !important; text-align: center; justify-content: center; height: auto; padding: 120px 5% !important; }
    .hero h1 { font-size: 2.2rem; }
    .about-flex { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .about-image { max-width: 100%; margin: 0 auto; }
    .about-image img { border: 6px solid var(--white); }
    .about-image::after { display: none; }
    .coverage-block { margin-top: 50px; }
    .coverage-block h2 { font-size: 1.5rem; }
    .coverage-list { gap: 10px; margin-top: 20px; }
    .coverage-list li { padding: 10px 20px; font-size: 0.85rem; }
    .btn { width: 100%; box-sizing: border-box; }
    .btn-outline { width: 100%; box-sizing: border-box; justify-content: center; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .brand-bar { flex-direction: column; text-align: center; gap: 20px; }

    @media (max-width: 480px) {
    }
}

/* CUSTOMER REVIEWS - single card that cycles */
#reviews .section-title { text-align: center; }
#reviews .section-title .accent { margin: 20px auto; }
.reviews-slider { display: grid; max-width: 850px; margin: 0 auto; }
.review-card { grid-area: 1 / 1; background: var(--white); color: var(--text); padding: 40px 35px; box-shadow: 0 15px 35px rgba(0,0,0,0.25); border-top: 5px solid var(--orange); display: flex; flex-direction: column; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.review-card.is-current { opacity: 1; visibility: visible; }
.review-card::before { content: "\201C"; font-family: Georgia, serif; font-size: 4rem; line-height: 0.8; color: var(--orange); display: block; margin-bottom: 10px; }
.review-card blockquote { margin: 0 0 25px; flex: 1; }
.review-card blockquote p { margin: 0 0 12px; }
.review-card blockquote p:last-child { margin-bottom: 0; }
.review-card figcaption { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; padding-top: 18px; border-top: 1px solid rgba(10,27,51,0.1); }
.review-dots { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.review-dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); background: transparent; cursor: pointer; transition: 0.3s; }
.review-dots button.is-current { background: var(--orange); border-color: var(--orange); transform: scale(1.2); }

/* Solution cards are now links to each service page */
a.solution-card { text-decoration: none; color: #ffffff; }
a.solution-card .more-link { margin-top: 18px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.solution-card:nth-child(8) { transition-delay: 0.84s; }
.solution-card:nth-child(9) { transition-delay: 0.96s; }

/* Mission: keep the photo a sensible size on wide screens */
#mission .about-flex { max-width: 1400px; align-items: center; }
#mission .about-image img { aspect-ratio: 4 / 3; object-fit: cover; max-height: 480px; }
.home-eyebrow { color: var(--orange); font-weight: 700; margin: 10px 0 0; }

/* Independently Certified (ISO) */
.cert-section { background: var(--light-gray); }
.cert-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; max-width: 1400px; }
.cert-badges { display: inline-flex; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-top: 30px; background: var(--white); padding: 22px 26px; box-shadow: 0 15px 35px rgba(0,0,0,0.06); border-left: 5px solid var(--orange); }
.cert-badges .badge-tall { height: 200px; width: auto; }
.cert-badges .badge-wide { height: 100px; width: auto; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cert-card { background: var(--white); padding: 30px 28px; border-top: 5px solid var(--navy); box-shadow: 0 15px 35px rgba(0,0,0,0.06); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.cert-card:hover { transform: translateY(-6px); box-shadow: 0 25px 45px rgba(0,0,0,0.11); }
.cert-code { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 1px; color: var(--orange); }
.cert-card h3 { font-size: 1rem; color: var(--navy); margin: 8px 0 12px; }
.cert-card p { margin: 0; font-size: 0.93rem; }

/* Our Process uses the same numbered steps as the service pages */
body.home .svc-section { padding: 100px 8% 100px 15%; }
body.home .process-steps .steps { max-width: 1400px; }

@media (max-width: 1024px) {
    .cert-layout { grid-template-columns: 1fr; gap: 40px; }
    .cert-badges { justify-content: center; }
    body.home .svc-section { padding: 80px 5%; }
}
@media (max-width: 600px) {
    .cert-grid { grid-template-columns: 1fr; }
    .cert-badges .badge-tall { height: 160px; }
    .cert-badges .badge-wide { height: 80px; }
}

/* Sector picker links */
.accordion-item.active .accordion-content { max-height: 260px; }
.accordion-content .sector-link { display: inline-block; margin-top: 10px; color: var(--orange); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.accordion-content .sector-link:hover { color: #ff9e6d; }
