/*
Theme Name: Creation in the Dark Holdings
Theme URI: https://creationinthedark.co.za/
Author: Creation in the Dark Holdings
Description: Custom website theme for Creation in the Dark Holdings (Pty) Ltd.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: citd-holdings
*/


/* =========================================================
   ROOT
   ========================================================= */

:root {

    --citd-black: #050505;
    --citd-near-black: #0b0b0b;
    --citd-dark: #141414;
    --citd-charcoal: #1d1d1b;

    --citd-white: #f2f0ea;
    --citd-soft-white: #e8e6df;
    --citd-muted: #b8b5ae;

    --citd-warm: #a99b84;

    --citd-line: rgba(242,240,234,.14);
    --citd-line-strong: rgba(242,240,234,.24);

    --font-display: "Manrope", Arial, sans-serif;
    --font-body: "Manrope", Arial, sans-serif;
    --font-ui: "Manrope", Arial, sans-serif;

}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--citd-black);
    color: var(--citd-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

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


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 8rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 5.5rem);
}

h3 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

p {
    margin-top: 0;
}

.citd-body-large {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.55;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.citd-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.citd-container-wide {
    width: min(1400px, calc(100% - 48px));
    margin-inline: auto;
}

.citd-section {
    padding: clamp(90px, 12vw, 180px) 0;
}

.citd-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 8vw, 120px);
}


/* =========================================================
   HEADER
   ========================================================= */

.citd-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    padding: 22px 0;

    background: transparent;

    transition:
        background .3s ease,
        border-color .3s ease,
        padding .3s ease;
}

.citd-header.is-scrolled {
    background: rgba(5,5,5,.92);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--citd-line);

    padding: 15px 0;
}

.citd-header-inner {
    width: min(1400px, calc(100% - 48px));

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   HEADER BRAND
   ========================================================= */

.citd-site-brand {
    display: inline-flex;

    flex-direction: row;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    color: var(--citd-white);

    text-decoration: none;
}

.citd-site-brand-mark {
    display: block;

    width: 52px;
    height: 52px;

    min-width: 52px;
    min-height: 52px;

    max-width: 52px;
    max-height: 52px;

    object-fit: contain;

    flex: 0 0 52px;
}

.citd-site-brand-name {
    display: block;

    color: var(--citd-white);

    font-family: var(--font-display);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.02em;

    white-space: nowrap;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.citd-desktop-nav {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-direction: row;

    flex-wrap: nowrap;

    gap: 32px;

    margin-left: auto;

    white-space: nowrap;
}

.citd-desktop-nav a {
    display: inline-block;

    position: relative;

    margin: 0;

    padding: 5px 0;

    color: var(--citd-soft-white);

    text-decoration: none;

    font-family: var(--font-ui);

    font-size: 12px;

    font-weight: 600;

    line-height: 1.2;

    letter-spacing: .06em;

    text-transform: uppercase;

    white-space: nowrap;

    transition: opacity .25s ease;
}

.citd-desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: var(--citd-white);

    transition: width .25s ease;
}

.citd-desktop-nav a:hover {
    opacity: .75;
}

.citd-desktop-nav a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.citd-menu-toggle {
    display: none;

    padding: 10px 0;

    border: 0;

    background: transparent;

    color: var(--citd-white);

    font-family: var(--font-ui);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;
}

.citd-mobile-nav {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.citd-hero {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    display: flex;

    align-items: flex-end;
}

.citd-hero-media {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
}

.citd-hero-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}

.citd-hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.82) 0%,
            rgba(0,0,0,.58) 45%,
            rgba(0,0,0,.22) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0,0,0,.70) 0%,
            transparent 60%
        );
}

.citd-hero-content {
    position: relative;

    z-index: 2;

    width: min(1400px, calc(100% - 48px));

    margin: 0 auto;

    padding:
        160px 0
        clamp(70px, 10vw, 150px);
}

.citd-eyebrow {
    display: block;

    margin-bottom: 24px;

    color: var(--citd-muted);

    font-family: var(--font-ui);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.citd-hero-title {
    max-width: 950px;
}

.citd-hero-description {
    max-width: 650px;

    margin: 35px 0 0;

    color: var(--citd-soft-white);

    font-size: clamp(1rem, 1.6vw, 1.3rem);

    line-height: 1.65;
}

.citd-hero-actions {
    margin-top: 40px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.citd-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 0 25px;

    border: 1px solid var(--citd-white);

    background: var(--citd-white);

    color: var(--citd-black);

    font-family: var(--font-ui);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.citd-button:hover {
    background: transparent;

    color: var(--citd-white);
}

.citd-button--outline {
    background: transparent;

    color: var(--citd-white);

    border-color: var(--citd-line-strong);
}

.citd-button--outline:hover {
    background: var(--citd-white);

    color: var(--citd-black);
}


/* =========================================================
   BRANDS
   ========================================================= */

.citd-brands {
    margin-top: 70px;

    display: grid;

    /* IMPORTANT:
       The two brands sit NEXT TO EACH OTHER on desktop. */
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;
}

.citd-brand {
    position: relative;

    min-height: 650px;

    overflow: hidden;

    border: 1px solid var(--citd-line);
}

.citd-brand-media {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
}

.citd-brand-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform .8s cubic-bezier(.2,.7,.2,1);
}

.citd-brand:hover .citd-brand-media img {
    transform: scale(1.04);
}

.citd-brand-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.62) 50%,
            rgba(0,0,0,.18) 100%
        );
}

.citd-brand-content {
    position: relative;

    z-index: 2;

    max-width: 650px;

    height: 100%;

    padding: clamp(35px, 5vw, 70px);

    display: flex;

    flex-direction: column;

    justify-content: flex-end;
}

.citd-brand-content p {
    color: var(--citd-soft-white);
}

.citd-brand-content h2 {
    margin-bottom: 22px;
}

.citd-brand-content .citd-button {
    margin-top: 20px;
    align-self: flex-start;
}


/* =========================================================
   EDITORIAL / STORY
   ========================================================= */

.citd-editorial {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, .9fr);

    align-items: center;

    gap: clamp(45px, 8vw, 120px);
}

.citd-editorial-media {
    overflow: hidden;
}

.citd-editorial-media img {
    display: block;

    width: 100%;

    min-height: 600px;

    object-fit: cover;

    object-position: center;
}

.citd-editorial-copy {
    max-width: 600px;
}

.citd-editorial-copy p {
    color: var(--citd-muted);
}


/* =========================================================
   PRINCIPLES
   ========================================================= */

.citd-principles {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 0;

    margin-top: 80px;

    border-top: 1px solid var(--citd-line);
}

.citd-principle {
    padding: 40px 35px 20px;

    border-right: 1px solid var(--citd-line);
}

.citd-principle:first-child {
    padding-left: 0;
}

.citd-principle:last-child {
    border-right: 0;
}

.citd-principle p {
    max-width: 380px;

    color: var(--citd-muted);
}

.citd-label {
    display: block;

    margin-bottom: 22px;

    color: var(--citd-warm);

    font-family: var(--font-ui);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.citd-final {
    position: relative;

    min-height: 650px;

    display: flex;

    align-items: center;

    overflow: hidden;
}

.citd-final .citd-hero-media {
    position: absolute;

    inset: 0;
}

.citd-final .citd-hero-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.citd-final > .citd-hero-overlay {
    z-index: 1;
}

.citd-final > .citd-container {
    position: relative;

    z-index: 2;
}

.citd-final h2 {
    max-width: 900px;
}

.citd-final .citd-body-large {
    max-width: 650px;

    margin-top: 30px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.citd-footer {
    padding: 70px 0 25px;

    background: var(--citd-black);

    border-top: 1px solid var(--citd-line);
}

.citd-footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 60px;
}

.citd-footer-brand {
    max-width: 350px;
}

.citd-footer-brand p {
    margin-top: 15px;

    color: var(--citd-muted);

    font-size: 13px;
}

.citd-footer nav ul {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(100px, 1fr));

    gap: 10px 45px;

    padding: 0;

    margin: 0;

    list-style: none;
}

.citd-footer nav a {
    color: var(--citd-muted);

    font-size: 12px;

    text-decoration: none;

    transition: color .25s ease;
}

.citd-footer nav a:hover {
    color: var(--citd-white);
}

.citd-footer-bottom {
    margin-top: 60px;

    padding-top: 20px;

    border-top: 1px solid var(--citd-line);

    color: var(--citd-muted);

    font-size: 11px;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.citd-reveal {
    opacity: 1;

    transform: translateY(0);
}

.js .citd-reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.js .citd-reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .citd-desktop-nav {
        gap: 24px;
    }

    .citd-desktop-nav a {
        font-size: 11px;
    }

    .citd-brand {
        min-height: 600px;
    }

    .citd-brand-content {
        padding: 40px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .citd-desktop-nav {
        display: none;
    }

    .citd-menu-toggle {
        display: inline-flex;
    }

    .citd-mobile-nav {
        display: flex;

        flex-direction: column;

        position: fixed;

        top: 0;
        right: 0;

        width: min(380px, 88vw);

        height: 100vh;

        padding: 110px 35px 40px;

        background: var(--citd-near-black);

        transform: translateX(100%);

        transition: transform .35s ease;

        z-index: -1;
    }

    .citd-mobile-nav.is-open {
        transform: translateX(0);
    }

    .citd-mobile-nav a {
        padding: 18px 0;

        border-bottom: 1px solid var(--citd-line);

        color: var(--citd-white);

        font-family: var(--font-ui);

        font-size: 14px;

        font-weight: 700;

        letter-spacing: .04em;

        text-decoration: none;
    }

    .citd-grid-2 {
        grid-template-columns: 1fr;
    }

    .citd-editorial {
        grid-template-columns: 1fr;
    }

    .citd-principles {
        grid-template-columns: 1fr;
    }

    .citd-principle {
        padding: 35px 0;

        border-right: 0;

        border-bottom: 1px solid var(--citd-line);
    }

    .citd-principle:last-child {
        border-bottom: 0;
    }

    .citd-footer-inner {
        flex-direction: column;
    }

    /* Brands stack only on mobile */
    .citd-brands {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .citd-container,
    .citd-container-wide,
    .citd-header-inner,
    .citd-hero-content {
        width: min(100% - 32px, 1400px);
    }

    .citd-header {
        padding: 14px 0;
    }

    .citd-site-brand {
        gap: 10px;
    }

    .citd-site-brand-mark {
        width: 42px;
        height: 42px;

        min-width: 42px;
        min-height: 42px;

        max-width: 42px;
        max-height: 42px;

        flex-basis: 42px;
    }

    .citd-site-brand-name {
        font-size: 12px;
    }

    .citd-hero-content {
        padding:
            140px 0
            70px;
    }

    .citd-brand {
        min-height: 650px;
    }

    .citd-brand-content {
        padding: 35px 25px;
    }

    .citd-editorial-media img {
        min-height: 380px;
    }

    .citd-final {
        min-height: 560px;
    }

    .citd-footer nav ul {
        grid-template-columns: 1fr;
    }

}