/* =============================================
   i-Tech Corporation — Block Theme Styles
   ============================================= */

/* Aliases to WP preset vars — values come from theme.json */
:root {
    --site-width:      1440px;
    --clr-primary:    var(--wp--preset--color--primary,    #1A56DB);
    --clr-primary-dk: var(--wp--preset--color--primary-dark,#1641B5);
    --clr-navy:       var(--wp--preset--color--navy,       #1E2A4A);
    --clr-white:      var(--wp--preset--color--white,      #FFFFFF);
    --clr-light-bg:   var(--wp--preset--color--light-bg,   #F8F9FA);
    --clr-body:       var(--wp--preset--color--body,       #111827);
    --clr-muted:      var(--wp--preset--color--muted,      #6B7280);
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      16px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.12);
    --trans:          0.2s ease;
}

/* =============================================
   BASE RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); }

/* Prevent horizontal scroll from bleed-right elements.
   Targets body (the actual scroll container) rather than an inner wrapper.
   overflow-x:clip clips visual overflow without creating a scroll container,
   so position:sticky elements are unaffected — unlike overflow:hidden. */
body { overflow-x: clip; }

/* =============================================
   SECTION LABEL — reusable utility
   ============================================= */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 0.75rem;
    line-height: 1;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    /* background: #fff; */
    /* border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm); */
}
.site-header > .wp-block-group {
    max-width: var(--site-width);
    margin-inline: auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.site-header .wp-block-navigation a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--clr-body);
    text-decoration: none;
    transition: color var(--trans);
}
.site-header .wp-block-navigation a:hover { color: var(--clr-primary); }
.site-header .wp-block-navigation__container { gap: 0; }
.site-header .wp-block-navigation-item { position: relative; }
.site-header .wp-block-navigation-item__content { padding: 0.5rem 1rem; }
.site-header .wp-block-navigation__submenu-icon svg { display: inline; }

/* Header CTA button — layout only; colors from theme.json */
.header-cta .wp-block-button__link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    transition: background var(--trans);
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
    padding: 5rem 2rem;
    overflow: hidden;
}
.hero-section .wp-block-columns {
    align-items: center;
    gap: 4rem;
}
.hero-tagline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 1.25rem;
}
.hero-headline {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--clr-body);
    margin-bottom: 1.25rem;
}
.hero-headline .accent { color: var(--clr-primary); }
.hero-desc {
    font-size: 1.0625rem;
    color: var(--clr-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}
.hero-buttons { gap: 1rem; flex-wrap: wrap; }

/* Hero buttons — layout only; visual defaults come from theme.json */
.hero-btn-primary .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: background var(--trans), border-color var(--trans);
}
.hero-btn-primary .wp-block-button__link:hover {
    background: var(--clr-primary-dk);
    border-color: var(--clr-primary-dk);
}

/* Outline variant — layout only; visual styles set in the block editor */
.hero-btn-outline .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    transition: border-color var(--trans), background var(--trans);
}

.hero-image-wrap {
    clip-path: url(#heroImageClip);
    margin: 0;
    line-height: 0;
    position: relative;
}
.hero-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

/* =============================================
   SERVICES
   ============================================= */
.services-section {
    background: var(--clr-light-bg);
    padding: 5rem 2rem;
}
.services-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 4rem;
    align-items: start;
    max-width: var(--site-width);
    margin-inline: auto;
}
.services-intro h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--clr-body);
    margin: 0.75rem 0 1.5rem;
}
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
}
.view-all-link:hover { text-decoration: underline; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: box-shadow var(--trans), border-color var(--trans);
    display: flex;
    flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: #D1D5DB; }
.service-icon {
    width: 44px;
    height: 44px;
    color: var(--clr-primary);
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.service-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--clr-body);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.service-card p {
    font-size: 0.8125rem;
    color: var(--clr-muted);
    line-height: 1.65;
    margin: 0 0 1rem;
    flex: 1;
}
.service-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--clr-primary);
    transition: transform var(--trans);
    margin-top: auto;
}
.service-card:hover .service-arrow { transform: translateX(3px); }

/* =============================================
   INDUSTRIES
   ============================================= */
.industries-section {
    padding: 5rem 2rem;
    background: #fff;
}
.industries-section h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--clr-body);
    margin-top: 0.5rem;
}
.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.875rem;
    padding: 1.75rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    transition: border-color var(--trans), box-shadow var(--trans);
    cursor: default;
}
.industry-item:hover { border-color: var(--clr-primary); box-shadow: var(--shadow-sm); }
.industry-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    flex-shrink: 0;
}
.industry-icon svg { width: 26px; height: 26px; }
.industry-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--clr-body);
    line-height: 1.35;
}

/* =============================================
   IHEALTH
   ============================================= */
.ihealth-section {
    padding: 5rem 2rem;
    background: #fff;
}
.ihealth-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
    max-width: var(--site-width);
    margin-inline: auto;
}
.ihealth-logo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.5rem;
}
.ihealth-logo-icon { width: 48px; height: 48px; }
.ihealth-logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-body);
    line-height: 1;
}
.ihealth-tagline {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--clr-body);
    margin: 0 0 1rem;
}
.ihealth-desc {
    font-size: 0.9375rem;
    color: var(--clr-muted);
    line-height: 1.75;
    margin: 0 0 2rem;
}
/* iHealth button — layout only; visual defaults from theme.json */
.ihealth-btn .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: background var(--trans);
}
.ihealth-mockup { position: relative; }
.ihealth-mockup img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   WHY CHOOSE
   ============================================= */
.why-section {
    background: var(--clr-light-bg);
    padding: 4.5rem 2rem;
}
.why-section .section-label { margin-bottom: 2.5rem; }
.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: var(--site-width);
    margin-inline: auto;
}
.why-item { }
.why-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: 0.625rem;
}
.why-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-body);
    margin: 0 0 0.5rem;
}
.why-desc {
    font-size: 0.875rem;
    color: var(--clr-muted);
    line-height: 1.65;
    margin: 0;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
    background: var(--clr-navy);
    padding: 4rem 2rem;
}
.cta-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: var(--site-width);
    margin-inline: auto;
}
.cta-banner h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
}
.cta-desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin: 0;
}
.cta-btn-wrap { flex-shrink: 0; }
/* CTA button — layout only; visual defaults from theme.json */
.cta-btn .wp-block-button__link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: background var(--trans);
}
.cta-btn .wp-block-button__link:hover { background: var(--clr-primary-dk); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--clr-light-bg); }
.footer-main {
    max-width: var(--site-width);
    margin-inline: auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 2fr;
    gap: 3rem;
    align-items: start;
}
.footer-tagline {
    font-size: 0.875rem;
    color: var(--clr-muted);
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
}
.footer-social { display: flex; gap: 0.625rem; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    color: var(--clr-muted);
    transition: border-color var(--trans), color var(--trans);
    text-decoration: none;
}
.social-link:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.footer-col-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-body);
    margin: 0 0 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-links a {
    font-size: 0.875rem;
    color: var(--clr-muted);
    text-decoration: none;
    transition: color var(--trans);
}
.footer-links a:hover { color: var(--clr-primary); }
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--clr-muted);
    line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--clr-primary); margin-top: 1px; }
.footer-bottom { border-top: 1px solid var(--clr-border); }
.footer-bottom-inner {
    max-width: var(--site-width);
    margin-inline: auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-copyright { font-size: 0.875rem; color: var(--clr-muted); margin: 0; }
.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--clr-muted);
}
.footer-legal a { color: var(--clr-muted); text-decoration: none; transition: color var(--trans); }
.footer-legal a:hover { color: var(--clr-primary); }
.footer-legal-sep { color: rgba(255,255,255,0.3); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
    padding: 4rem 2rem 5rem;
    background: #fff;
    overflow: hidden;
}
.page-hero-columns {
    align-items: center;
    gap: 4rem;
}
.page-breadcrumb {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 1.5rem;
    line-height: 1;
}
.page-breadcrumb a {
    color: var(--clr-muted);
    text-decoration: none;
    transition: color var(--trans);
}
.page-breadcrumb a:hover { color: var(--clr-primary); }
.page-breadcrumb-sep { color: var(--clr-muted); }
.page-breadcrumb-current { color: var(--clr-body); }
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--clr-body) !important;
    margin: 0 0 1.25rem !important;
}
.page-hero .wp-block-post-excerpt p {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--clr-primary);
    line-height: 1.55;
    margin: 0;
}
.page-hero .wp-block-post-excerpt__more-link { display: none; }
.page-hero-img {
    margin: 0;
    line-height: 0;
}
.page-hero-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .services-layout { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .ihealth-layout { grid-template-columns: 1fr; gap: 3rem; }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-inner { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
    .cta-banner h2 { white-space: normal; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
}
@media (max-width: 768px) {
    .hero-section { padding: 3rem 1.5rem; }
    .hero-section .wp-block-columns { flex-direction: column; gap: 2.5rem; }
    /* Override WP's inline column widths on mobile */
    .hero-section .wp-block-column { width: 100% !important; flex-basis: 100% !important; }
    .page-hero { padding: 3rem 1.5rem; }
    .page-hero-columns { flex-direction: column !important; gap: 2.5rem; }
    .page-hero-columns .wp-block-column { width: 100% !important; flex-basis: 100% !important; }
    .page-hero-image-col { order: -1; }
    .page-hero-img img { height: 260px; }
    .services-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .site-header > .wp-block-group { padding: 0 1rem; }
    .header-cta { display: none; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr 1fr; }
}

footer .wp-block-columns {
    margin-bottom: 0!important;
}

.hero-btn-outline .wp-block-button__link.has-border-color {
    color: var(--wp--preset--color--primary) !important;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

/* Hero */
.about-hero {
    padding: 4rem 2rem 5rem;
    background: #fff;
    overflow: hidden;
}
.about-hero .wp-block-columns { gap: 4rem; align-items: center; }
.about-hero-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--clr-body) !important;
    margin-bottom: 0 !important;
}
.wp-block-separator.about-title-rule {
    max-width: 48px;
    height: 4px;
    border: none;
    opacity: 1;
    margin: 1.25rem 0 1.5rem;
}
.about-hero-subtitle .wp-block-post-excerpt__excerpt p,
.about-hero-subtitle p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--clr-primary);
    line-height: 1.5;
    margin: 0 0 1rem;
}
.about-hero-subtitle .wp-block-post-excerpt__more-link { display: none; }
.about-hero-img img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 12px;
}

/* Overview section */
.about-overview { padding: 5rem 2rem; }
.about-overview-cols { align-items: start; }
.about-overview-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0.5rem 0 1.5rem !important;
}
.about-journey-btn .wp-block-button__link {
    color: var(--clr-navy);
    border-color: var(--clr-navy);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background var(--trans), color var(--trans);
}
.about-journey-btn .wp-block-button__link:hover {
    background: var(--clr-navy);
    color: #fff;
}

/* Stats 2×2 grid */
.stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.stat-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.75rem;
    background: #fff;
    transition: box-shadow var(--trans);
}
.stat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.stat-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clr-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.stat-number {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem) !important;
    font-weight: 800 !important;
    color: var(--clr-body) !important;
    margin: 0 0 0.2rem !important;
    line-height: 1 !important;
}
.stat-label-text {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: var(--clr-body) !important;
    margin: 0 0 0.4rem !important;
    line-height: 1.3 !important;
}
.stat-desc {
    font-size: 0.8125rem !important;
    color: var(--clr-muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Centered section header shared by Strengths & Values */
.about-section-header {
    text-align: center;
    align-items: center !important;
    margin-bottom: 3rem;
}
.about-section-header .section-label { margin-bottom: 0.625rem; }
.wp-block-separator.about-rule-center {
    max-width: 48px;
    height: 3px;
    border: none;
    opacity: 1;
    margin: 0 auto;
}

/* Core Strengths */
.about-strengths { padding: 5rem 2rem; }
.strengths-cols { gap: 1.5rem !important; }
.strength-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: box-shadow var(--trans), border-color var(--trans);
}
.strength-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: #D1D5DB; }
.strength-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.5px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.strength-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--clr-body) !important;
    margin: 0 0 0.75rem !important;
    line-height: 1.3 !important;
}
.strength-desc {
    font-size: 0.875rem !important;
    color: var(--clr-muted) !important;
    line-height: 1.7 !important;
    margin: 0 0 1rem !important;
    flex: 1;
}
.strength-link .wp-block-button__link {
    background: transparent !important;
    color: var(--clr-primary) !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0 !important;
    transition: gap var(--trans);
}
.strength-link .wp-block-button__link:hover { gap: 0.5rem; }

/* Values */
.about-values {
    padding: 5rem 2rem;
    background: var(--clr-light-bg);
}
.values-cols { gap: 1.5rem !important; align-items: start !important; }
.value-item { display: flex; flex-direction: column; gap: 0.4rem; }
.value-icon { color: var(--clr-primary); margin-bottom: 0.25rem; }
.value-title {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: var(--clr-body) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.value-desc {
    font-size: 0.8125rem !important;
    color: var(--clr-muted) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* About responsive */
@media (max-width: 1024px) {
    .about-overview-cols { flex-direction: column !important; }
    .about-overview-cols .wp-block-column { width: 100% !important; flex-basis: 100% !important; }
    .strengths-cols { flex-wrap: wrap !important; }
    .strengths-cols .wp-block-column { min-width: calc(50% - 0.75rem) !important; }
}
@media (max-width: 768px) {
    .about-hero { padding: 3rem 1.5rem; }
    .about-hero .wp-block-columns { flex-direction: column !important; gap: 2rem; }
    .about-hero .wp-block-column { width: 100% !important; flex-basis: 100% !important; }
    .about-hero-img img { height: 260px; }
    .about-overview { padding: 3rem 1.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .about-strengths { padding: 3rem 1.5rem; }
    .about-values { padding: 3rem 1.5rem; }
    .values-cols { flex-wrap: wrap !important; }
    .values-cols .wp-block-column { min-width: calc(50% - 0.75rem) !important; }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr !important; }
    .strengths-cols .wp-block-column { min-width: 100% !important; }
    .values-cols .wp-block-column { min-width: 100% !important; }
}

/* =============================================
   CONTACT PAGE
   ============================================= */

/* Hero */
.contact-hero {
    padding: 4rem 2rem 0;
    background: #fff;
}
.contact-hero-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-bottom: 3rem;
}
.contact-hero-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--clr-body) !important;
    margin-bottom: 0 !important;
}
.wp-block-separator.contact-title-rule {
    max-width: 48px;
    height: 4px;
    border: none;
    opacity: 1;
    margin: 1.25rem 0 1.5rem;
}
.contact-hero-desc {
    font-size: 1.0625rem;
    color: var(--clr-muted);
    line-height: 1.75;
    margin: 0;
    max-width: 480px;
}
.contact-info-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-content: start;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow var(--trans), border-color var(--trans);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); border-color: #D1D5DB; }
.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(26, 86, 219, 0.08);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin: 0 0 0.25rem;
    line-height: 1;
}
.contact-info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--clr-body);
    line-height: 1.5;
    margin: 0;
    text-decoration: none;
    display: block;
}
a.contact-info-value:hover { color: var(--clr-primary); }

/* Main form + map */
.contact-main {
    padding: 5rem 2rem;
    background: var(--clr-light-bg);
}
.contact-main-cols { align-items: start; }
.contact-form-heading,
.contact-map-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 0.5rem 0 1rem !important;
}
.contact-form-col .wpcf7 { margin-top: 1.75rem; }
.contact-form-col .wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 1.25rem; }
.contact-form-col .wpcf7 input[type="text"],
.contact-form-col .wpcf7 input[type="email"],
.contact-form-col .wpcf7 input[type="tel"],
.contact-form-col .wpcf7 select,
.contact-form-col .wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--clr-body);
    background: #fff;
    transition: border-color var(--trans), box-shadow var(--trans);
    outline: none;
}
.contact-form-col .wpcf7 input:focus,
.contact-form-col .wpcf7 select:focus,
.contact-form-col .wpcf7 textarea:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.contact-form-col .wpcf7 textarea { min-height: 140px; resize: vertical; }
.contact-form-col .wpcf7 input[type="submit"] {
    background: var(--clr-primary);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--trans);
    letter-spacing: 0.04em;
}
.contact-form-col .wpcf7 input[type="submit"]:hover { background: var(--clr-primary-dk); }

/* Map */
.contact-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0 2rem;
    box-shadow: var(--shadow-md);
}
.contact-map-wrap iframe { display: block; }

/* Social links */
.contact-aside-links-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--clr-body);
    margin: 0 0 0.875rem;
}
.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    transition: border-color var(--trans), color var(--trans);
}
.contact-social-link:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

/* Contact responsive */
@media (max-width: 1024px) {
    .contact-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-main-cols { flex-direction: column !important; }
    .contact-main-cols .wp-block-column { width: 100% !important; flex-basis: 100% !important; }
}
@media (max-width: 768px) {
    .contact-hero { padding: 3rem 1.5rem 0; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .contact-main { padding: 3rem 1.5rem; }
}
@media (max-width: 640px) {
    .contact-info-cards { grid-template-columns: 1fr; }
}

.hero-section {
  overflow-x: hidden;
}

.hero-texture, .cta-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(34, 98, 255, 0.22), transparent 28%),
    radial-gradient(circle at 90% 70%, rgba(34, 98, 255, 0.18), transparent 30%),
    linear-gradient(90deg, #061b44 0%, #031532 55%, #061b44 100%);
}

.hero-texture::before, .cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;

  background-image:
    radial-gradient(circle, rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(135deg, rgba(64,120,255,0.22), transparent 35%);
  background-size:
    8px 8px,
    100% 100%;

  mask-image: linear-gradient(
    110deg,
    transparent 0%,
    black 12%,
    black 38%,
    transparent 55%,
    black 75%,
    transparent 100%
  );
}

.hero-texture::after, .cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;

  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.08) 0 1px,
      transparent 1px 12px
    );
}

/* =============================================
   BUTTON BLOCK — HOVER STYLES
   ============================================= */

/* Ensure all button links transition smoothly */
.wp-block-button__link {
    transition: background-color var(--trans), color var(--trans),
                box-shadow var(--trans), transform var(--trans);
}

/* Lift — translates up and deepens shadow */
.is-style-hover-lift .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.35);
}

/* Fill — outline button that fills on hover.
   Works best when the button is set to Outline style in the editor. */
.is-style-hover-fill .wp-block-button__link {
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.is-style-hover-fill .wp-block-button__link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--trans);
    z-index: -1;
}
.is-style-hover-fill .wp-block-button__link:hover {
    color: var(--clr-white) !important;
}
.is-style-hover-fill .wp-block-button__link:hover::before {
    opacity: 1;
}

/* Glow — colored shadow that blooms on hover */
.is-style-hover-glow .wp-block-button__link:hover {
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.2), 0 4px 20px rgba(26, 86, 219, 0.4);
}

.about-hero__text {
  padding: 2rem 3rem 2rem 2rem;
}

.breadcrumb {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--clr-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-hero__title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  color: var(--clr-navy) !important;
  line-height: 1.1 !important;
  position: relative;
  padding-bottom: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}

.about-hero__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
}

.about-hero__tagline {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--clr-primary) !important;
  margin-bottom: 1rem !important;
}

.about-hero__image .wp-block-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* =============================================
   NINJA FORMS — SUBMIT BUTTON
   ============================================= */

#nf-field-4 {
    display:          inline-flex !important;
    align-items:      center !important;
    align-content:    center !important;
    justify-content:  center !important;
    gap:              6px !important;
    background-color: var(--clr-primary) !important;
    color:            #fff !important;
    border:           none !important;
    border-radius:    50px !important;
    padding:          16px 28px !important;
    font-family:      var(--wp--preset--font-family--inter, Inter, sans-serif) !important;
    font-size:        14px !important;
    font-weight:      600 !important;
    line-height:      1 !important;
    text-align:       center !important;
    text-decoration:  none !important;
    text-transform:   none !important;
    white-space:      nowrap !important;
    cursor:           pointer !important;
    box-shadow:       none !important;
    box-sizing:       border-box !important;
    transition:       background 0.2s ease, transform 0.15s ease,
                      box-shadow 0.2s ease !important;
}

#nf-field-4:hover {
    background-color: var(--clr-primary-dk) !important;
    transform:        translateY(-2px) !important;
    box-shadow:       0 6px 20px rgba(26, 86, 219, 0.3) !important;
}

#nf-field-4:active {
    transform:        translateY(0) !important;
    box-shadow:       none !important;
}
