html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
    overflow-x: hidden;
}

body {
  margin-bottom: 60px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 90px;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #e9e8e6;
    color: #111;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #090b0d;
    border-bottom: 2px solid rgba(255, 193, 7, 0.75);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f4f4f4;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8d042, #ffb300);
    color: #111;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-line-1 {
    font-size: clamp(1.4rem, 2vw, 2.6rem);
    color: #f4f4f4;
}

.brand-line-2 {
    font-size: 0.78rem;
    color: #f4d24d;
    letter-spacing: 0.18em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #f6c21b;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.quote-button,
.gold-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 10px;
    border: 2px solid #f6c21b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
}

.quote-button,
.gold-button {
    background: linear-gradient(180deg, #f7d14c, #f1b000);
    color: #101010;
    box-shadow: 0 6px 14px rgba(246, 194, 27, 0.25);
}

.quote-button:hover,
.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(246, 194, 27, 0.35);
}

.secondary-button {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.ghost-button {
    background: rgba(9, 11, 13, 0.7);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
}

.ghost-button:hover {
    border-color: #f6c21b;
    color: #f6c21b;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
}

.hero-banner {
    min-height: 620px;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: flex;
    align-items: center;
    min-height: 620px;
}

.hero-copy {
    padding: 80px 0 60px;
    color: white;
    max-width: 620px;
}

.hero-copy h1 {
    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.05em;
    margin: 0 0 22px;
    text-transform: uppercase;
    color: #fff;
}

.hero-copy h1 span {
    display: block;
    color: #f6c21b;
}

.hero-copy p {
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 500px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.services-section {
    background: #090b0d;
    padding: 70px 0 50px;
    color: white;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 14px;
    color: #f4f1ee;
    text-transform: uppercase;
}

.section-title.centered {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.title-flank {
    display: inline-block;
    width: 46px;
    height: 3px;
    background: #f6c21b;
    border-radius: 2px;
}

.section-lead {
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    margin: 0 auto 34px;
    max-width: 640px;
}

.eyebrow {
    display: inline-block;
    color: #f6c21b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(246, 194, 27, 0.32);
    border-radius: 18px;
    padding: 30px 22px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(246, 194, 27, 0.85);
    background: rgba(246, 194, 27, 0.05);
}

.service-icon,
.feature-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(246, 194, 27, 0.13);
    color: #f7ca45;
    font-size: 2rem;
    margin-bottom: 20px;
    border: 1px solid rgba(246, 194, 27, 0.6);
}

.service-card h3,
.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.service-card p,
.feature-card p,
.about-copy p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    font-size: 1rem;
}

.about-section {
    background: #ffffff;
    padding: 80px 0 0;
    color: #111111;
}

.about-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.about-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-copy .eyebrow {
    color: #f6c21b;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.about-copy h2 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #111111;
}

.about-copy .accent-line {
    width: 50px;
    height: 4px;
    background: #f6c21b;
    border-radius: 2px;
    margin-bottom: 22px;
}

.about-copy p {
    color: #333a42;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 520px;
    margin: 0;
}

.about-photo-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* About content now lives on the dark services-section background */
#about-us .about-copy h2 {
    color: #ffffff;
}

#about-us .about-copy p {
    color: rgba(255, 255, 255, 0.78);
}

#about-us .photo-blend-overlay {
    background: linear-gradient(90deg, #090b0d 0%, rgba(9, 11, 13, 0.95) 12%, rgba(9, 11, 13, 0.4) 38%, rgba(9, 11, 13, 0) 100%);
}

#about-us .pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(246, 194, 27, 0.32);
    box-shadow: none;
}

#about-us .pillar-card:hover {
    border-color: #f6c21b;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

#about-us .pillar-title-wrap h3 {
    color: #ffffff;
}

#about-us .pillar-title-wrap p {
    color: rgba(255, 255, 255, 0.72);
}

#about-us .about-pillars-grid {
    margin-bottom: 0;
}

.about-photo-main {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.photo-blend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 12%, rgba(255, 255, 255, 0.4) 38%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 55px;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #f6c21b;
}

.pillar-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
}

.pillar-icon-box {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6c21b;
    font-size: 2.3rem;
}

.pillar-title-wrap h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #0d0e10;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pillar-title-wrap p {
    margin: 0;
    font-size: 0.98rem;
    color: #4a515a;
    line-height: 1.5;
    font-weight: 500;
}

/* Services content now lives on the light about-section background */
#services .section-title {
    color: #111111;
}

#services .section-lead {
    color: rgba(17, 17, 17, 0.68);
}

#services .service-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

#services .service-card:hover {
    border-color: #f6c21b;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

#services .service-card p {
    color: #4a515a;
}

#services .services-grid {
    margin-bottom: 55px;
}

.about-contact-bar {
    background: #090b0d;
    padding: 22px 0;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-bar-item i {
    color: #f6c21b;
    font-size: 1.25rem;
}

.contact-bar-item:hover {
    color: #f6c21b;
}

.contact-bar-divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.18);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.stat-box {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 16px;
    padding: 20px 18px;
    min-height: 118px;
}

.stat-value {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #111;
    letter-spacing: -0.05em;
}

.stat-label {
    margin-top: 8px;
    font-size: 0.82rem;
    color: rgba(17,17,17,0.72);
    text-transform: uppercase;
    line-height: 1.4;
}

.why-section {
    background: #090b0d;
    color: white;
    padding: 70px 0 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px 18px;
    min-height: 240px;
}

.feature-card p {
    color: rgba(255,255,255,0.75);
}

.engage-section {
    background: #090b0d;
    padding: 70px 0 60px;
    color: white;
}

.engage-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 24px;
    align-items: stretch;
}

.company-card,
.quote-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(246, 194, 27, 0.28);
    border-radius: 22px;
    padding: 34px 30px;
}

.company-card h3,
.quote-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #ffffff;
}

.company-card .lead,
.quote-card .lead {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    margin: 0 0 20px;
    line-height: 1.6;
}

.company-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.company-line i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f6c21b;
    color: #111;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.social-row {
    display: flex;
    gap: 12px;
    margin: 20px 0 8px;
}

.social-row a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(246, 194, 27, 0.14);
    color: #f6c21b;
    border: 1px solid rgba(246, 194, 27, 0.5);
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.social-row a:hover {
    background: #f6c21b;
    color: #111;
    transform: translateY(-2px);
}

.contact-form,
.quote-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-group {
    display: flex;
    align-items: center;
}

.engage-section input,
.engage-section textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    min-height: 52px;
    padding: 0 16px;
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.engage-section input::placeholder,
.engage-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.engage-section textarea {
    min-height: 96px;
    padding-top: 14px;
    resize: vertical;
}

.engage-section input:focus,
.engage-section textarea:focus {
    outline: none;
    border-color: #f6c21b;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(246, 194, 27, 0.16);
}

.engage-section input[type="date"] {
    color-scheme: dark;
}

.full-width {
    width: 100%;
}

.large-button {
    min-height: 58px;
    margin-top: 6px;
}

.toast-success {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f7a3d;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    max-width: 360px;
    animation: toast-in 0.35s ease;
}

.toast-success i {
    font-size: 1.3rem;
}

.toast-close {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    margin-left: 6px;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.site-footer {
    background: #090b0d;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: white;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.2fr;
    gap: 26px;
    padding: 44px 0 22px;
}

.footer-brand p {
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 260px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    margin: 0 0 6px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.footer-column a,
.footer-contact div {
    color: rgba(255,255,255,0.76);
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact {
    display: grid;
    gap: 12px;
}

.copyright-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 18px 12px 28px;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-grid,
    .about-top-grid,
    .engage-grid,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .photo-blend-overlay {
        display: none;
    }

    .about-pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 0 16px;
    }

    .contact-bar-divider {
        display: none;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        gap: 10px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-line-1 {
        font-size: 1.3rem;
    }

    .quote-button {
        display: none;
    }

    .hero-copy h1 {
        font-size: 2.8rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .about-copy h2 {
        font-size: 2.1rem;
    }

    .toast-success {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

/* Base: all reveal targets start hidden */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.service-card,
.feature-card,
.pillar-card,
.stat-box,
.about-copy,
.about-photo-wrap,
.company-card,
.quote-card,
.section-title,
.section-lead {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Default (up) offset */
.reveal,
.reveal-up,
.service-card,
.feature-card,
.stat-box,
.about-copy,
.company-card,
.quote-card,
.section-title,
.section-lead {
    transform: translateY(28px);
}

.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px);  }
.reveal-scale { transform: scale(0.94);       }
.about-photo-wrap { transform: translateX(32px); }

/* Visible state */
.reveal.is-visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.service-card.is-visible,
.feature-card.is-visible,
.pillar-card.is-visible,
.stat-box.is-visible,
.about-copy.is-visible,
.about-photo-wrap.is-visible,
.company-card.is-visible,
.quote-card.is-visible,
.section-title.is-visible,
.section-lead.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger grid children */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.13s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.21s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.29s; }

.about-pillars-grid .pillar-card:nth-child(1) { transition-delay: 0.05s; }
.about-pillars-grid .pillar-card:nth-child(2) { transition-delay: 0.14s; }
.about-pillars-grid .pillar-card:nth-child(3) { transition-delay: 0.23s; }

.features-grid .feature-card:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.13s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.21s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.29s; }

.stats-grid .stat-box:nth-child(1) { transition-delay: 0.05s; }
.stats-grid .stat-box:nth-child(2) { transition-delay: 0.12s; }
.stats-grid .stat-box:nth-child(3) { transition-delay: 0.19s; }
.stats-grid .stat-box:nth-child(4) { transition-delay: 0.26s; }

/* Graceful fallback: if JS is disabled, show everything */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale,
    .service-card, .feature-card, .pillar-card, .stat-box, .about-copy, .about-photo-wrap,
    .company-card, .quote-card, .section-title, .section-lead {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}