/*
Theme Name: Cornerstone Networks
Description: A service business theme for Cornerstone Networks.
Version: 1.2.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cornerstone-networks
*/
:root { --ink: #071f4d; --deep: #061a43; --teal: #0758ae; --mint: #45d6ff; --paper: #f4f8fd; --muted: #425575; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: var(--teal); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #e58e34; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -100px; background: white; padding: .75rem; z-index: 5; }
.skip:focus { top: 1rem; }
.site-header { background: white; }
.header-inner,.footer-inner,.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.header-inner { justify-content: space-between; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); line-height: 1; text-decoration: none; }
.brand small { display: block; margin-top: .35rem; font-size: .64rem; letter-spacing: .18em; }
.mark { width: 1.8rem; height: 1.8rem; border: .42rem solid var(--teal); border-radius: .4rem; transform: rotate(12deg); }
.custom-logo { max-width: 170px; }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 650; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.button,.whatsapp { display: inline-block; padding: .7rem 1.1rem; border-radius: .55rem; text-decoration: none; background: var(--mint); color: var(--deep); font-weight: 750; }
.button:hover,.whatsapp:hover { background: #95e8ff; }
.hero { background: var(--deep); color: white; overflow: hidden; }
.hero-inner { position: relative; isolation: isolate; padding-block: clamp(4rem, 10vw, 8rem); }
.eyebrow { color: var(--mint); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.4rem; margin: 0 0 .75rem; }
.intro { max-width: 32rem; font-size: 1.16rem; color: #d8ebff; }
.actions { margin-top: 1.5rem; }
.secondary { color: white; }
.signal { position: absolute; z-index: -1; width: 30rem; height: 30rem; right: -3rem; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, #07458a, transparent 67%); display: grid; place-items: center; }
.signal i,.signal span { position: absolute; width: var(--size, 1.1rem); aspect-ratio: 1; border: 1px solid #4aceff75; border-radius: 50%; }
.signal i:nth-child(1) { --size: 26rem; }
.signal i:nth-child(2) { --size: 20rem; }
.signal i:nth-child(3) { --size: 14rem; }
.signal i:nth-child(4) { --size: 8rem; }
.signal span { background: var(--mint); box-shadow: 0 0 3rem #45d6ff; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.card { margin: 0; background: white; border: 1px solid #d6e4f3; border-radius: .8rem; padding: clamp(1.2rem, 3vw, 2rem); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card h3 span { color: var(--teal); }
.card p,.card figcaption { color: var(--muted); margin: 0; }
.card blockquote { margin: 0 0 .75rem; }
.areas { display: flex; flex-wrap: wrap; gap: .65rem; padding: 0; list-style: none; }
.areas li { border: 1px solid #a8c8e8; border-radius: 2rem; padding: .35rem .8rem; }
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); }
.prose h2 { margin-top: 2rem; }
.prose li + li { margin-top: .35rem; }
.site-footer { background: var(--deep); color: white; padding-block: 1.5rem 4.75rem; }
.site-footer a { color: var(--mint); }
.footer-inner { justify-content: space-between; }
.whatsapp { position: fixed; right: 1rem; bottom: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); box-shadow: 0 3px 20px #061a4352; z-index: 2; }
@media (max-width: 740px) {
    .wrap { width: calc(100% - 2rem); }
    .signal { opacity: .28; right: -17rem; }
    .header-inner nav { order: 3; width: 100%; }
    .cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .header-action { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Elementor homepage template */
.cn-el-hero { isolation: isolate; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0; color: white; background: radial-gradient(circle at 84% 42%, #0754a4 0, transparent 35%), var(--deep); }
.cn-el-hero .elementor-heading-title { color: white; }
.cn-el-hero h1.elementor-heading-title { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1.05; font-weight: 800; }
.cn-el-hero .cn-el-eyebrow .elementor-heading-title { color: var(--mint); font-size: .85rem; letter-spacing: .13em; text-transform: uppercase; }
.cn-el-hero .elementor-widget-text-editor { max-width: 37rem; font-size: 1.15rem; color: #e5f3ff; }
.cn-el-explore .elementor-button { background: transparent; border: 1px solid #8bdfff; color: white; }
.cn-el-services { padding-top: clamp(2rem, 4vw, 4rem); }
.cn-el-services .elementor-heading-title,.cn-el-cards .elementor-heading-title,.cn-el-cta .elementor-heading-title { color: var(--ink); }
.cn-el-cards .elementor-column { padding: .45rem; }
.cn-el-cards .elementor-column > .elementor-element-populated { background: white; border: 1px solid #d6e4f3; border-radius: .85rem; padding: 1.5rem; }
.cn-el-cards .elementor-widget-text-editor { color: var(--muted); }
.cn-el-cta { margin-top: 2rem; padding: 2.5rem 0; background: #e4f5ff; }

.mark { width: 2rem; height: 1.8rem; border: 0; border-radius: 0; transform: none; background: linear-gradient(#9de9fa,#9de9fa) 0 100% / 20% 32% no-repeat, linear-gradient(#00bfee,#00bfee) 26.6% 100% / 20% 54% no-repeat, linear-gradient(#0869cb,#0869cb) 53.3% 100% / 20% 76% no-repeat, linear-gradient(#061a43,#061a43) 80% 100% / 20% 100% no-repeat; }
.custom-logo { max-width: min(235px, 65vw); }
/* Homepage alignment */
:root { --site-width: 1600px; --page-gutter: clamp(1rem, 4vw, 4rem); }
.wrap { width: min(var(--site-width), calc(100% - 2 * var(--page-gutter))); }
.prose { max-width: 780px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 5.6rem); }
.signal { position: relative; z-index: auto; inset: auto; transform: none; width: min(100%, 30rem); height: auto; aspect-ratio: 1; justify-self: center; }
.signal i:nth-child(1) { --size: 88%; }
.signal i:nth-child(2) { --size: 68%; }
.signal i:nth-child(3) { --size: 48%; }
.signal i:nth-child(4) { --size: 28%; }
.home-content { padding-top: 0; overflow-wrap: anywhere; }
.home-content > .is-layout-constrained { --wp--style--global--content-size: var(--site-width); --wp--style--global--wide-size: var(--site-width); }
.home-content .wp-block-cover { width: 100%; border-radius: .85rem; }
.home-content .wp-block-cover__inner-container { padding: clamp(.75rem, 3vw, 3rem); }
.cn-el-hero > .elementor-container,
.cn-el-services > .elementor-container,
.cn-el-cards > .elementor-container,
.cn-el-cta > .elementor-container { width: min(var(--site-width), calc(100% - 2 * var(--page-gutter))); max-width: none !important; }
@media (max-width: 740px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .signal { display: none; }
}

/* Wi-Fi pulse in the homepage hero. */
@media (prefers-reduced-motion: no-preference) {
    .hero .signal::before,
    .hero .signal::after {
        content: "";
        position: absolute;
        width: 88%;
        aspect-ratio: 1;
        border: 1px solid var(--mint);
        border-radius: 50%;
        pointer-events: none;
        animation: cn-signal-pulse 5s ease-out infinite;
    }
    .hero .signal::after { animation-delay: -2.5s; }
}

@keyframes cn-signal-pulse {
    0% { transform: scale(.08); opacity: 0; }
    12% { opacity: .66; }
    85%, 100% { transform: scale(1); opacity: 0; }
}
/* The satellite follows the outer signal ring. */
.signal-orbit {
    position: absolute;
    width: 88%;
    aspect-ratio: 1;
    transform: rotate(42deg);
    z-index: 1;
}
.signal-satellite {
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(1.65rem, 3vw, 2.65rem);
    height: auto;
    transform: translate(-50%, -50%);
    color: #78e5ff;
    filter: drop-shadow(0 0 .45rem #45d6ff);
}
@media (prefers-reduced-motion: no-preference) {
    .signal-orbit { animation: cn-satellite-orbit 20s linear infinite; }
}
@keyframes cn-satellite-orbit {
    to { transform: rotate(402deg); }
}