/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Raleway:wght@200;300;400&display=swap');

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════════════
   FULL-SCREEN BACKGROUND
   ══════════════════════════════════════════════════════════════════════════ */
body {
    background-color: #0d130d; /* fallback while image loads */
    background-image: url('../images/cascadebkg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Dark overlay so content stays readable */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 10, 0.42);
    z-index: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   WATERFALL CANVAS
   ══════════════════════════════════════════════════════════════════════════ */
#cascade-waterfall {
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(220px, 30vw, 460px);
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.65;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
#page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════════════════ */
#main-header {
    background: rgba(5, 10, 5, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Text Logo ── */
.cascade-text-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-decoration: none;
    padding: 6px 0;
}

.cascade-text-logo__name {
    display: block;
    font-family: 'Cinzel Decorative', 'Georgia', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3.2vw, 2.6rem);
    letter-spacing: 0.03em;
    color: #ffffff;
    text-shadow:
        1px  1px  0   rgba(255,255,255,0.18),
        2px  2px  0   rgba(200,200,200,0.12),
        3px  3px  0   rgba(80,80,80,0.10),
        0    4px 12px rgba(0,0,0,0.75),
        0    0   22px rgba(255,255,255,0.07);
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.55));
}

.cascade-text-logo__sub {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: clamp(0.5rem, 1vw, 0.8rem);
    letter-spacing: 0.52em;
    text-transform: lowercase;
    color: rgba(255,255,255,0.78);
    text-shadow: 0 1px 5px rgba(0,0,0,0.7);
    align-self: flex-end;
    padding-right: 0.05em;
    margin-top: 3px;
}

/* ── Navigation ── */
#top-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

#top-menu li a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    transition: color 0.18s, text-shadow 0.18s;
}

#top-menu li a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(200,230,255,0.6);
}

#top-menu .contact-btn a {
    background: linear-gradient(to bottom, rgba(80,110,80,0.85), rgba(30,55,30,0.90));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 7px 18px;
    color: #ffffff;
    transition: opacity 0.18s, transform 0.1s;
}

#top-menu .contact-btn a:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-shadow: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    text-align: center;
    padding: 60px 24px;
}

/* Homepage: lock to viewport so footer is always visible */
.page-home #page-wrapper {
    height: 100vh;
    overflow: hidden;
}

.page-home main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-home .hero {
    flex: 1;
    min-height: 0;
}

.hero-content {
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-headline {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.15;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    font-weight: 300;
    color: rgba(255,255,255,0.70);
    line-height: 1.75;
    letter-spacing: 0.04em;
    margin-bottom: 40px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(to bottom, rgba(80,110,80,0.9), rgba(30,55,30,0.95));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 14px 36px;
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.12s;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    padding: 14px 36px;
    color: rgba(255,255,255,0.88);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, transform 0.12s;
    display: inline-block;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
#main-footer {
    background: rgba(5,10,5,0.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 28px;
    text-align: center;
}

.cascade-copyright {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cascade-copyright a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    transition: color 0.15s;
}

.cascade-copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cascade-copyright .sep {
    margin: 0 8px;
    opacity: 0.30;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.cascade-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.68);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cascade-modal-overlay.is-open {
    display: flex;
    animation: cmFadeIn 0.22s ease;
}

@keyframes cmFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cascade-modal {
    background: rgba(12, 18, 12, 0.96);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 14px;
    padding: 40px 44px;
    width: min(500px, 94vw);
    position: relative;
    animation: cmSlideUp 0.25s ease;
    box-shadow: 0 24px 70px rgba(0,0,0,0.65);
}

@keyframes cmSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cascade-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
    padding: 0;
}

.cascade-modal__close:hover { color: #ffffff; }

.cascade-modal__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.65rem;
    color: #ffffff;
    margin: 0 0 28px;
    letter-spacing: 0.07em;
}

.cascade-form__group { margin-bottom: 20px; }

.cascade-form__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 7px;
    font-family: 'Raleway', sans-serif;
}

.cascade-form__input,
.cascade-form__textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 7px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    resize: vertical;
}

.cascade-form__input::placeholder,
.cascade-form__textarea::placeholder {
    color: rgba(255,255,255,0.28);
}

.cascade-form__input:focus,
.cascade-form__textarea:focus {
    border-color: rgba(180,220,180,0.45);
    background: rgba(255,255,255,0.09);
}

.cascade-form__textarea { min-height: 120px; }

.cascade-form__submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(to bottom, rgba(80,110,80,0.9) 0%, rgba(30,55,30,0.95) 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    margin-top: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

.cascade-form__submit:hover:not(:disabled) {
    opacity: 0.85;
    transform: translateY(-1px);
}

.cascade-form__submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cascade-form__status {
    margin-top: 14px;
    font-size: 0.88rem;
    text-align: center;
    min-height: 1.3em;
    font-family: 'Raleway', sans-serif;
}

.cascade-form__status--success { color: #7ecf8a; }
.cascade-form__status--error   { color: #e07575; }

/* ══════════════════════════════════════════════════════════════════════════
   COMING SOON
   ══════════════════════════════════════════════════════════════════════════ */
.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.coming-soon-icon {
    opacity: 0.75;
    margin-bottom: 8px;
}

.coming-soon-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: 0.12em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    margin: 0;
}

.coming-soon-sub {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    font-weight: 300;
    color: rgba(255,255,255,0.60);
    letter-spacing: 0.06em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    margin: 0;
}

.coming-soon-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ACTIVE NAV LINK
   ══════════════════════════════════════════════════════════════════════════ */
#top-menu li a.nav-active {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(200,230,255,0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE HERO (interior pages)
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero {
    text-align: center;
    padding: 72px 24px 48px;
}

.page-hero__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    margin-bottom: 14px;
}

.page-hero__sub {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES GRID
   ══════════════════════════════════════════════════════════════════════════ */
.services-grid-section {
    padding: 0 32px 80px;
    max-width: 1240px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 60px;
}

.service-card {
    background: rgba(10, 16, 10, 0.62);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 32px 24px 28px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.20);
    background: rgba(10, 16, 10, 0.75);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon i {
    font-size: 1.55rem;
    color: rgba(180,230,200,0.90);
}

.service-card__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.83rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.58);
    letter-spacing: 0.02em;
}

/* CTA row below grid */
.services-cta {
    text-align: center;
    padding-top: 12px;
}

.services-cta__text {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    margin-bottom: 22px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Hide middle nav items — only Contact Us on mobile */
    #top-menu li:not(.contact-btn) { display: none; }
    #top-menu { gap: 0; }

    .services-grid { grid-template-columns: 1fr; }
    .services-grid-section { padding: 0 16px 60px; }

    .cascade-modal { padding: 30px 24px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; max-width: 280px; text-align: center; }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll; /* avoid parallax jank on iOS */
    }
    #cascade-waterfall { width: clamp(140px, 38vw, 220px); }
}
