/* ============================================================
   FOREGRANDA CONSULTING — Brand Layer  v2
   Palette + typography taken from BRANDBOARD.pdf and the
   official logo SVGs in images/LOGOS/ (single source of truth):
     navy  #0C1928 · amber #F7A614 · cream #FFFDEC
     light green #CFE2AC · light blue #CCE9F5
   Load this file AFTER style.css and responsive.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* Display face supplied by the client (fonts/meigan.otf, iFonts license) */
@font-face{
    font-family: 'Meigan';
    src: url('../fonts/meigan.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root{
    /* Brand palette (BRANDBOARD.pdf / logo SVGs) */
    --fg-navy:        #0C1928;  /* primary dark — headers, footer, dark sections */
    --fg-navy-soft:   #16283C;  /* lifted navy for cards on dark               */
    --fg-amber:       #F7A614;  /* brand accent — buttons, icons, highlights   */
    --fg-amber-text:  #9C6300;  /* darkened amber for text on white (WCAG AA)  */
    --fg-cream:       #FFFDEC;  /* light brand background / text on navy       */
    --fg-green:       #CFE2AC;  /* soft green tint                             */
    --fg-blue:        #CCE9F5;  /* soft blue tint                              */
    --fg-ink:         #24303B;  /* body copy                                   */
    --fg-muted:       #5C6B78;  /* muted copy                                  */
    --fg-line:        #E7E4D2;  /* hairlines on cream/white                    */

    /* Typography */
    --font-display: 'Meigan', 'Nunito', 'Segoe UI', sans-serif;
    --font-heading: 'Meigan', 'Nunito', 'Segoe UI', sans-serif;
    --font-body:    'Nunito', 'Segoe UI', sans-serif;

    /* Spacing scale */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
}

/* ---------- Typography ---------- */
body{ font-family: var(--font-body); color: var(--fg-ink); }
h1,h2,h3,h4,
.sec-title h2,
.count-text{ font-family: var(--font-heading); font-weight: 700; letter-spacing: .3px; }
h5,h6{ font-family: var(--font-body); font-weight: 700; }

.sec-title h2{ color: var(--fg-navy); }
.sec-title .title{
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-family: var(--font-body);
}

/* ---------- Accent helpers ---------- */
.theme_color,
.text-amber{ color: var(--fg-amber-text) !important; }
.bg-navy{ background-color: var(--fg-navy) !important; }
.bg-cream{ background-color: var(--fg-cream) !important; }

/* ---------- Links ---------- */
a{ color: var(--fg-amber-text); }
a:hover{ color: var(--fg-navy); }

/* ---------- Buttons ---------- */
.theme-btn.btn-style-one,
.theme-btn.btn-style-three,
.consult-btn,
.header-style-two .consult-btn{
    background: var(--fg-amber);
    color: var(--fg-navy);
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: .3px;
    border-color: var(--fg-amber);
}
.theme-btn.btn-style-one:hover,
.theme-btn.btn-style-three:hover,
.consult-btn:hover{
    background: var(--fg-cream);
    color: var(--fg-navy);
    border-color: var(--fg-cream);
}
.theme-btn.btn-style-two,
.theme-btn.btn-style-six{
    background: transparent;
    color: var(--fg-cream);
    border: 2px solid var(--fg-cream);
    font-weight: 700;
}
.theme-btn.btn-style-two:hover,
.theme-btn.btn-style-six:hover{
    background: var(--fg-cream);
    color: var(--fg-navy);
    border-color: var(--fg-cream);
}

/* Highlighted primary CTA used across the header/menu */
.discovery-btn{
    display: inline-block;
    background: var(--fg-amber);
    color: var(--fg-navy) !important;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
    padding: 15px 18px;
    border-radius: 4px;
    text-transform: none;
    transition: all .3s ease;
    white-space: nowrap;
}
.discovery-btn:hover{ background: var(--fg-navy); color: var(--fg-cream) !important; }

/* In-menu CTA pill (beats template nav specificity) */
.main-menu .navigation > li > a.discovery-btn,
.sticky-header .main-menu .navigation > li > a.discovery-btn{
    color: var(--fg-navy) !important;
    background: var(--fg-amber) !important;
    padding: 12px 14px !important;
    margin: 22px 0 22px 14px;
    border-radius: 4px;
    line-height: 1;
    text-transform: none;
}
.main-menu .navigation > li > a.discovery-btn:hover,
.sticky-header .main-menu .navigation > li > a.discovery-btn:hover{
    background: var(--fg-navy) !important;
    color: var(--fg-cream) !important;
}

/* ---------- Header / navigation ---------- */
.main-menu .navigation > li.current > a,
.main-menu .navigation > li:hover > a{ color: var(--fg-amber-text); }

/* Vertically centre the top-bar CTA against the logo */
.header-upper .upper-right{ display: flex; align-items: center; min-height: 90px; }

/* ---------- Hero slider ---------- */
/* Photos now carry a baked-in navy overlay → captions are always light */
.main-slider h2,
.main-slider h3{
    color: var(--fg-cream);
    border-bottom: 2px solid var(--fg-amber);
    font-family: var(--font-display);
}
.main-slider .text,
.main-slider .text.light{ color: #E9EEF3; }

/* ---------- Section rhythm & alignment ---------- */
/* Equal-height card rows (welcome services, industries, info strip) */
.welcome-section .row,
.services-column .inner-content > .clearfix,
.info-section .inner-section .row,
.founders-section .founders-row{
    display: flex;
    flex-wrap: wrap;
}
.welcome-section .row:before,  .welcome-section .row:after,
.info-section .inner-section .row:before, .info-section .inner-section .row:after{ display: none; }

.welcome-section .news-block-two{ display: flex; }
.welcome-section .news-block-two .inner-box{
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--fg-line);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.welcome-section .news-block-two .inner-box:hover{
    box-shadow: 0 14px 34px rgba(12,25,40,0.12);
    transform: translateY(-4px);
}
.welcome-section .news-block-two .image img{ width: 100%; height: auto; display: block; }
.welcome-section .news-block-two .lower-content{ flex: 1; display: flex; }
.welcome-section .news-block-two .content{ display: flex; flex-direction: column; width: 100%; }
.welcome-section .news-block-two .content .read-more{ margin-top: auto; font-weight: 700; }

/* Blog grid cards — category label above the post title */
.news-block .inner-box .lower-content .post-category{
    color: var(--fg-amber-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* ============================================================
   Long-form articles (blog-single) — subheadings, lists, pull
   quotes and the closing call-to-action block.
   ============================================================ */
.blog-single .inner-box .lower-content h4{
    position: relative;
    color: var(--fg-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35em;
    margin-bottom: 4px;
}
.blog-single .inner-box .lower-content .text ul.list-style-one{
    margin: 15px 0 20px;
}
.blog-single .inner-box .lower-content .text blockquote{
    padding: var(--space-2) var(--space-3);
    border-left: 4px solid var(--fg-amber);
    background: var(--fg-cream);
    color: var(--fg-navy);
    font-size: 19px;
    font-style: italic;
    line-height: 1.55em;
    margin: 20px 0 25px;
}

.article-cta{
    position: relative;
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--fg-cream);
    border: 1px solid var(--fg-line);
    border-top: 4px solid var(--fg-amber);
    border-radius: 6px;
}
.article-cta h3{ margin-bottom: 12px; }
.article-cta .theme-btn{ margin-top: var(--space-2); }

/* Industries grid — keep room for the template's absolute icon (base: left 0) */
.services-block-two{ display: flex; }
.services-section .services-block-two{ margin-bottom: 0; }
.services-block-two .inner-box{
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--fg-line);
    border-radius: 6px;
    padding: var(--space-3) var(--space-3) var(--space-3) 104px;
    margin-bottom: var(--space-3);
    transition: box-shadow .3s ease;
}
.services-block-two .inner-box .icon-box{ left: var(--space-3); top: var(--space-3); }
.services-block-two .inner-box:hover{ box-shadow: 0 10px 26px rgba(12,25,40,0.10); }
@media (max-width: 479px){
    /* stack icon above text on small phones */
    .services-block-two .inner-box{ padding-left: var(--space-3); }
    .services-block-two .inner-box .icon-box{ position: relative; left: 0; top: 0; margin-bottom: var(--space-2); }
}

/* Info (phones / hours) strip: centre each block, equal height */
.info-section .inner-section{ background-color: var(--fg-navy); border-radius: 6px; overflow: hidden; }
.info-section .inner-section .info-block:nth-child(2) .inner{ background-color: transparent; }
.info-section .info-block{ display: flex; }
.info-section .info-block .inner{ width: 100%; display: flex; align-items: center; justify-content: center; }
.info-section .info-block .content{ text-align: center; padding: var(--space-4) var(--space-2); }
.info-section .info-block .content h2{ font-family: var(--font-body); font-weight: 800; }

/* ---------- Icons & counters ---------- */
.icon-box .icon{ color: var(--fg-amber); }
.count-box .count-text{ color: var(--fg-amber); }

/* ---------- How-we-work process section (reuses .counter-section shell) ---------- */
.counter-section{ background-color: var(--fg-navy); }
.process-block .inner{
    position: relative;
    text-align: center;
    background: var(--fg-navy-soft);
    border: 1px solid rgba(255,253,236,0.10);
    border-radius: 6px;
    padding: var(--space-4) var(--space-3);
    margin-bottom: var(--space-3);
    height: 100%;
}
.process-block{ display: flex; margin-bottom: 0; }
.process-block .step-number{
    display: inline-block;
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 1;
    color: var(--fg-amber);
    margin-bottom: var(--space-2);
}
.process-block h3{
    color: var(--fg-cream);
    font-size: 22px;
    margin-bottom: var(--space-1);
}
.process-block .text{ color: #C4CDD6; font-size: 15px; line-height: 1.7em; }
.counter-section .sec-title .text{
    color: #C4CDD6;
    max-width: 640px;
    margin: 12px auto 0;
}
.counter-section .row{ display: flex; flex-wrap: wrap; }
.counter-section .row:before, .counter-section .row:after{ display: none; }

/* ---------- About intro strip ---------- */
.about-intro{
    position: relative;
    background: var(--fg-cream);
    padding: var(--space-5) 0;
}
.about-intro .sec-title{ margin-bottom: var(--space-3); }
.about-intro .lead-text{
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8em;
    color: var(--fg-ink);
}
.about-intro .lead-text p{ margin-bottom: var(--space-2); }

/* ---------- Founders section ---------- */
.founders-section{
    position: relative;
    padding: var(--space-5) 0;
    background: #ffffff;
}
.founder-block{ display: flex; }
.founder-block .inner{
    width: 100%;
    background: var(--fg-cream);
    border: 1px solid var(--fg-line);
    border-left: 4px solid var(--fg-amber);
    border-radius: 6px;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}
.founder-block h3{ color: var(--fg-navy); font-size: 24px; margin-bottom: 4px; }
.founder-block .role{
    color: var(--fg-amber-text);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: var(--space-2);
}
.founder-block p{ color: var(--fg-ink); line-height: 1.8em; margin-bottom: var(--space-2); }
.founders-section .drives-text{
    max-width: 820px;
    margin: var(--space-3) auto 0;
    text-align: center;
    color: var(--fg-muted);
    font-size: 16px;
    line-height: 1.8em;
}

/* ---------- Accordion (Why Foregranda) ---------- */
.accordion-box .accordion .acc-btn.active{ color: var(--fg-navy); }
.accordion-box .accordion .acc-btn .icon-outer{ color: var(--fg-amber); }

/* ---------- Dark sections ---------- */
.main-footer{ background-color: var(--fg-navy); }
.call-to-action{ background-color: var(--fg-navy); }
.main-footer .footer-widget h2{ color: var(--fg-cream); }
.main-footer .form-widget .form-intro{ margin-bottom: var(--space-3); color: #C4CDD6; }

/* ---------- Logo sizing (wide Foregranda wordmark) ---------- */
.main-header .logo img,
.sticky-header .logo img{ max-height: 46px; width: auto; }
.footer-logo img{ max-height: 52px; width: auto; }

/* ---------- Lead forms (see js/site-forms.js) ---------- */

/* Spam honeypot — must stay reachable to bots, invisible to people.
   Never switch this to display:none, the trap stops working. */
.fg-form-trap{
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Inline confirmation / error, injected after a submit */
.fg-form-status{ display: none; }
.fg-form-status.is-visible{
    display: block;
    clear: both;
    margin-top: var(--space-2);
    padding: 14px 18px;
    border-left: 4px solid;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.6em;
}
.fg-form-status.is-sending{
    background-color: #F2F4F6;
    border-color: var(--fg-muted);
    color: var(--fg-ink);
}
.fg-form-status.is-success{
    background-color: #EDF5E0;
    border-color: #5C8A2E;
    color: #2F4A15;
}
.fg-form-status.is-error{
    background-color: #FBEDEC;
    border-color: #C0392B;
    color: #7A241B;
}

/* ============================================================
   Responsive — 4 targets
   xs <768 mobile · sm 768–991 tablet · md 992–1199 laptop · lg 1200+
   ============================================================ */

/* Laptop (md) */
@media (max-width: 1199px){
    .main-slider h2{ font-size: 48px; }
    .main-slider h3{ font-size: 34px; }
}

/* Tablet (sm) */
@media (max-width: 991px){
    .main-slider h2{ font-size: 38px; }
    .main-slider h3{ font-size: 30px; }
    .about-intro,
    .founders-section{ padding: var(--space-4) 0; }
    .info-section .info-block .content{ padding: var(--space-3) var(--space-2); }
    /* keep the phone strip readable when blocks wrap 2+1 */
    .info-section .inner-section{ border-radius: 0; }
}

/* Mobile (xs) */
@media (max-width: 767px){
    .main-slider h2{ font-size: 30px; }
    .main-slider h3{ font-size: 26px; }
    .main-slider .text{ font-size: 17px; }
    .sec-title h2{ font-size: 26px; line-height: 1.25em; }
    .header-upper .upper-right{ min-height: 0; padding: 10px 0; }
    .welcome-section .news-block-two,
    .services-block-two,
    .founder-block,
    .process-block,
    .info-section .info-block{ width: 100%; }
    .about-intro .lead-text{ font-size: 16px; }
    .founder-block .inner{ padding: var(--space-3); }
    .info-section .inner-section{ margin-top: -40px; margin-bottom: -40px; }
    .footer-nav{ text-align: left; }
}
