:root {
    --primary: #a63b00;
    --primary-bright: #ff5e00;
    --primary-deep: #531900;
    --gold: #d4af37;
    --ink: #191c1d;
    --muted: #555f6f;
    --surface: #f8f9fa;
    --surface-low: #f3f4f5;
    --white: #ffffff;
    --outline: #e4bfb1;
    --shadow: 0 24px 70px rgba(83, 25, 0, 0.12);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--surface);
    font-family: "Geist", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--white);
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header:has(.mobile-nav:not([hidden])) {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(228, 191, 177, 0.35);
    box-shadow: 0 12px 36px rgba(25, 28, 29, 0.06);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(calc(100% - 40px), var(--container));
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: "Cinzel", serif;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.site-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2.25rem);
    margin-left: auto;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

/* Hide on first load ONLY for index.php (which does not have .theme-page body class) */
body:not(.theme-page) .site-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

/* Show when scrolled ONLY for index.php */
body:not(.theme-page) .site-header.is-scrolled .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-nav__link {
    position: relative;
    padding: 0.45rem 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.78;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav__link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    opacity: 1;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header.is-scrolled .site-nav__link:hover,
.site-header.is-scrolled .site-nav__link.is-active {

    color: var(--primary);
}

.button {
    min-height: 46px;
    padding: 0.85rem 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}

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

.button--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    box-shadow: 0 10px 28px rgba(166, 59, 0, 0.22);
}

.button--primary:hover {
    box-shadow: 0 14px 34px rgba(166, 59, 0, 0.32);
}

.button--light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.button--light:hover {
    background: rgba(255, 255, 255, 0.15);
}

.button--outline {
    color: var(--primary);
    border-color: rgba(166, 59, 0, 0.28);
    background: transparent;
}

.button--outline:hover {
    border-color: var(--primary);
    background: rgba(166, 59, 0, 0.05);
}

.site-header__cta {
    margin-left: 0.5rem;
}

.menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    display: none;
    border: none;
    color: inherit;
    background: transparent;
    flex: 0 0 auto;
}

.menu-toggle span {
    width: 18px;
    height: 1px;
    margin: 4px auto;
    display: block;
    background: currentColor;
}

.mobile-nav {
    width: min(calc(100% - 40px), var(--container));
    max-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 1rem 0 2rem;
    overflow-y: auto;
}

.mobile-nav .site-nav__link {
    padding: 0.85rem 0;
    display: block;
}

.mobile-nav .button {
    width: 100%;
    margin-top: 0.75rem;
}

.page-hero {
    position: relative;
    min-height: min(760px, 88vh);
    padding: 150px 20px 90px;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
    color: var(--white);
    background: #1d120d;
}

.page-hero::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    transform: scale(1.025);
}

.page-hero::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 50% 56%, rgba(212, 175, 55, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(12, 8, 6, 0.46), rgba(12, 8, 6, 0.78));
}

.page-hero__texture {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.16;
    background-image: radial-gradient(rgba(255, 255, 255, 0.65) 0.6px, transparent 0.6px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.page-hero__content {
    width: min(100%, 880px);
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    max-width: 100%;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-wrap: balance;
}

.eyebrow::before,
.eyebrow::after {
    width: 26px;
    height: 1px;
    content: "";
    background: currentColor;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Cinzel", serif;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.page-hero p {
    max-width: 690px;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.page-hero--entrance {
    --hero-image: url("../images/temple-entrance-hero.png");
}

.page-hero--corridor {
    --hero-image: url("../images/temple-corridor.jpg");
}

.page-hero--sunset {
    --hero-image: url("../images/temple-sunset.jpg");
}

.page-hero--glow {
    --hero-image: url("../images/temple-entrance-glow.jpg");
}

.section {
    padding: clamp(4.5rem, 9vw, 8rem) 20px;
}

.section--white {
    background: var(--white);
}

.section--soft {
    background:
        linear-gradient(rgba(248, 249, 250, 0.94), rgba(248, 249, 250, 0.94)),
        url("../images/temple-sketch-background.png") center / cover;
}

.section--dark {
    color: var(--white);
    background: #17110e;
}

.container {
    width: min(100%, var(--container));
    margin: 0 auto;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 3rem;
}

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

.section-kicker {
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.section--dark .section-kicker {
    color: var(--gold);
}

.section-heading h2,
.split-copy h2,
.feature-panel h2,
.form-panel h2 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section-heading p,
.split-copy>p,
.feature-panel>p,
.form-panel>p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section--dark .section-heading p,
.section--dark .feature-panel>p {
    color: rgba(255, 255, 255, 0.68);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6.5rem);
}

.split-layout--reverse .split-media {
    order: 2;
}

.split-media {
    position: relative;
}

.split-media::before {
    position: absolute;
    inset: -16px 16px 16px -16px;
    z-index: 0;
    content: "";
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 32px;
}

.split-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.split-copy .section-kicker {
    margin-bottom: 1rem;
}

.check-list {
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    list-style: none;
}

.check-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
    gap: 0.85rem;
}

.check-list .material-symbols-outlined {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: rgba(166, 59, 0, 0.09);
    font-size: 1rem;
}

.check-list strong {
    display: block;
    font-size: 0.96rem;
}

.check-list span:last-child {
    color: var(--muted);
    font-size: 0.92rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.info-card {
    min-height: 280px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;

    border: 1px solid rgba(228, 191, 177, 0.42);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 36px rgba(83, 25, 0, 0.06);
    backdrop-filter: blur(12px);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(83, 25, 0, 0.1);
}

.info-card__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.info-card h3 {
    margin: 1.5rem 0 0.65rem;
    font-family: "Cinzel", serif;
    font-size: 1.25rem;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.feature-panel {
    position: relative;
    min-height: 520px;
    padding: clamp(2rem, 6vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    isolation: isolate;
    overflow: hidden;
    border-radius: 36px;
    background: #1b100a;
    box-shadow: var(--shadow);
}

.feature-panel::before,
.feature-panel::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
}

.feature-panel::before {
    background: var(--panel-image) center / cover;
}

.feature-panel::after {
    z-index: -1;
    background: linear-gradient(90deg, rgba(15, 9, 6, 0.94), rgba(15, 9, 6, 0.58) 62%, rgba(15, 9, 6, 0.2));
}

.feature-panel__content {
    max-width: 650px;
}

.feature-panel--sunset {
    --panel-image: url("../images/temple-sunset.jpg");
}

.feature-panel .hero-actions {
    justify-content: flex-start;
}

.metric-row {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.metric {
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
}

.metric strong,
.metric span {
    display: block;
}

.metric strong {
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
}

.metric span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
}

.process-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.process-timeline::before {
    position: absolute;
    top: 34px;
    bottom: 34px;
    left: 50%;
    width: 1px;
    content: "";
    background: linear-gradient(var(--primary), var(--gold), rgba(228, 191, 177, 0.2));
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 4.5rem 4rem 0;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 4.5rem;
}

.timeline-item__marker {
    position: absolute;
    top: 0;
    right: -28px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 6px solid var(--surface);
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    box-shadow: 0 10px 26px rgba(166, 59, 0, 0.23);
    font-family: "Cinzel", serif;
    font-weight: 700;
}

.timeline-item:nth-child(even) .timeline-item__marker {
    right: auto;
    left: -28px;
}

.timeline-item__phase {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.timeline-item h2 {
    margin: 0.45rem 0 0.7rem;
    font-family: "Cinzel", serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: steps;
}

.step-card {
    position: relative;
    padding: 2rem 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    counter-increment: steps;
}

.step-card::after {
    position: absolute;
    top: -22px;
    right: 8px;
    content: "0" counter(steps);
    color: rgba(255, 255, 255, 0.055);
    font-family: "Cinzel", serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
}

.step-card .material-symbols-outlined {
    color: var(--gold);
}

.step-card h3 {
    margin: 3rem 0 0.6rem;
    font-family: "Cinzel", serif;
}

.step-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.contact-stack {
    display: grid;
    gap: 1rem;
}

.contact-card {
    padding: 1.4rem;
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(228, 191, 177, 0.45);
    border-radius: 20px;
    background: var(--white);
}

.contact-card .material-symbols-outlined {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: rgba(166, 59, 0, 0.07);
}

.contact-card strong,
.contact-card span,
.contact-card a {
    display: block;
}

.contact-card strong {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card span,
.contact-card a {
    margin-top: 0.2rem;
    color: var(--muted);
}

.contact-card a:hover {
    color: var(--primary);
}

.form-panel {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid rgba(228, 191, 177, 0.45);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.5rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(91, 65, 55, 0.2);
    border-radius: 14px;
    outline: none;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input,
.form-field select {
    height: 52px;
    padding: 0 1rem;
}

.form-field textarea {
    min-height: 150px;
    padding: 0.9rem 1rem;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(166, 59, 0, 0.08);
}

.form-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.site-footer {
    padding: 5rem 20px 1.5rem;
    border-top: 1px solid rgba(228, 191, 177, 0.4);
    background: var(--white);
}

.site-footer__inner,
.site-footer__bottom {
    width: min(100%, var(--container));
    margin: 0 auto;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.site-footer__brand p {
    max-width: 510px;
    margin: 1rem 0 0;
    color: var(--muted);
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.site-footer__links h2 {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__links a,
.site-footer__links span {
    margin: 0.55rem 0;
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer__links a:hover,
.site-footer__bottom a:hover {
    color: var(--primary);
}

.site-footer__bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(228, 191, 177, 0.35);
    color: var(--muted);
    font-size: 0.78rem;
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 1024px) {

    .site-nav,
    .site-header__cta {
        display: none;
    }

    .menu-toggle {
        margin-left: auto;
        display: block;
    }

    .card-grid,
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-hero {
        min-height: 680px;
    }

    .split-layout,
    .contact-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .split-layout--reverse .split-media {
        order: initial;
    }

    .split-media {
        max-width: 520px;
        margin: 0 auto;
    }

    .card-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: 230px;
    }

    .process-timeline::before {
        left: 28px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 3.5rem 5.25rem;
    }

    .timeline-item__marker,
    .timeline-item:nth-child(even) .timeline-item__marker {
        right: auto;
        left: 0;
    }

    .form-grid,
    .site-footer__links {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .site-header__inner,
    .mobile-nav {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-brand img {
        width: 42px;
        height: 42px;
    }

    .page-hero {
        padding-right: 16px;
        padding-left: 16px;
    }

    .eyebrow {
        gap: 0.5rem;
        font-size: 0.62rem;
        letter-spacing: 0.16em;
    }

    .eyebrow::before,
    .eyebrow::after {
        width: 16px;
        flex: 0 1 16px;
    }

    .page-hero h1 {
        font-size: clamp(2.1rem, 10.5vw, 2.65rem);
    }

    .page-hero p {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .feature-panel {
        min-height: 600px;
        border-radius: 26px;
    }
}

/* --- Scroll Animations --- */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}