/* ========================================
   IMAGO FORGE — MASTER STYLESHEET
   ========================================
   Color Palette:
   --bg-primary:     #0a0a0a  (near-black)
   --gold:           #c9a84c  (burnished gold)
   --ember:          #e85d2c  (ember orange)
   --ivory:          #f5f0e6  (warm ivory)
   --glass-bg:       rgba(255, 245, 230, 0.06)
   --glass-border:   rgba(201, 168, 76, 0.15)
   ======================================== */

/* ----------------------------------------
   RESET & BASE
---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --gold: #c9a84c;
    --gold-light: #d4b96a;
    --gold-dark: #a8893d;
    --ember: #e85d2c;
    --ember-light: #f07a4f;
    --ivory: #f5f0e6;
    --ivory-muted: rgba(245, 240, 230, 0.7);
    --glass-bg: rgba(255, 245, 230, 0.06);
    --glass-bg-hover: rgba(255, 245, 230, 0.10);
    --glass-border: rgba(201, 168, 76, 0.15);
    --glass-border-hover: rgba(201, 168, 76, 0.35);
    --glass-blur: 20px;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
    --max-width: 1200px;
    --section-padding: clamp(80px, 10vw, 140px);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ivory);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------
   TYPOGRAPHY
---------------------------------------- */
.section-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ivory);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.section-subheading {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--ivory-muted);
    max-width: 640px;
    line-height: 1.8;
}

/* ----------------------------------------
   BUTTONS
---------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn--primary {
    background: var(--gold);
    color: var(--bg-primary);
}

.btn--primary:hover {
    background: var(--ember);
    color: var(--ivory);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 93, 44, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn--ghost:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.btn--large {
    padding: 20px 48px;
    font-size: 1rem;
}

/* ----------------------------------------
   GLASS CARD SYSTEM
---------------------------------------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 40px rgba(201, 168, 76, 0.08);
}

/* ----------------------------------------
   LOGO OPENER
---------------------------------------- */
.opener {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opener--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.opener__video {
    width: auto;
    height: 60vh;
    max-width: 60vw;
    object-fit: contain;
}

.opener__skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ivory-muted);
    background: none;
    border: 1px solid rgba(245, 240, 230, 0.2);
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.opener__skip:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* ----------------------------------------
   BACKGROUND VIDEO
---------------------------------------- */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-bg__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.2) 40%,
        rgba(10, 10, 10, 0.5) 70%,
        rgba(10, 10, 10, 0.85) 100%
    );
    pointer-events: none;
}

/* ----------------------------------------
   NAVIGATION
---------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-smooth);
}

.navbar--scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.navbar__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo-img {
    height: 50px;
    width: auto;
    transition: height var(--transition-smooth);
}

.navbar--scrolled .navbar__logo-img {
    height: 40px;
}

.navbar__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--ivory-muted);
    padding: 10px 16px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--gold);
}

.navbar__link--cta {
    background: var(--gold);
    color: var(--bg-primary);
    font-weight: 600;
    margin-left: 8px;
}

.navbar__link--cta:hover {
    background: var(--ember);
    color: var(--ivory);
}

/* Dropdown */
.navbar__dropdown {
    position: relative;
}

.navbar__link--dropdown::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform var(--transition-fast);
}

.navbar__dropdown:hover .navbar__link--dropdown::after {
    transform: rotate(-135deg);
}

.navbar__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.navbar__dropdown:hover .navbar__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ivory-muted);
    transition: all var(--transition-fast);
}

.navbar__dropdown-link:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar__hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--ivory);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar__hamburger--active .navbar__hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar__hamburger--active .navbar__hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger--active .navbar__hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ----------------------------------------
   HERO SECTION
---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative;
}

.hero__content {
    max-width: 800px;
}

.hero__pre-heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.1;
    color: var(--ivory);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero__heading em {
    font-style: normal;
    color: var(--gold);
}

.hero__subheading {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--ivory-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero__cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------
   PILLARS SECTION
---------------------------------------- */
.pillars {
    padding: var(--section-padding) 40px;
    position: relative;
}

.pillars__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pillars__header {
    text-align: center;
    margin-bottom: 4rem;
}

.pillars__header .section-subheading {
    margin: 0 auto;
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.pillar-card__image-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.pillar-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pillar-card:hover .pillar-card__image {
    transform: scale(1.05);
}

.pillar-card__content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pillar-card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ivory);
    margin-bottom: 0.75rem;
}

.pillar-card__text {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--ivory-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.pillar-card__link-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
}

.pillar-card:hover .pillar-card__link-text {
    color: var(--ember);
}

/* ----------------------------------------
   PORTFOLIO PREVIEW
---------------------------------------- */
.portfolio-preview {
    padding: var(--section-padding) 40px;
    position: relative;
}

.portfolio-preview__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.portfolio-preview__header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-preview__showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.portfolio-preview__image-wrap {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.portfolio-preview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-preview__showcase:hover .portfolio-preview__image {
    transform: scale(1.03);
}

.portfolio-preview__content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-preview__label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.portfolio-preview__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--ivory);
    margin-bottom: 1rem;
}

.portfolio-preview__text {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--ivory-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.portfolio-preview__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ----------------------------------------
   ABOUT TEASER
---------------------------------------- */
.about-teaser {
    padding: var(--section-padding) 40px;
    position: relative;
}

.about-teaser__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-teaser__text {
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--ivory-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-teaser__image-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.about-teaser__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-teaser__image-wrap:hover .about-teaser__image {
    transform: scale(1.03);
}

/* ----------------------------------------
   CTA SECTION
---------------------------------------- */
.cta-section {
    padding: var(--section-padding) 40px;
    position: relative;
}

.cta-section__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 48px;
}

.cta-section__heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--ivory);
    margin-bottom: 1rem;
}

.cta-section__text {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--ivory-muted);
    margin-bottom: 2rem;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
.footer {
    padding: 60px 40px 30px;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    position: relative;
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__brand {
    margin-bottom: 40px;
}

.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
}

.footer__tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--ivory-muted);
    font-style: italic;
}

.footer__nav {
    display: flex;
    gap: 80px;
    margin-bottom: 40px;
}

.footer__nav-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ivory-muted);
    transition: color var(--transition-fast);
}

.footer__nav-link:hover {
    color: var(--gold);
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(245, 240, 230, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--ivory-muted);
    font-weight: 300;
}

.footer__scripture {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(201, 168, 76, 0.5);
    font-style: italic;
    letter-spacing: 0.1em;
}

/* ----------------------------------------
   SCROLL ANIMATIONS
---------------------------------------- */
.animate-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delay for grid items */
.pillars__grid .pillar-card:nth-child(1) { transition-delay: 0s; }
.pillars__grid .pillar-card:nth-child(2) { transition-delay: 0.15s; }
.pillars__grid .pillar-card:nth-child(3) { transition-delay: 0.3s; }
.pillars__grid .pillar-card:nth-child(4) { transition-delay: 0.45s; }

/* ----------------------------------------
   RESPONSIVE — TABLET (max-width: 1024px)
---------------------------------------- */
@media (max-width: 1024px) {
    .pillars__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .portfolio-preview__showcase {
        grid-template-columns: 1fr;
    }

    .portfolio-preview__image-wrap {
        min-height: 280px;
    }

    .portfolio-preview__content {
        padding: 36px;
    }

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

    .about-teaser__image-wrap {
        max-height: 400px;
    }
}

/* ----------------------------------------
   RESPONSIVE — MOBILE (max-width: 768px)
---------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .navbar__container {
        padding: 0 20px;
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--glass-border);
        overflow-y: auto;
    }

    .navbar__nav--open {
        right: 0;
    }

    .navbar__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .navbar__link {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(245, 240, 230, 0.06);
    }

    .navbar__link--cta {
        margin-left: 0;
        margin-top: 16px;
        text-align: center;
    }

    .navbar__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    .navbar__dropdown-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(245, 240, 230, 0.04);
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }

    .hero__heading {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta-group .btn {
        width: 100%;
        max-width: 300px;
    }

    .pillars {
        padding: 60px 20px;
    }

    .pillar-card__image-wrap {
        height: 180px;
    }

    .portfolio-preview {
        padding: 60px 20px;
    }

    .portfolio-preview__content {
        padding: 28px;
    }

    .about-teaser {
        padding: 60px 20px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section__container {
        padding: 40px 28px;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer__nav {
        flex-direction: column;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .opener__video {
        height: 50vh;
        max-width: 90vw;
    }

    .opener__skip {
        bottom: 24px;
        right: 24px;
    }
}

/* ----------------------------------------
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
---------------------------------------- */
@media (max-width: 480px) {
    .hero__heading {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    .pillar-card__content {
        padding: 20px;
    }

    .portfolio-preview__content {
        padding: 20px;
    }

    .portfolio-preview__title {
        font-size: 1.5rem;
    }
}
