/* ==================================
   BASE PROPERTIES
   ================================== */

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

/* Self-hosted Inter variable font */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;

  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2190-21FF;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter/InterVariable-Italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;

  unicode-range: U+0000-00FF, U+0100-017F, U+2000-206F, U+20AC, U+2190-21FF;
}

:root {
    --font-sans: 'Inter', system-ui, sans-serif;

    /* type scale */
    --fs-massive: 4.5rem;
    --fs-h1: 2.75rem;
    --fs-h2: 2rem;
    --fs-h3: 1.375rem;
    --fs-h4: 1.125rem;

    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* spacing */
    --space-xxs: .25rem;
    --space-xs: .5rem;
    --space-s: .75rem;
    --space-m: 1rem;
    --space-l: 1.25rem;
    --space-xl: 1.5rem;
    --space-xxl: 2.5rem;
    --space-section: 6rem;
    --space-block: 3.5rem;

    /* line height */
    --lh-body: 1.6;
    --lh-heading: 1.2;

    /* colors — graphite / off-white / restrained cool teal accent */
    --color-graphite: #17191b;
    --color-text: #1b1d1f;
    --color-text-muted: #6b7075;
    --color-text-muted-20: rgba(107, 112, 117, 0.2);

    --color-primary: #2e7d8c;
    --color-primary-rgb: 46, 125, 140;
    --color-primary-bg-20: rgba(var(--color-primary-rgb), 0.16);
    --color-secondary: #cfe6e2;

    --color-border: rgba(20, 20, 20, 0.09);
    --color-border-strong: rgba(20, 20, 20, 0.18);
    --color-bg: #ffffff;
    --color-background-grey: #f2f3f5;

    --color-red: #d0463f;
    --color-red-hover: #b83a34;

    --border-primary: 1px solid var(--color-border);
    --border-big: 2px solid var(--color-border);
    --border-grey: 1px solid var(--color-text-muted-20);

    /* dark graphite surface for hero / footer */
    --gradient-1: linear-gradient(160deg, #22262a 0%, #121416 100%);

    /* radius system — 8 to 20px */
    --border-radius: 10px;
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 20px;
    --radius-full: 999px;

    /* elevation */
    --shadow-soft: 0 8px 24px rgba(20, 20, 20, 0.06);
    --shadow-card: 0 10px 30px rgba(20, 20, 20, 0.08);
    --shadow-elevated: 0 24px 60px rgba(20, 20, 20, 0.16);

    /* glass / translucent surfaces */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);

    --ease: cubic-bezier(.4, 0, .2, 1);
}

section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

section:first-of-type {
    padding: 0;
}

section .section-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-block);
    margin-bottom: var(--space-l);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-m);
    z-index: 10000;
    background: var(--color-graphite);
    color: #fff;
    padding: var(--space-s) var(--space-l);
    border-radius: var(--radius-s);
    font-weight: var(--fw-semibold);
    transition: top 150ms ease;
}

.skip-link:focus {
    top: var(--space-m);
}

body {
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    line-height: var(--lh-heading);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-s);
}

h1, .h1 {
    font-weight: var(--fw-bold);
    font-size: var(--fs-h1);
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-weight: var(--fw-semibold);
    font-size: var(--fs-h2);
}

h3, .h3 {
    font-size: var(--fs-h3);
}

h4, .h4 {
    font-size: var(--fs-h4);
}

p {
    margin-bottom: var(--space-m);
}

a {
    color: var(--color-primary);
    font-weight: var(--fw-medium);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

small, .text-muted {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

strong {
    font-weight: var(--fw-semibold);
}

.medium {
    font-weight: var(--fw-medium);
}

.bold {
    font-weight: var(--fw-bold);
}

.container {
    max-width: 1120px;
    padding-left: var(--space-m);
    padding-right: var(--space-m);
    margin-left: auto;
    margin-right: auto;
}

.container p {
    color: var(--color-text-muted);
}

.color-primary {
    color: var(--color-primary);
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    opacity: 1;
}

.title-description {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: var(--space-xl);
    text-align: center;
}

.title-description p {
   color: var(--color-text-muted);
   font-size: var(--fs-h3);
   max-width: 640px;
}

.title-description :first-child {
    margin-top: var(--space-xl);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-s);
}

.white-bg {
    background-color: var(--color-bg);
}

.grey-bg {
    background-color: var(--color-background-grey);
}

.dark-bg {
    background: var(--gradient-1);
    color: rgba(255, 255, 255, 0.86);
}

.dark-bg h2, .dark-bg h3 {
    color: #ffffff;
}

.dark-bg p {
    color: rgba(255, 255, 255, 0.68);
}

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

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

address {
    color: var(--color-text-muted);
    font-style: normal;
}

address h3 {
    color: var(--color-text);
    font-size: var(--fs-h4);
}

form h2 {
    font-size: var(--fs-h4);
}

.red {
    color: var(--color-red) !important;
    font-weight: var(--fw-bold) !important;
}

.primary-list, .secondary-list {
    list-style: none;
    padding-left: 0;
}

.primary-list li, .secondary-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: var(--space-s);
}

.primary-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.1rem;
    height: 1.1rem;
    background: url("/svgs/checkmark.svg") no-repeat center / contain;
}

.secondary-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    border: 2px solid var(--color-red);
}

ol li {
    color: var(--color-text-muted);
}

.centered {
    text-align: center;
}

.no-padding-top {
    padding-top: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-title {
    opacity: 0;
    letter-spacing: 0.05em;
    transition: opacity 0.6s ease, letter-spacing 0.6s ease;
}

.reveal.is-visible, .reveal-title.is-visible {
    opacity: 1;
    transform: none;
    letter-spacing: normal;
}

.underline {
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 4px;
}

/* Image placeholder system — swap for real photography without touching layout */
.media-placeholder {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    min-height: 220px;
    border-radius: var(--radius-m);
    background: linear-gradient(150deg, #e7eaec 0%, #d7dcdf 100%);
    overflow: hidden;
}

.media-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%);
}

.media-placeholder span {
    position: relative;
    display: block;
    margin: var(--space-m);
    padding: var(--space-xs) var(--space-s);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    background: rgba(255,255,255,0.8);
    border-radius: var(--radius-s);
}

.media-placeholder.dark {
    background: linear-gradient(150deg, #2a2f33 0%, #17191b 100%);
}

.media-placeholder.dark span {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
}

/* Floating spec badge — sits top-right over a placeholder/photo */
.media-placeholder span.badge-float {
    position: absolute;
    top: var(--space-m);
    right: var(--space-m);
    left: auto;
    margin: 0;
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.media-placeholder.dark span.badge-float {
    color: rgba(255, 255, 255, 0.92);
}

/* ========= MEDIA QUERIES ========= */

@media (max-width: 480px) {
    h1, .h1 { font-size: var(--fs-h2); }
    h2, .h2 { font-size: var(--fs-h3); }
    h3, .h3 { font-size: var(--fs-h4); }
    h4, .h4 { font-size: var(--fs-body); }

    p { font-size: var(--fs-body); }

    .title-description p { font-size: var(--fs-body) !important; }
}

@media (max-width: 640px) {}

@media (max-width: 768px) {
    section { padding-top: var(--space-l); }
}

@media (max-width: 1024px) {
    .container { max-width: 900px; }
}

@media (max-width: 1280px) {}

@media (min-width: 1440px) {
    .container { max-width: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-title {
        transition: none !important;
    }
}
