/* =========================================================
   Cedar Ridge Interactive
   Clean V1 Site Styles
   ========================================================= */

:root {
    --cri-navy: #12303d;
    --cri-navy-dark: #0b2630;
    --cri-forest: #0d4d3f;
    --cri-forest-dark: #083a30;
    --cri-forest-light: #dceee8;
    --cri-sage: #eaf3f0;
    --cri-gray: #66747b;
    --cri-light-gray: #edf2f1;
    --cri-border: #dbe4e2;
    --cri-white: #ffffff;
    --cri-max-width: 1120px;
}

/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--cri-navy);
    background: var(--cri-white);
}

a {
    color: inherit;
    text-decoration: none;
}

.cri-site {
    min-height: 100vh;
    overflow-x: hidden;
}

.cri-container {
    width: min(var(--cri-max-width), calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================================
   Header
   ========================================================= */

.cri-header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--cri-border);
}

.cri-nav {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cri-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.cri-brand-mark {
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    display: block;
    border-radius: 14px;
    overflow: hidden;
}

.cri-brand-image {
    background-image: url('../images/cedar-ridge-interactive-mark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cri-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cri-brand-name span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--cri-navy);
}

.cri-brand-name strong {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--cri-forest);
}

.cri-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
}

.cri-navigation a {
    color: #43535a;
    transition: color 0.2s ease;
}

.cri-navigation a:hover {
    color: var(--cri-forest);
}

.cri-navigation .cri-nav-button {
    padding: 12px 20px;
    border-radius: 7px;
    background: var(--cri-forest);
    color: white;
    font-weight: 700;
}

.cri-navigation .cri-nav-button:hover {
    background: var(--cri-forest-dark);
    color: white;
}

/* =========================================================
   Hero
   ========================================================= */

.cri-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 35%, rgba(173, 204, 198, 0.28), transparent 32%),
        linear-gradient(135deg, #f7faf9 0%, #eef5f3 100%);
    border-bottom: 1px solid #e1eae7;
}

.cri-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -140px;
    border: 1px solid rgba(13, 77, 63, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cri-hero-grid {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    align-items: center;
    gap: 58px;
    padding-top: 55px;
    padding-bottom: 65px;
}

.cri-hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.cri-eyebrow {
    margin-bottom: 18px;
    color: var(--cri-forest);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.19em;
}

.cri-hero-title {
    margin: 0;
    max-width: 620px;
    font-size: clamp(48px, 4.5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: var(--cri-navy);
}

.cri-hero-title-line {
    display: block;
    white-space: nowrap;
}

.cri-hero-title-line:not(.cri-hero-title-dark) {
    color: var(--cri-forest);
}

.cri-hero-title-dark {
    color: var(--cri-navy);
}

.cri-tagline {
    margin: 24px 0 0;
    font-size: 23px;
    line-height: 1.35;
    color: #294d61;
    font-weight: 500;
}

.cri-hero-text {
    max-width: 610px;
    margin: 20px 0 0;
    color: var(--cri-gray);
    font-size: 17px;
    line-height: 1.7;
}

.cri-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.cri-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cri-button:hover {
    transform: translateY(-2px);
}

.cri-button-primary {
    background: var(--cri-forest);
    color: white;
    box-shadow: 0 8px 20px rgba(13, 77, 63, 0.16);
}

.cri-button-primary:hover {
    background: var(--cri-forest-dark);
}

.cri-button-secondary {
    background: white;
    color: var(--cri-navy);
    border: 1px solid var(--cri-border);
}

.cri-button-secondary:hover {
    border-color: #b8cbc5;
}

/* The hero artwork is deliberately contained inside its grid column.
   It can never bleed to the browser edge. */
.cri-hero-brand-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
}

.cri-hero-emblem {
    display: block;
    width: 100%;
    max-width: 500px;
    max-height: 330px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 28px rgba(18, 48, 61, 0.10));
}

/* =========================================================
   Shared Sections
   ========================================================= */

.cri-section {
    padding: 100px 0;
}

.cri-section-heading {
    max-width: 720px;
}

.cri-section-heading-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cri-section-heading h2,
.cri-about h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.cri-section-heading h2 span,
.cri-about h2 span {
    color: var(--cri-forest);
}

.cri-section-heading p {
    margin: 22px 0 0;
    color: var(--cri-gray);
    font-size: 17px;
    line-height: 1.7;
}

/* =========================================================
   Services
   ========================================================= */

.cri-services {
    background: white;
}

.cri-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 55px;
}

.cri-service-card {
    padding: 34px;
    border: 1px solid var(--cri-border);
    border-radius: 12px;
    background: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cri-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(20, 52, 61, 0.08);
}

.cri-service-label {
    margin-bottom: 8px;
    color: var(--cri-forest);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cri-service-card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.025em;
}

.cri-service-card p {
    margin: 14px 0 0;
    color: var(--cri-gray);
    line-height: 1.7;
}

/* =========================================================
   How We Work
   ========================================================= */

.cri-process {
    background: var(--cri-sage);
}

.cri-process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.cri-process-grid::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 2%;
    right: 2%;
    height: 1px;
    background: rgba(13, 77, 63, 0.20);
}

.cri-process-step {
    position: relative;
    padding-top: 34px;
}

.cri-process-marker {
    position: absolute;
    top: 2px;
    left: 0;
    width: 13px;
    height: 13px;
    border: 3px solid var(--cri-sage);
    border-radius: 50%;
    background: var(--cri-forest);
    box-shadow: 0 0 0 1px rgba(13, 77, 63, 0.30);
}

.cri-process-step h3 {
    margin: 0;
    font-size: 23px;
    color: var(--cri-navy);
}

.cri-process-step p {
    margin: 12px 0 0;
    color: var(--cri-gray);
    line-height: 1.7;
}

/* =========================================================
   About
   ========================================================= */

.cri-about {
    background: white;
}

.cri-about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: start;
}

.cri-about p {
    margin: 0 0 18px;
    color: var(--cri-gray);
    font-size: 16px;
    line-height: 1.8;
}

.cri-about .cri-about-lead {
    color: var(--cri-navy);
    font-size: 21px;
    line-height: 1.55;
}

/* =========================================================
   Contact
   ========================================================= */

.cri-contact {
    padding: 90px 0;
    background: var(--cri-navy);
    color: white;
}

.cri-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cri-contact .cri-eyebrow {
    color: #9ec9bc;
}

.cri-contact h2 {
    margin: 0;
    max-width: 650px;
    font-size: clamp(40px, 4.5vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.cri-contact h2 span {
    color: #8dc2b4;
}

.cri-contact p {
    margin: 18px 0 0;
    color: #b9c8cc;
    font-size: 17px;
}

.cri-button-light {
    flex-shrink: 0;
    background: white;
    color: var(--cri-navy);
}

.cri-button-light:hover {
    background: #eef5f3;
}

/* =========================================================
   Footer
   ========================================================= */

.cri-footer {
    background: var(--cri-navy-dark);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cri-footer-inner {
    min-height: 118px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
    padding: 24px 0;
}

.cri-footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.cri-footer-brand .cri-brand-mark {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 9px;
}

.cri-footer-brand div:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cri-footer-brand strong {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.cri-footer-brand span {
    margin-top: 5px;
    color: #8eb8ad;
    font-size: 9px;
    letter-spacing: 0.27em;
}

.cri-footer-copy {
    color: #b8c5c8;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
}

.cri-footer-copy span {
    margin: 0 8px;
    color: #638078;
}

.cri-footer-copyright {
    color: #81959b;
    font-size: 12px;
    text-align: right;
}

/* =========================================================
   Responsive: Tablet
   ========================================================= */

@media (max-width: 900px) {

    .cri-container {
        width: min(var(--cri-max-width), calc(100% - 40px));
    }

    .cri-nav {
        min-height: 94px;
    }

    .cri-brand {
        gap: 14px;
    }

    .cri-brand-mark {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
        border-radius: 12px;
    }

    .cri-brand-name span {
        font-size: 20px;
    }

    .cri-brand-name strong {
        font-size: 11px;
        letter-spacing: 0.24em;
    }

    .cri-navigation {
        gap: 16px;
    }

    .cri-navigation a:not(.cri-nav-button) {
        display: none;
    }

    /* On tablet/mobile the decorative hero artwork is removed rather than
       dropping below the buttons and creating a second full-width block. */
    .cri-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .cri-hero-content {
        max-width: 720px;
    }

    .cri-hero-brand-visual {
        display: none;
    }

    .cri-service-grid {
        grid-template-columns: 1fr;
    }

    .cri-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 42px;
    }

    /* Remove the timeline line and "radio button" dots at tablet/mobile sizes. */
    .cri-process-grid::before,
    .cri-process-marker {
        display: none;
    }

    .cri-process-step {
        padding-top: 0;
    }

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

    .cri-contact-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cri-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        padding: 34px 0;
    }

    .cri-footer-copy,
    .cri-footer-copyright {
        text-align: center;
    }
}

/* =========================================================
   Responsive: Phone
   ========================================================= */

@media (max-width: 600px) {

    .cri-container {
        width: min(var(--cri-max-width), calc(100% - 32px));
    }

    .cri-nav {
        min-height: 82px;
        gap: 12px;
    }

    .cri-brand {
        gap: 10px;
    }

    .cri-brand-mark {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
        border-radius: 10px;
    }

    .cri-brand-name span {
        font-size: 17px;
        letter-spacing: 0.055em;
    }

    .cri-brand-name strong {
        margin-top: 5px;
        font-size: 9px;
        letter-spacing: 0.20em;
    }

    .cri-navigation .cri-nav-button {
        padding: 10px 14px;
        font-size: 13px;
    }

    .cri-hero-grid {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .cri-hero-title {
        font-size: clamp(38px, 12vw, 48px);
        line-height: 1;
    }

    .cri-hero-title-line {
        white-space: nowrap;
    }

    .cri-tagline {
        font-size: 20px;
    }

    .cri-hero-text {
        font-size: 16px;
    }

    .cri-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cri-button {
        width: 100%;
    }

    .cri-section {
        padding: 72px 0;
    }

    .cri-section-heading h2,
    .cri-about h2 {
        font-size: 38px;
    }

    .cri-process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cri-contact {
        padding: 72px 0;
    }

    .cri-contact h2 {
        font-size: 40px;
    }

    .cri-footer-brand {
        justify-content: center;
    }
}

/* Extra-narrow phones: protect the exact two-line hero title. */
@media (max-width: 390px) {

    .cri-brand-name span {
        font-size: 15px;
    }

    .cri-brand-name strong {
        font-size: 8px;
    }

    .cri-navigation .cri-nav-button {
        padding: 9px 11px;
    }

    .cri-hero-title {
        font-size: 36px;
    }
}

/* Non-interactive heading: no focus outline is needed on this static version. */
.cri-hero-title:focus,
.cri-hero-title:focus-visible {
    outline: none;
    box-shadow: none;
}
