/*
 * WG Installations Ltd - Stylesheet
 * Built by Liam Foster
 */

:root {
    --wg-primary: #2E63AF;
    --wg-primary-dark: #1f4480;
    --wg-primary-darker: #0F2A4A;
    --wg-accent: #FF6B35;
    --wg-ink: #0E1A2B;
    --wg-text: #2A3441;
    --wg-muted: #6B7785;
    --wg-line: #E5E9EF;
    --wg-bg: #FFFFFF;
    --wg-bg-soft: #F7F9FC;
    --wg-bg-deep: #0E1A2B;
    --wg-radius: 4px;
    --wg-radius-lg: 12px;
    --wg-shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.04), 0 1px 3px rgba(15, 42, 74, 0.06);
    --wg-shadow: 0 4px 12px rgba(15, 42, 74, 0.06), 0 2px 4px rgba(15, 42, 74, 0.04);
    --wg-shadow-lg: 0 20px 40px -12px rgba(15, 42, 74, 0.18);
    --wg-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Google Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--wg-text);
    background-color: var(--wg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
   font-family: "Google Sans", sans-serif;
    color: var(--wg-ink);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
a { color: var(--wg-primary); text-decoration: none; transition: color var(--wg-transition); }
a:hover { color: var(--wg-primary-dark); }

/* ------- Eyebrow / small-caps label ------- */
.eyebrow {
    font-family: "Google Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--wg-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--wg-primary);
    display: inline-block;
}

/* ------- Top bar ------- */
.topbar {
    background: var(--wg-bg-deep);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 0.55rem 0;
    border-bottom: 3px solid var(--wg-primary);
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: #fff; }
.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.5rem;
}
.topbar-info svg { width: 14px; height: 14px; opacity: 0.7; }
.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 0.25rem;
    border-radius: 50%;
    transition: background var(--wg-transition);
}
.topbar-social a:hover { background: rgba(255,255,255,0.12); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ------- Header / Nav ------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--wg-line);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--wg-shadow-sm);
}
.navbar-brand img {
    height: 96px;
    width: auto;
}
.navbar-brand-text {
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--wg-ink);
    line-height: 1.1;
    margin-left: 0.75rem;
}
.navbar-brand-text small {
    display: block;
    font-family: "Google Sans", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--wg-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}
.site-nav .nav-link {
    color: var(--wg-ink) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--wg-transition);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--wg-primary) !important;
}
.site-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: -2px;
    height: 2px;
    background: var(--wg-primary);
}
.nav-cta {
    background: var(--wg-primary);
    color: #fff !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: var(--wg-radius);
    margin-left: 0.5rem;
    transition: all var(--wg-transition);
}
.nav-cta:hover {
    background: var(--wg-primary-darker);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--wg-shadow);
}
.nav-cta::after { display: none !important; }

/* ------- Buttons ------- */
.btn {
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--wg-radius);
    transition: all var(--wg-transition);
    letter-spacing: 0.02em;
    border: 2px solid transparent;
}
.btn-primary,
.btn-wg {
    background: var(--wg-primary);
    border-color: var(--wg-primary);
    color: #fff;
}
.btn-primary:hover,
.btn-wg:hover {
    background: var(--wg-primary-darker);
    border-color: var(--wg-primary-darker);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--wg-shadow);
}
.btn-outline-wg {
    background: transparent;
    border-color: var(--wg-ink);
    color: var(--wg-ink);
}
.btn-outline-wg:hover {
    background: var(--wg-ink);
    color: #fff;
    transform: translateY(-2px);
}
.btn-light-wg {
    background: #fff;
    color: var(--wg-ink);
    border-color: #fff;
}
.btn-light-wg:hover {
    background: var(--wg-bg-soft);
    color: var(--wg-ink);
    transform: translateY(-2px);
}
.btn-arrow::after {
    content: '→';
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform var(--wg-transition);
}
.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ------- Hero ------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0E1A2B 0%, #1B2F4E 0%, #2E63AF 30%);
    color: #fff;
    padding: 6rem 0 7rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(46,99,175,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,107,53,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.wginstallations.co.uk/wp-content/uploads/2021/03/wg-do-office-furniture-installations.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    mix-blend-mode: luminosity;
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero .eyebrow {
    color: #FFB793;
}
.hero .eyebrow::before {
    background: #FFB793;
}
.hero h1 {
    color: #fff;
    font-weight: 600;
    margin: 1rem 0 1.5rem;
    max-width: 14ch;
}
.hero h1 .accent {
    font-style: italic;
    color: #444;
    font-weight: 700;
}
.hero-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-meta {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
}
.hero-meta-item .num {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    display: block;
}
.hero-meta-item .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.4rem;
    display: block;
}

/* ------- Page banner (inner pages) ------- */
.page-banner {
    background: linear-gradient(135deg, #0E1A2B 0%, #1B2F4E 0%, #2E63AF 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(255,107,53,0.12) 0%, transparent 60%);
}
.page-banner > .container { position: relative; z-index: 2; }
.page-banner h1 {
    color: #fff;
    margin: 0.75rem 0 0.75rem;
}
.page-banner .eyebrow {
    color: #FFB793;
}
.page-banner .eyebrow::before {
    background: #FFB793;
}
.breadcrumb-trail {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-top: 1rem;
}
.breadcrumb-trail a {
    color: rgba(255,255,255,0.85);
}
.breadcrumb-trail a:hover { color: #fff; }
.breadcrumb-trail .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ------- Sections ------- */
.section {
    padding: 5rem 0;
}
.section-soft {
    background: var(--wg-bg-soft);
}
.section-dark {
    background: var(--wg-bg-deep);
    color: rgba(255,255,255,0.85);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #FFB793; }
.section-dark .eyebrow::before { background: #FFB793; }

.section-heading {
    margin-bottom: 3rem;
}
.section-heading h2 {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}
.section-heading p {
    color: var(--wg-muted);
    font-size: 1.05rem;
    max-width: 620px;
}

/* ------- Service cards ------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--wg-line);
    border-radius: var(--wg-radius-lg);
    padding: 2rem;
    transition: all var(--wg-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--wg-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--wg-transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow-lg);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(46,99,175,0.08);
    border-radius: var(--wg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--wg-primary);
}
.service-card-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--wg-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}
.service-card-link {
    color: var(--wg-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.service-card-link::after {
    content: '→';
    transition: transform var(--wg-transition);
}
.service-card:hover .service-card-link::after {
    transform: translateX(4px);
}

/* ------- Featured service block (alternating image+text) ------- */
.feature-block {
    padding: 2rem 0;
}
.feature-block + .feature-block {
    border-top: 1px solid var(--wg-line);
    margin-top: 1rem;
}
.feature-block-img {
    border-radius: var(--wg-radius-lg);
    overflow: hidden;
    box-shadow: var(--wg-shadow);
    position: relative;
}
.feature-block-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 600ms ease;
}
.feature-block:hover .feature-block-img img {
    transform: scale(1.03);
}
.feature-block h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.feature-block ul.checks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.feature-block ul.checks li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
    color: var(--wg-text);
}
.feature-block ul.checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 18px;
    height: 18px;
    background: var(--wg-primary);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/></svg>") no-repeat center / contain;
}

/* ------- Stats strip ------- */
.stats-strip {
    background: var(--wg-bg-deep);
    color: #fff;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(46,99,175,0.25) 0%, transparent 50%);
}
.stats-strip > .container { position: relative; z-index: 2; }
.stat-item {
    text-align: center;
    padding: 1rem;
}
.stat-item .num {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    display: block;
}
.stat-item .num .plus {
    color: var(--wg-accent);
    font-style: italic;
}
.stat-item .label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ------- Gallery strip ------- */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}
.gallery-strip img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease, filter 400ms ease;
    filter: grayscale(20%);
}
.gallery-strip img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    z-index: 2;
    position: relative;
}
@media (max-width: 768px) {
    .gallery-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ------- CTA strip ------- */
.cta-strip {
    background: linear-gradient(135deg, var(--wg-primary) 0%, var(--wg-primary-darker) 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.cta-strip > .container { position: relative; z-index: 2; }
.cta-strip h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-strip p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ------- Trust / clients strip ------- */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--wg-line);
    border-bottom: 1px solid var(--wg-line);
}
.trust-item {
    color: var(--wg-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trust-item svg {
    width: 18px;
    height: 18px;
    fill: var(--wg-primary);
}

/* ------- Contact form ------- */
.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--wg-radius-lg);
    box-shadow: var(--wg-shadow);
    border: 1px solid var(--wg-line);
}
.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wg-ink);
    margin-bottom: 0.4rem;
    display: block;
}
.contact-form .form-control {
    border: 1.5px solid var(--wg-line);
    border-radius: var(--wg-radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color var(--wg-transition), box-shadow var(--wg-transition);
}
.contact-form .form-control:focus {
    border-color: var(--wg-primary);
    box-shadow: 0 0 0 3px rgba(46,99,175,0.12);
    outline: none;
}
.contact-info-card {
    background: var(--wg-bg-deep);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--wg-radius-lg);
    height: 100%;
}
.contact-info-card h3 { color: #fff; margin-bottom: 1.5rem; }
.contact-info-card .info-block {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.contact-info-card .info-icon {
    width: 40px;
    height: 40px;
    background: rgba(46,99,175,0.2);
    border-radius: var(--wg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFB793;
}
.contact-info-card .info-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contact-info-card .info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.25rem;
}
.contact-info-card .info-value {
    color: #fff;
    font-weight: 500;
}
.contact-info-card .info-value a { color: #fff; }
.contact-info-card .info-value a:hover { color: #FFB793; }

/* ------- Footer ------- */
.site-footer {
    background: var(--wg-bg-deep);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 0;
    font-size: 0.9rem;
}
.site-footer h4 {
    color: #fff;
    font-family: "Google Sans", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.site-footer ul {
    list-style: none;
    padding: 0;
}
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer ul li a {
    color: rgba(255,255,255,0.7);
    transition: color var(--wg-transition), padding var(--wg-transition);
    display: inline-block;
}
.site-footer ul li a:hover {
    color: #fff;
    padding-left: 4px;
}
.site-footer p { color: rgba(255,255,255,0.7); }
.footer-brand {
    font-family: "Google Sans", sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: #fff; }

/* ------- Page content prose ------- */
.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose p, .prose li {
    color: var(--wg-text);
    line-height: 1.75;
}
.prose blockquote {
    border-left: 3px solid var(--wg-primary);
    background: var(--wg-bg-soft);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-family: "Google Sans", sans-serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--wg-ink);
    border-radius: 0 var(--wg-radius) var(--wg-radius) 0;
}

/* ------- Animations ------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUp 700ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 220ms; }
.animate-delay-3 { animation-delay: 340ms; }

/* ------- Responsive tweaks ------- */
@media (max-width: 991px) {
    .hero { padding: 4rem 0 5rem; }
    .hero-meta { gap: 1.5rem; margin-top: 2.5rem; }
    .section { padding: 3.5rem 0; }
    .topbar-info span { display: block; margin: 0.15rem 0; }
    .navbar-brand-text { display: none; }
}
@media (max-width: 575px) {
    .stat-item .num { font-size: 2.25rem; }
    .contact-form, .contact-info-card { padding: 1.75rem; }
}
