/* ==========================================================
   HICAP SERVICES
   HOMEPAGE DESIGN — VERSION 2.0
   Compatible with WordPress Classic Editor
========================================================== */

.hicap-home {
    --hicap-navy: #123b5d;
    --hicap-deep: #092d47;
    --hicap-teal: #087f8c;
    --hicap-teal-dark: #056672;
    --hicap-ink: #20394c;
    --hicap-muted: #536b7b;
    --hicap-soft: #f2f7f9;
    --hicap-border: #dce8ed;

    width: 100%;
    color: var(--hicap-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.hicap-home *,
.hicap-home *::before,
.hicap-home *::after {
    box-sizing: border-box;
}

.hicap-home section {
    margin: 0;
}

.hicap-home .hicap-container {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
}

.hicap-home h1,
.hicap-home h2,
.hicap-home h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.hicap-home p {
    line-height: 1.75;
}

/* ==========================================================
   HERO
========================================================== */

.hicap-home .hicap-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 90px 0 95px;
    background:
        radial-gradient(
            ellipse at 88% 30%,
            rgba(26, 174, 171, .26),
            transparent 45%
        ),
        linear-gradient(
            120deg,
            #092d47 0%,
            #123b5d 55%,
            #0d5964 100%
        );
    color: #fff;
}

.hicap-home .hicap-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 540px;
    height: 540px;
    right: -150px;
    top: -180px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 75px rgba(255,255,255,.025),
        0 0 0 150px rgba(255,255,255,.02);
}

.hicap-home .hicap-hero-inner {
    position: relative;
    max-width: 860px;
}

.hicap-home .hicap-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #a5e8e6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hicap-home .hicap-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #54d5d1;
}

.hicap-home .hicap-hero h1 {
    max-width: 820px;
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.hicap-home .hicap-hero p:not(.hicap-eyebrow) {
    max-width: 680px;
    margin: 0;
    color: #e0edf3;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.75;
}

/* Fix WordPress paragraph wrappers around buttons */

.hicap-home .hicap-hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 34px;
}

.hicap-home .hicap-hero-actions > p {
    display: contents;
}

/* ==========================================================
   BUTTONS
========================================================== */

.hicap-home a.hicap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--hicap-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.hicap-home a.hicap-btn:hover {
    background: var(--hicap-teal-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.hicap-home a.hicap-btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--hicap-deep);
}

.hicap-home a.hicap-btn-light:hover {
    background: #e5f5f5;
    border-color: #e5f5f5;
    color: var(--hicap-deep);
}

.hicap-home a.hicap-btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,.7);
    color: #fff;
    box-shadow: none;
}

.hicap-home a.hicap-btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

/* ==========================================================
   SECTIONS
========================================================== */

.hicap-home .hicap-section {
    padding: 85px 0;
}

.hicap-home .hicap-section-light {
    background: var(--hicap-soft);
}

.hicap-home .hicap-section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.hicap-home .hicap-section-heading h2 {
    margin: 0 0 17px;
    color: var(--hicap-navy);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
}

.hicap-home .hicap-section-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--hicap-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* ==========================================================
   SERVICE CARDS
========================================================== */

.hicap-home .hicap-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hicap-home .hicap-service-card {
    position: relative;
    min-width: 0;
    padding: 34px 30px 36px;
    border: 1px solid var(--hicap-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(13,53,77,.045);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.hicap-home .hicap-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--hicap-teal);
}

.hicap-home .hicap-service-card:hover {
    transform: translateY(-5px);
    border-color: #bad7dd;
    box-shadow: 0 18px 40px rgba(13,53,77,.1);
}

.hicap-home .hicap-service-icon {
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin: 0 0 26px;
    border-radius: 15px;
    background: #e5f4f5;
    color: var(--hicap-teal);
    font-size: 26px;
    font-weight: 800;
}

.hicap-home .hicap-service-card h3 {
    margin: 0 0 14px;
    color: var(--hicap-navy);
    font-size: 21px;
    font-weight: 750;
}

.hicap-home .hicap-service-card p {
    margin: 0;
    color: var(--hicap-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

/* ==========================================================
   ABOUT HICAP
========================================================== */

.hicap-home .hicap-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
}

.hicap-home .hicap-about h2 {
    margin: 0 0 25px;
    color: var(--hicap-navy);
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 800;
}

.hicap-home .hicap-about p {
    margin: 0 0 17px;
    color: var(--hicap-ink);
    font-size: 16.5px;
    line-height: 1.85;
}

.hicap-home .hicap-about p:last-child {
    margin-top: 26px;
}

.hicap-home .hicap-about-panel {
    padding: 40px;
    border: 1px solid #d4e9ed;
    border-radius: 18px;
    background:
        linear-gradient(145deg, #eaf5f7, #f5fafb);
}

.hicap-home .hicap-about-panel h3 {
    margin: 0 0 24px;
    color: var(--hicap-navy);
    font-size: 23px;
    font-weight: 750;
}

.hicap-home .hicap-about-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hicap-home .hicap-about-panel li {
    position: relative;
    margin: 0 0 15px;
    padding-left: 31px;
    color: var(--hicap-ink);
    font-size: 15.5px;
    line-height: 1.6;
}

.hicap-home .hicap-about-panel li:last-child {
    margin-bottom: 0;
}

.hicap-home .hicap-about-panel li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hicap-teal);
    font-weight: 800;
}

/* ==========================================================
   CONTACT CALL TO ACTION
========================================================== */

.hicap-home .hicap-contact-cta {
    position: relative;
    overflow: hidden;
    padding: 75px 24px 80px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(19,155,159,.22),
            transparent 42%
        ),
        linear-gradient(115deg, #0b304c, #123b5d);
    color: #fff;
    text-align: center;
}

.hicap-home .hicap-contact-cta h2 {
    max-width: 850px;
    margin: 0 auto 20px;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 800;
}

.hicap-home .hicap-contact-cta p {
    max-width: 640px;
    margin: 0 auto 30px;
    color: #e1edf3;
    font-size: 17px;
    line-height: 1.75;
}

.hicap-home .hicap-contact-cta .hicap-btn {
    min-width: 230px;
}

/* ==========================================================
   WORDPRESS BLOCK THEME COMPATIBILITY
========================================================== */

body.hicap-front-page .wp-block-post-content {
    margin-top: 0;
    margin-bottom: 0;
}

body.hicap-front-page .wp-block-post-content > .hicap-home {
    margin-block: 0;
}

body.hicap-front-page .wp-block-post-content
.hicap-home > section {
    margin-block: 0;
}

body.hicap-front-page .wp-block-post-content
.hicap-home > section + section {
    margin-block-start: 0;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 960px) {

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

    .hicap-home .hicap-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hicap-home .hicap-hero {
        padding: 75px 0;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 640px) {

    .hicap-home .hicap-container {
        width: min(100% - 36px, 1200px);
    }

    .hicap-home .hicap-hero {
        padding: 65px 0 70px;
    }

    .hicap-home .hicap-hero h1 {
        font-size: clamp(34px, 9vw, 46px);
    }

    .hicap-home .hicap-hero p:not(.hicap-eyebrow) {
        font-size: 17px;
    }

    .hicap-home .hicap-hero-actions {
        flex-direction: column !important;
        align-items: stretch;
        gap: 12px;
    }

    .hicap-home .hicap-hero-actions .hicap-btn {
        width: 100%;
    }

    .hicap-home .hicap-section {
        padding: 60px 0;
    }

    .hicap-home .hicap-services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hicap-home .hicap-service-card {
        padding: 30px 26px;
    }

    .hicap-home .hicap-about-panel {
        padding: 28px 24px;
    }

    .hicap-home .hicap-contact-cta {
        padding: 65px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hicap-home *,
    .hicap-home *::before,
    .hicap-home *::after {
        transition: none !important;
    }
}
