/* ==========================================================================
   Defati Investments — Sustainability-related disclosures
   style.css
   --------------------------------------------------------------------------
   1. Fonts
   2. Reset
   3. Typography
   4. Layout / Container
   5. Components
        5.1 Site header
        5.2 Hero (video + dark disclosures)
        5.3 Policy section (investor notice + remuneration)
        5.4 Site footer
   6. Utilities
   (Responsive rules live in responsive.css)
   ========================================================================== */

/* ==========================================================================
   1. FONTS
   Libre Bodoni is loaded via Google Fonts <link> in index.html.
   Cabinet Grotesk is self-hosted below.
   ========================================================================== */

@font-face {
    font-family: "Cabinet Grotesk";
    src: url("../assets/fonts/CabinetGrotesk-Regular.woff2") format("woff2"),
        url("../assets/fonts/CabinetGrotesk-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cabinet Grotesk";
    src: url("../assets/fonts/CabinetGrotesk-Medium.woff2") format("woff2"),
        url("../assets/fonts/CabinetGrotesk-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cabinet Grotesk";
    src: url("../assets/fonts/CabinetGrotesk-Bold.woff2") format("woff2"),
        url("../assets/fonts/CabinetGrotesk-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
figure,
address {
    margin: 0;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: 0.04em;
    color: var(--color-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

address {
    font-style: normal;
}

strong,
b {
    font-weight: 700;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: var(--lh-heading);
    letter-spacing: 0.01em;
}

/* ==========================================================================
   4. LAYOUT / CONTAINER
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

main {
    display: block;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* ---- 5.1 Site header ----------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    height: 100%;
}

.site-header__logo {
    display: flex;
    align-items: center;
    font-family: var(--font-serif);
    font-size: var(--fs-logo);
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
    letter-spacing: 0.01em;
}

.site-header__label {
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: normal;
    text-transform: uppercase;
    color: var(--color-muted);
    white-space: nowrap;
}

/* ---- 5.2 Hero ------------------------------------------------------------ */

.hero {
    position: relative;
    isolation: isolate;          /* establish stacking context */
    background-color: var(--color-black);
    overflow: hidden;
    color: var(--color-white);
}

/* Video + gradient layers fill the whole hero behind the content */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: var(--color-near-black);
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Rectangle 2.svg — transparent (top) -> solid black (bottom).
   Stretched over the hero so the lower content fades onto black. */
.hero__fade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../assets/images/rectangle-2.svg") center bottom / 100% 100%
        no-repeat;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem)
        clamp(3.5rem, 2rem + 6vw, 4rem);
}

/* Top block: heading + intro paragraph in two columns */
.hero__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    align-items: start;
}

.hero__title {
    font-size: var(--fs-hero);
    line-height: 1.2em;
    /* Width is governed by the grid column so the title breaks into two
       lines ("Sustainability-related" / "disclosures") as in the design. */
}

.hero__lead {
    font-size: var(--fs-disclosure);
    line-height: var(--lh-disclosure);
    font-weight: 400; /* Cabinet Grotesk Regular */
    color: var(--color-white);
    align-self: start;
    padding-top: 0.35rem;
}

.hero__divider {
    border: 0;
    height: 1px;
    background-color: var(--color-divider);
    margin-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

/* Dark disclosure blocks over the faded video */
.disclosure + .disclosure {
    margin-block-start: var(--space-section);
}

.disclosure__title {
    font-size: var(--fs-h2);
    margin-block-end: var(--space-md);
}

.disclosure__body {
    font-size: var(--fs-disclosure);
    line-height: var(--lh-disclosure);
    font-weight: 400; /* Cabinet Grotesk Regular */
    color: var(--color-body-light);
}

/* ---- 5.3 Policy section -------------------------------------------------- */

.policy {
    background-color: var(--color-white);
    padding-block: clamp(3.5rem, 2rem + 6vw, 4rem) var(--space-section);
}

/* Investor notice callout */
.notice {
    background-color: var(--color-notice-bg);
    border-left: 10px solid var(--color-accent);
    padding: clamp(1.5rem, 1rem + 1.6vw, 2rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.notice__title {
    font-family: var(--font-sans);
    font-size: var(--fs-disclosure); /* 18px */
    font-weight: 700;
    color: var(--color-ink);
    margin-block-end: 0.5rem;
}

.notice__text {
    font-size: var(--fs-disclosure); /* 18px */
    color: var(--color-muted-soft);
}

/* Remuneration policy */
.remuneration {
    margin-block-start: var(--space-section);
}

.remuneration__title {
    font-size: var(--fs-h2);
    color: var(--color-ink);
    margin-block-end: var(--space-md);
}

.remuneration__body {
    color: var(--color-body);
}

/* Paragraph breaks inside multi-paragraph content blocks */
.remuneration__body p + p,
.disclosure__body + .disclosure__body {
    margin-block-start: 1.5rem;
}

/* ---- 5.4 Site footer ----------------------------------------------------- */

.site-footer {
    background-color: var(--color-black);
    color: var(--color-footer-muted);
    padding-block: clamp(2.75rem, 1.75rem + 3vw, 3.75rem);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    column-gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: start;
}

.site-footer__brand {
    font-family: var(--font-serif);
    font-size: var(--fs-footer-logo);
    font-weight: 400;
    color: var(--color-white);
    margin-block-end: 0.85rem;
}

.site-footer__address {
    font-size: var(--fs-address);
    line-height: 1.55;
    color: var(--color-footer-muted);
}

.site-footer__disclaimer {
    font-size: var(--fs-small);
    line-height: 1.6;
    color: var(--color-footer-muted);
    max-width: 46ch;
    justify-self: end;
}

/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
