/* ============================================================
   Royal Baltica — Main Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
    /* Colors */
    --color-gold:        #bc903a;
    --color-gold-light:  #d4a84e;
    --color-gold-dark:   #9a7530;
    --color-black:       #000000;
    --color-white:       #ffffff;
    --color-grey:        #c2c2c2;
    --color-grey-light:  #f0f0f0;
    --color-grey-mid:    #8a8a8a;
    --color-text:        #1a1a1a;
    --color-text-muted:  #666666;
    --color-bg:          #ffffff;
    --color-bg-alt:      #f7f7f7;
    --color-border:      #e0e0e0;

    /* Typography */
    --font-heading:      'NoirPro', 'Inter', sans-serif;
    --font-body:         'Inter', sans-serif;

    /* Font Sizes — fluid scale */
    --text-xs:    0.75rem;    /* 12px */
    --text-sm:    0.875rem;   /* 14px */
    --text-base:  1rem;       /* 16px */
    --text-md:    1.125rem;   /* 18px */
    --text-lg:    1.25rem;    /* 20px */
    --text-xl:    1.5rem;     /* 24px */
    --text-2xl:   2rem;       /* 32px */
    --text-3xl:   2.5rem;     /* 40px */
    --text-4xl:   3.5rem;     /* 56px */
    --text-5xl:   4.5rem;     /* 72px */

    /* Font Weights */
    --weight-light:   300;
    --weight-regular: 400;
    --weight-medium:  500;
    --weight-semibold: 600;
    --weight-bold:    700;

    /* Spacing Scale */
    --space-1:   0.25rem;   /* 4px */
    --space-2:   0.5rem;    /* 8px */
    --space-3:   0.75rem;   /* 12px */
    --space-4:   1rem;      /* 16px */
    --space-5:   1.25rem;   /* 20px */
    --space-6:   1.5rem;    /* 24px */
    --space-8:   2rem;      /* 32px */
    --space-10:  2.5rem;    /* 40px */
    --space-12:  3rem;      /* 48px */
    --space-16:  4rem;      /* 64px */
    --space-20:  5rem;      /* 80px */
    --space-24:  6rem;      /* 96px */
    --space-32:  8rem;      /* 128px */

    /* Layout */
    --container-max:   1200px;
    --container-wide:  1440px;
    --container-narrow: 768px;

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Border Radius */
    --radius-sm:  2px;
    --radius-md:  4px;
    --radius-lg:  8px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
}

/* ------------------------------------------------------------
   2. Fonts — NoirPro (self-hosted)
   ------------------------------------------------------------ */
@font-face {
    font-family: 'NoirPro';
    src: url('../fonts/NoirPro-Light.woff2') format('woff2'),
         url('../fonts/NoirPro-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NoirPro';
    src: url('../fonts/NoirPro-Regular.woff2') format('woff2'),
         url('../fonts/NoirPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NoirPro';
    src: url('../fonts/NoirPro-Medium.woff2') format('woff2'),
         url('../fonts/NoirPro-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NoirPro';
    src: url('../fonts/NoirPro-SemiBoldItalic.woff2') format('woff2'),
         url('../fonts/NoirPro-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'NoirPro';
    src: url('../fonts/NoirPro-Bold.woff2') format('woff2'),
         url('../fonts/NoirPro-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NoirPro';
    src: url('../fonts/NoirPro-Bold.woff2') format('woff2'),
         url('../fonts/NoirPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NoirPro';
    src: url('../fonts/NoirPro-Heavy.woff2') format('woff2'),
         url('../fonts/NoirPro-Heavy.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Google Fonts — Inter (body fallback / body font) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ------------------------------------------------------------
   3. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ------------------------------------------------------------
   4. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-text-muted); }
.text-black   { color: var(--color-black); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }

.font-light   { font-weight: var(--weight-light); }
.font-regular { font-weight: var(--weight-regular); }
.font-medium  { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold    { font-weight: var(--weight-bold); }

.uppercase    { text-transform: uppercase; letter-spacing: 0.1em; }
.tracking-wide { letter-spacing: 0.05em; }

/* Label / eyebrow text */
.label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
}

/* ------------------------------------------------------------
   5. Layout Utilities
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

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

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

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

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

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

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section--dark p {
    color: var(--color-grey);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Flex */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Spacing helpers */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}

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

.btn--primary:hover {
    background-color: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
}

.btn--outline {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn--outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn--outline-white {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn--dark {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}

.btn--dark:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.btn--lg {
    padding: var(--space-4) var(--space-12);
    font-size: var(--text-base);
}

.btn--sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-xs);
}

/* ------------------------------------------------------------
   7. Section Headers (reusable pattern)
   ------------------------------------------------------------ */
.section-header {
    margin-bottom: var(--space-16);
}

.section-header--center {
    text-align: center;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-16);
}

.section-header--center .label,
.section-header--center h2,
.section-header--center p {
    display: block;
    text-align: center;
}

.section-header .label {
    display: block;
    margin-bottom: var(--space-4);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-md);
    color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   8. Gold Divider
   ------------------------------------------------------------ */
.divider-gold {
    width: 48px;
    height: 2px;
    background-color: var(--color-gold);
    margin: var(--space-6) 0;
}

.divider-gold--center {
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------------------
   9. Cards
   ------------------------------------------------------------ */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: var(--space-8);
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card--flat {
    border: none;
    background: var(--color-bg-alt);
}

.card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-6);
    color: var(--color-gold);
}

.card__label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-black);
    margin-bottom: var(--space-3);
}

.card__body {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ------------------------------------------------------------
   10. Gold Accent Elements
   ------------------------------------------------------------ */
.gold-line {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold) 0%, transparent 100%);
}

.gold-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-gold);
    line-height: 1;
}

/* ------------------------------------------------------------
   11. Forms
   ------------------------------------------------------------ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    outline: none;
    transition: border-color var(--transition-fast);
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-gold);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-grey-mid);
}

/* ------------------------------------------------------------
   12. Tags / Badges
   ------------------------------------------------------------ */
.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--color-grey);
    color: var(--color-text-muted);
}

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

/* ------------------------------------------------------------
   13. Breadcrumbs
   ------------------------------------------------------------ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.breadcrumb a:hover {
    color: var(--color-gold);
}

.breadcrumb__sep {
    color: var(--color-grey);
}

/* ------------------------------------------------------------
   14. Horizontal Rule
   ------------------------------------------------------------ */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
}

/* ------------------------------------------------------------
   15. Utility
   ------------------------------------------------------------ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------
   16. Fade-in Animation (data-fade)
   ------------------------------------------------------------ */
[data-fade] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-fade].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-fade][data-delay="1"] { transition-delay: 0.1s; }
[data-fade][data-delay="2"] { transition-delay: 0.2s; }
[data-fade][data-delay="3"] { transition-delay: 0.3s; }
[data-fade][data-delay="4"] { transition-delay: 0.4s; }
[data-fade][data-delay="5"] { transition-delay: 0.5s; }

/* ------------------------------------------------------------
   17. Responsive Breakpoints
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    :root {
        --text-4xl: 3rem;
        --text-5xl: 3.5rem;
    }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --text-3xl: 2rem;
        --text-4xl: 2.25rem;
        --text-5xl: 2.75rem;
    }

    .container {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }

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

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

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --text-4xl: 1.875rem;
    }
}
