/* =====================================================================
   SITE INSIGHT — MAIN STYLESHEET
   ---------------------------------------------------------------------
   One stylesheet for all three pages.
   To change a brand color site-wide, edit the values in :root below.
   ===================================================================== */

:root {
    /* ---- Brand colors ---- */
    --navy:        #192640;  /* header, sectors band, footer top bar   */
    --navy-text:   #0B2842;  /* page titles                            */
    --blue:        #164F83;  /* bullets, project links, Jeff's name    */
    --orange:      #D35A1A;  /* links, title rules, active menu item   */
    --green:       #5EA246;  /* "Send Message" button                  */
    --green-hover: #0A5818;
    --gray:        #6D6E70;  /* footer background                      */
    --light-gray:  #CFD2D7;  /* testimonial band                       */
    --pale-blue:   #EBEEF4;  /* contact details box                    */
    --text:        #212529;  /* body copy                              */
    --white:       #FFFFFF;
    --black:       #000000;

    /* ---- Fonts ---- */
    --font-heading: 'Montserrat', Arial, sans-serif;
    --font-body:    'Open Sans', Arial, sans-serif;

    /* ---- Vertical spacing ---- */
    --space-1: 4rem;       /* 64px  */
    --space-2: 6.333rem;   /* 101px */
    --space-3: 9.0625rem;  /* 145px */
}
@media (max-width: 767px) {
    :root {
        --space-1: 2.5rem;
        --space-2: 3.5rem;
    }
}

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

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

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;   /* 18px on phones; grows on larger screens below */
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 .5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    text-rendering: geometricPrecision;
}
h1, h2, h3 { text-transform: uppercase; }
h2 { font-size: 1.4167em; }
h3 { font-size: 1.3333em; font-weight: 600; letter-spacing: .01em; }
h4 { font-size: 1em; font-weight: 600; letter-spacing: .01em; }

p {
    margin: 0 0 1.6667em;
    text-rendering: geometricPrecision;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

strong { font-weight: 700; }

/* Square bullets used in all content lists */
ul {
    list-style: none;
    padding-left: 0;
    margin: 5px 0 1rem;
}
ul li { display: flex; }
ul li::before {
    content: "\25AA";
    margin-right: .5em;
    color: var(--blue);
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =====================================================================
   LAYOUT GRID  (simple 12-column grid, stacks on small screens)
   ===================================================================== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.col { padding: 0 15px; width: 100%; }

@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  {
    .container { max-width: 720px; }
    .col-md-4 { width: 33.3333%; }
}
@media (min-width: 992px)  {
    .container { max-width: 960px; }
    .col-lg-4 { width: 33.3333%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.3333%; }
    .col-lg-8 { width: 66.6667%; }
    .offset-lg-1 { margin-left: 8.3333%; }
}
@media (min-width: 1200px) {
    .container { max-width: 1170px; }
    .col-xl-3 { width: 25%; }
}

/* Larger base text on bigger screens (matches the original site) */
@media (min-width: 768px) { body { font-size: 1.3125rem; } }  /* 21px */
@media (min-width: 992px) { body { font-size: 1.5rem; } }     /* 24px */

/* =====================================================================
   HEADER & NAVIGATION
   ===================================================================== */
.site-header {
    position: relative;
    background: var(--navy);
}
.site-header .container { max-width: 1480px; }

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.site-logo { display: block; line-height: 0; }
.site-logo img { width: 190px; height: auto; }

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
}
.main-nav li::before { display: none; }
.main-nav a {
    display: block;
    padding: .5rem 2.35rem;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.8;
}
.main-nav li:last-child a { padding-right: 0; }
.main-nav a:hover,
.main-nav a.current { color: var(--orange); }

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--white);
    line-height: 0;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible { outline: 2px solid var(--orange); }

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        width: 100%;
        padding-bottom: 1rem;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a,
    .main-nav li:last-child a { padding: .4rem 0; }
    .header-row { flex-wrap: wrap; }
}

@media (min-width: 768px) {
    .header-row { height: 123px; }
    .home .hero { margin-top: -7px; }
    .site-logo img { width: 272px; }
    .main-nav { margin-right: 30px; }
    .main-nav a { padding-left: .65em; padding-right: .65em; }
}
@media (min-width: 880px) {
    .main-nav a { padding-left: 1em; padding-right: 1em; }
}
@media (min-width: 1200px) {
    .main-nav a { padding-left: 2.35rem; padding-right: 2.35rem; }
    .site-logo { margin-left: 30px; }
}

/* =====================================================================
   PAGE CONTENT WRAPPER
   ===================================================================== */
.site-content { padding-top: var(--space-2); }
.home .site-content { padding-top: 0; }
@media (min-width: 768px) { .site-content { padding-top: var(--space-3); } }

/* =====================================================================
   PAGE TITLE  (centered title between two orange rules)
   ===================================================================== */
.page-header {
    width: 91.6667%;
    margin: 0 auto calc(var(--space-1) + 4px);
}
.page-header h2 {
    margin-bottom: .5rem;
    padding: 17px 0;
    border-top: 3px solid var(--orange);
    border-bottom: 3px solid var(--orange);
    color: var(--navy-text);
    font-size: 1.5834em;
    font-weight: 700;
    text-align: center;
}
@media (min-width: 768px)  { .page-header { width: 50%; } }
@media (min-width: 992px)  { .page-header { width: 33.3333%; padding: 0 15px; } }

/* On the home page the title tucks up under the hero image */
.home .page-header {
    position: relative;
    z-index: 0;
    margin-top: -12px;
    margin-bottom: 0;
}
.home .page-header h2 { margin-bottom: 0; }

/* =====================================================================
   HOME — HERO BANNER
   ===================================================================== */
.hero {
    position: relative;
    z-index: 1;
    background: var(--blue);
    line-height: 0;
}
.hero img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: 70% center;
}
.hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}
.hero-text .container { max-width: 1480px; }
.hero h1 {
    max-width: 50%;
    min-width: 260px;
    margin: 0;
    padding: 1em 0;
    color: var(--white);
    font-size: 1.5em;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
@media (min-width: 768px) {
    .hero h1 { padding-left: 17px; }
}
@media (min-width: 540px) {
    .hero img { height: 268px; }
    .hero h1 { font-size: 2em; }
}
@media (min-width: 768px) {
    .hero img { height: auto; object-fit: fill; }
}
@media (min-width: 1300px) {
    .hero h1 { font-size: 2.5em; }
}

/* =====================================================================
   TWO-COLUMN TEXT SECTIONS  (heading on left, text on right)
   ===================================================================== */
.two-col { padding: var(--space-1) 0; }
.two-col h2 {
    font-size: 1.3333em;
    font-weight: 700;
}
.two-col ul li::before { margin-top: -2px; }

/* Heavy black rule above a section */
.top-border { padding-top: 0; }
.top-border > .container > .row {
    position: relative;
    padding-top: calc(var(--space-1) + 5px);
}
.top-border > .container > .row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    border-top: 5px solid var(--black);
}

/* Orange "jump to" list on the About page */
ul.alternate-list { margin-top: 2em; }
ul.alternate-list li {
    margin-bottom: .5rem;
    font-family: var(--font-heading);
    font-size: .8333em;
    text-transform: uppercase;
    line-height: 1.5;
}
ul.alternate-list li::before {
    margin-right: 1em;
    margin-top: 0;
    color: var(--orange);
}
ul.alternate-list a { text-decoration: underline; }

/* Leadership */
h2.alternate-heading {
    margin-bottom: .85em;
    color: var(--blue);
    font-size: 1.4167em;
    font-weight: 500;
    text-transform: none;
}
.leadership-heading { margin-bottom: 1.75em; }
.leadership-img { display: block; margin-bottom: 1em; }

/* =====================================================================
   HOME — SECTORS (dark band with icons)
   ===================================================================== */
.sectors {
    padding: var(--space-2) 0;
    background: var(--navy);
}
.sectors .page-header { margin-top: 0; margin-bottom: var(--space-1); }
.sectors .page-header h2 { color: var(--white); }

.icon-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em 0;
    color: var(--white);
}
.icon-block:first-child { padding-top: 0; }
.icon-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    height: 3px;
    background: var(--white);
}
.icon-block:last-child::after { display: none; }
.icon-block .icon-img {
    display: flex;
    align-items: flex-end;
    height: 135px;
    margin-bottom: 50px;
}
.icon-block h4 { font-size: 1.5em; }

@media (min-width: 992px) {
    .icon-block { padding: 0 .5em 2em; }
    .icon-block::after { display: none; }
}
@media (min-width: 1200px) {
    .icon-block { padding: 0 .5em; }
    .icon-block::after {
        display: block;
        top: 82px;
        right: 0;
        bottom: auto;
        width: 3px;
        height: 191px;
    }
    .icon-block:last-child::after { display: none; }
}

/* =====================================================================
   HOME — TESTIMONIAL SLIDER
   ===================================================================== */
.testimonials {
    padding: var(--space-1) 0 1px;
    background: var(--light-gray);
}
.slider {
    position: relative;
    width: 100%;
}
.slider-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.slide {
    display: none;
    position: relative;
    width: 100%;
    padding: 1em 1em;
    backface-visibility: hidden;
    transition: transform .6s ease-in-out;
}
.slide.active,
.slide.is-next,
.slide.is-prev { display: block; }
.slide.is-next,
.slide.is-prev { position: absolute; top: 0; left: 0; }
.slide.is-next { transform: translateX(100%); }
.slide.is-prev { transform: translateX(-100%); }
.slide.is-next.go-left,
.slide.is-prev.go-right { transform: translateX(0); }
.slide.active.go-left  { transform: translateX(-100%); }
.slide.active.go-right { transform: translateX(100%); }

.slide p {
    margin-bottom: .5em;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
}
.slide p.testimonial-author {
    margin-top: 2.35em;
    font-size: .8rem;
    font-weight: 400;
}

.slider-dots {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 10px;
    z-index: 5;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.slider-dots li { line-height: 0; }
.slider-dots li::before { display: none; }
.slider-dots button {
    display: block;
    width: 40px;
    height: 10px;
    margin: 0 15px;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--black);
    opacity: .5;
    cursor: pointer;
    transition: opacity .6s ease;
}
.slider-dots button.active {
    background: var(--navy);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .slide { transition: none; }
}
@media (min-width: 768px) {
    .slide {
        padding: var(--space-1) var(--space-1) var(--space-1) var(--space-1);
    }
    .slide p { font-size: 1em; }
    .slide p.testimonial-author { font-size: 1em; }
}

/* =====================================================================
   ABOUT — CLIENT TYPES (colored labels)
   ===================================================================== */
.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-1);
}
.client-label { width: 210px; height: 60px; }
.client-item h4 {
    margin-top: 30px;
    font-size: .916em;
    font-weight: 600;
    text-align: center;
}

/* =====================================================================
   ABOUT — PROJECTS / CASE STUDIES
   ===================================================================== */
.case-studies {
    margin-bottom: -1.6667em;
    padding-bottom: var(--space-1);
}
.project-item a {
    display: block;
    margin-bottom: 5px;
    color: var(--blue);
    text-decoration: underline;
    line-height: 1.5em;
}
.project-item a:hover { color: var(--orange); }
.project-item a,
.project-item p { font-size: .8333em; }
.project-item p { margin-bottom: 1.6667em; }

/* Full-width photo above the footer */
.footer-banner { line-height: 0; }
.footer-banner img { width: 100%; }

/* =====================================================================
   CONTACT — FORM & DETAILS
   ===================================================================== */
.contact-section { padding-bottom: 89px; }

.contact-form .field { margin-top: 47px; }
.contact-form .field-textarea { margin-top: 43px; }
.contact-form .field:first-child { margin-top: 0; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--black);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: .8333em;
    text-transform: uppercase;
    line-height: 1.5;
}
.contact-form textarea {
    display: block;
    width: 100%;
    height: 320px;
    padding: 10px;
    border: 1px solid var(--black);
    border-radius: 0;
    font-family: var(--font-heading);
    font-size: .8333em;
    text-transform: uppercase;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--orange); }

.contact-form ::placeholder {
    color: var(--black);
    font-family: var(--font-heading);
    text-transform: uppercase;
    opacity: 1;
}
.contact-form label.field-label {
    display: block;
    margin-bottom: 15px;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: .8333em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Spam trap — hidden from people, bots fill it in */
.contact-form .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-send {
    margin-top: 45px;
    padding: 23px 5.25em 23px 1.5em;
    border: 0;
    background-color: var(--green);
    box-shadow: #cccccc 0 2px 5px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5;
    cursor: pointer;
}
.btn-send:hover { background-color: var(--green-hover); }

.form-message {
    margin-bottom: 1.5rem;
    padding: .75em 1em;
    font-weight: 600;
}
.form-message.success { background: #E4F2DF; color: #2F5E22; }
.form-message.error   { background: #F9E1D6; color: #8A3410; }

.contact-details {
    margin-top: 3rem;
    padding: 1em 1.5em;
    background: var(--pale-blue);
}
.contact-details h4 { margin-bottom: .5rem; }
.contact-details p:last-child { margin-bottom: 0; }
.contact-details a { color: inherit; }

.directions-link {
    display: flex;
    align-items: center;
    color: var(--blue) !important;
    text-decoration: underline;
}
.directions-link:hover { color: var(--orange) !important; }
.directions-link::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background: url("../images/directions-arrow.png") no-repeat left center;
    background-size: contain;
}

@media (min-width: 768px) {
    .contact-section { padding-top: var(--space-1); }
}
@media (min-width: 992px) {
    .contact-form { margin-top: 55px; }
    .contact-details {
        margin-top: -4px;
        padding: 66px 1.5em 7px;
    }
}

/* Map */
.map { line-height: 0; background: #E5E3DF; }
.map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}
@media (min-width: 768px) {
    .map iframe { height: 49.6vw; max-height: 960px; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    padding-top: var(--space-1);
    border-top: 30px solid var(--navy);
    background: var(--gray);
    color: var(--white);
}
.site-footer h3 {
    margin-bottom: 70px;
    font-weight: 600;
}
.site-footer h4 { margin-bottom: 27px; }
.site-footer p {
    font-weight: 300;
    line-height: 1.5;
}
.site-footer a { color: var(--white); text-decoration: underline; }

.subfooter {
    margin-top: var(--space-1);
    padding: var(--space-1) 0;
    border-top: 2px solid var(--white);
}
.subfooter .row { align-items: flex-start; }
.subfooter h2 {
    margin-bottom: .5rem;
    font-size: 1.4167em;
    font-weight: 600;
    text-transform: none;
}
.subfooter p {
    margin: 15px 0 1.6667rem;
    font-size: .75em;
}
.footer-logo img { width: 272px; }

@media (min-width: 768px) {
    .site-footer { padding-top: var(--space-2); }
}
@media (min-width: 992px) {
    .subfooter .col-lg-7 { width: 58.3333%; }
    .subfooter .col-lg-5 { width: 41.6667%; }
    .footer-logo { text-align: right; }
}
