@import url("fonts.css");

/* -------------------------------
   MAIN.CSS - Global Styles
---------------------------------*/

/* 1. Root Variables - ORIGINAL */
:root {
    --background-color: #ffe5ae;
    /* Light Cream */
    --heading-color: #353324;
    /* Gentle Lavender */
    --text-color: #5f5e50;
    /* Dark Gray */
    --text-inverted: #fff;
    /* White so it's visible on dark backgrounds */
    --highlight-color: #d72eff;
    /* Crisp Purple for special highlights */
    --footer-background: #f6692c;
    --footer-text: #ffffc1;
    /* White */
    --input-border: #183d6d;

    /* Primary Teal for success */
    --shadow-color: rgba(0, 0, 0, 0.1);
    /* Light shadow for depth */

    /* Colors and their corresponding accents */
    --yellow-accent: #efe63e;

    --accent-color: #ff6e2e;

    --success-color: #155724;

    --error-color: #ff2525;
    --error-color-darker: #a71d2a;

    /* Typography */
    --font-stack: "Raleway", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto,
        Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

    /* Spacings */
    --section-padding: 32px;
    --container-width: 95%;

    /* For a mobile-first container approach */
    --max-width: 1200px;
    /* For larger screen constraints */

    /* Experimental */
    --primary-color: #183d6d;
    --primary-color-dark: #051e38;

    --secondary-color: #fd8d32;
    --secondary-color-dark: #e67d22;

    --white: #ffffff;
    --light-white: #f8f9fa;

    --heading-color: #353324;
    --text-color: #5f5e50;

    /* Button gradients */
    --button-gradient: linear-gradient(85deg, #ff2a64, #ffaf48);

    /* Core Gradient Colors (from your --button-gradient) */
    --gradient-start: #ff2a64; /* Vibrant pink-red */
    --gradient-mid: #ff6e56; /* Coral blend (midpoint) */
    --gradient-end: #ffaf48; /* Warm orange */

    /* Text Color */
    --light-white: #f8fafc; /* Off-white (almost white with subtle cool tone) */

    /* Shadow Colors */
    --shadow-default: rgba(0, 0, 0, 0.1); /* Default shadow (black 10%) */
    --shadow-hover: rgba(0, 0, 0, 0.15); /* Hover shadow (black 15%) */

    /* Overlay Color */
    --hover-overlay: rgba(255, 255, 255, 0.1); /* White 10% overlay on hover */
}

/* 2. Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    color: var(--text-color);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

.btn {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: none;
}

/* 3. Utility & Helper Classes */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
}

/* Container Utility Class */
.container {
    width: var(--container-width);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* 4. Shared Elements (e.g., forms, inputs, buttons that are used site-wide) */
.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
}

.error-message {
    color: var(--error-color);
    font-weight: bold;
    font-size: 0.95rem;
}

.search-btn,
.cta-btn,
.secondary-cta,
.contact-btn {
    display: inline-block;
    color: #fff;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.search-btn {
    background-color: var(--accent-color);
}

.cta-btn {
    background-color: var(--accent-color);
}

.secondary-cta {
    background-color: var(--secondary-color);
}

.contact-btn {
    background-color: var(--accent-color);
}

.search-btn:hover {
    background-color: #fbc249;
}

.cta-btn:hover {
    background-color: #fbc249;
}

.secondary-cta:hover {
    background-color: #ffac97;
}

.contact-btn:hover {
    background-color: #ffbb3c;
}

/* Cookie Consent Container (Mobile) */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    padding: 1rem;
    box-shadow: 0px -2px 75px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* Inner wrapper to hold content (mobile layout) */
.cookie-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Headings */
.cookie-wrapper h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Paragraph text */
.cookie-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Privacy Policy Link */
.cookie-wrapper a {
    color: var(--primary-color-dark);
    transition: all 0.3s ease;
}

.cookie-wrapper a:hover {
    color: var(--primary-color);
}

/* Buttons container - column by default (for very small screens) */
.cookie-wrapper .buttons {
    display: flex;
    flex-direction: column;
}

#acceptNecessaryCookies {
    margin-bottom: 10px;
}

/* Buttons styling */
.cookie-wrapper .buttons button {
    cursor: pointer;
    padding: 12px 22px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-stack);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

/* Accept Necessary Cookies Only button */
#acceptNecessaryCookies {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Accept All Cookies button */
#acceptAllCookies {
    background-color: var(--primary-color);
    color: #fff;
}

/* Hover effects */
#acceptNecessaryCookies:hover,
#acceptAllCookies:hover {
    opacity: 0.9;
}

/* 
   From 449px up, put the buttons side by side (row).
*/

@media (min-width: 449px) {
    .cookie-wrapper .buttons {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 1rem;
    }

    #acceptNecessaryCookies {
        margin-bottom: 0;
        /* Remove the bottom margin if they're side by side */
    }
}

/* 
   DESKTOP/LARGER SCREENS (768px+):
   Transform the bar into a centered modal/card.
*/
@media (min-width: 768px) {
    .cookie-consent {
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .cookie-wrapper {
        background-color: var(--background-color);
        border-radius: 15px;
        padding: 2rem;
        box-shadow: 0 4px 8px var(--shadow-color);
        margin: 2rem;
        max-width: 600px;
    }

    .cookie-wrapper h2 {
        margin-bottom: 1rem;
        font-size: 1.4rem;
    }

    .cookie-wrapper p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cookie-wrapper .buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

.unselectable {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}
