/* ----------------------------------------------------
   DESIGN SYSTEM — Mediterranean Theme
   Global tokens, typography, spacing, utilities,
   buttons, forms, shadows, radiuses
---------------------------------------------------- */


/* ------------------------------
   CSS VARIABLES (THEME TOKENS)
------------------------------ */

:root {
    /* Mediterranean palette */
    --terracotta: #d87b4a;
    --terracotta-dark: #c46c3f;
    --sand: #f6f2ee;
    --olive: #6b7a4b;
    --deep-blue: #2a3d66;

    /* Neutrals */
    --color-black: #1a1a1a;
    --color-text: #2f2f2f;
    --color-muted: #666;
    --color-border: #ddd;
    --color-bg: #faf9f7;
    --color-white: #fff;

    /* Feedback */
    --color-success: #2ecc71;
    --color-warning: #f1c40f;
    --color-danger: #e74c3c;

    /* Typography */
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Font sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.6rem;
    --fs-xxl: 2.2rem;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;

    /* Radiuses */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-soft: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-strong: 0 6px 20px rgba(0,0,0,0.15);
}


/* ------------------------------
   TYPOGRAPHY
------------------------------ */

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.55;
    background: var(--color-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin: 0 0 var(--space-3);
    color: var(--deep-blue);
    letter-spacing: 0.3px;
}

h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-base); }

p {
    margin: 0 0 var(--space-4);
}


/* ------------------------------
   BUTTONS — Mediterranean
------------------------------ */

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--sand);
    color: var(--deep-blue);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: #ece7e2;
}


/* ------------------------------
   FORMS
------------------------------ */

input, select, textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    background: var(--color-white);
}

label {
    font-weight: 600;
    margin-bottom: var(--space-2);
    display: block;
}


/* ------------------------------
   UTILITIES
------------------------------ */

/* Spacing */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

/* Flex helpers */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* Width helpers */
.w-100 { width: 100%; }

/* Shadows */
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }

/* Radiuses */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }


/* ----------------------------------------------------
   HEADER — Mediterranean refinement
---------------------------------------------------- */

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
}

.logo h1 {
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--deep-blue);
}

.logo a {
    text-decoration: none;
    color: var(--deep-blue);
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.8;
}


/* ----------------------------------------------------
   HOMEPAGE HERO
---------------------------------------------------- */

.homepage-hero {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
    display: flex;
    align-items: center;
    color: var(--color-white);
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
