:root {
    --color-background-body: #121212;
    /* Very dark background, almost black */
    --color-slogan-accent: #f0ad4e;
    /* Yellow-orange color for slogan, arrows, specific text */
    --color-button-main: #a43838;
    /* Muted red / brownish-red for main buttons */
    --color-button-main-hover: #8c2d2d;
    /* Darker shade for main button hover */
    --color-options-container-bg: #1f1f1f;
    /* Slightly lighter dark shade for options container */
    --color-branch-item-bg: #2a2a2a;
    /* Background for branch items */
    --color-branch-description-text: #ccc;
    /* Light grey for branch description text */
    --color-branch-item-image-border: var(--color-slogan-accent);
    /* Using accent for border */
    --color-branch-item-image-bg: var(--color-slogan-accent);
    /* Using accent for image bg */
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    background-color: var(--color-background-body);
    color: #ffffff;

    /* --- Add these styles for the fire background image --- */
    background-image: url('./assets/fire.webp');
    /* Path to your image */
    background-repeat: no-repeat;
    /* Don't tile the image */
    background-position: top center;
    /* Position at the top, horizontally centered */
    background-size: 100% auto;
    /* 100% width of body, height auto to maintain aspect ratio */

    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px 15px;
    box-sizing: border-box;

    position: relative;
    /* << ADD THIS: Needed for absolute positioning of ::after */
    overflow-x: hidden;
    /* << ADD THIS: Prevents horizontal scrollbars if pseudo-elements slightly overflow */
}

.page-container {
    width: 100%;
    max-width: 480px;
    /* Common width for "link in bio" pages */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-main {
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    /* Adjust as needed based on your logo's aspect ratio */
    height: auto;
    margin-top: 15px;
}

.header-main h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    /* Extra bold for main title */
    font-size: 2.2em;
    /* Larger than previous designs */
    margin: 0 0 5px 0;
    color: #ffffff;
}

.slogan {
    font-family: 'Lato', sans-serif;
    font-style: italic;
    font-size: 0.95em;
    color: var(--color-slogan-accent);
    margin: 0;
}

.content-main {
    width: 100%;
}

.main-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background-color: var(--color-button-main);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    /* More rounded corners */
    padding: 15px 20px;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
    text-align: left;
    /* Text aligns left within the button */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Pushes arrow to the right */
    transition: background-color 0.3s ease;
}

.main-button:hover {
    background-color: var(--color-button-main-hover);
}

.button-icon {
    /* color: var(--color-slogan-accent); */
    /* No longer needed for text color */
    margin-right: 12px;
    /* font-size: 1.2em; */
    /* No longer needed for font size */
    width: 24px;
    /* Explicit width for the container if image is 24px */
    height: 24px;
    /* Explicit height for the container */
    display: inline-flex;
    /* Helps with alignment */
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Already there, good */
}

.button-icon img {
    display: block;
    /* Or inline-block, adjust as needed */
    width: 100%;
    /* Make image fill the container */
    height: 100%;
    /* Make image fill the container */
    object-fit: contain;
    /* Ensures the image fits without distortion */
}

.button-arrow {
    color: var(--color-slogan-accent);
    /* font-size: 0.9em; */
    /* No longer needed for font size */
    width: 16px;
    /* Explicit width for the container */
    height: 16px;
    /* Explicit height for the container */
    display: inline-flex;
    /* Helps with alignment */
    align-items: center;
    justify-content: center;
}

.button-arrow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-icons a {
    /* color: #ffffff; */
    /* No longer needed for icon glyph color via font */
    background-color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    /* Already flex, good for centering image */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* font-size: 1.2em; */
    /* No longer needed for font size */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icons a img {
    width: 20px;
    /* Adjust size of social icon image itself, e.g. 50% of its container */
    height: 20px;
    /* Maintain aspect ratio */
    display: block;
    object-fit: contain;
}

/* For the chevron icon rotation (ensure the img is targeted if it's the one rotating) */
.main-button.open .button-arrow img {
    /* Target img if it's what should rotate */
    transform: rotate(180deg);
}

.button-text {
    flex-grow: 1;
    /* Allows text to take available space */
}

.options-container {
    margin-top: -10px;
    /* Pulls it slightly under the button */
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--color-options-container-bg);
    border-radius: 0 0 12px 12px;
    /* Rounded bottom corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Keeping black with alpha as it's a shadow */
}

.options-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-slogan-accent);
    font-size: 1em;
    margin: 5px 0 15px 0;
    text-align: center;
}

.branch-item {
    display: flex;
    align-items: center;
    background-color: var(--color-branch-item-bg);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
    text-align: left;
}

.branch-item:last-child {
    margin-bottom: 0;
}

.branch-item:hover {
    background-color: var(--color-button-main);
    /* Using main button color for hover consistency */
}

.branch-item img {
    width: 50px;
    /* Smaller images for a tighter list */
    height: 50px;
    border-radius: 6px;
    margin-right: 10px;
    object-fit: cover;
    border: 1px solid var(--color-branch-item-image-border);
    background-color: var(--color-branch-item-image-bg);
}

.branch-item .branch-info {
    flex-grow: 1;
}

.branch-item .branch-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    margin: 0 0 3px 0;
}

.branch-item .branch-description {
    font-size: 0.8em;
    color: var(--color-branch-description-text);
    margin: 0;
}

.branch-additional-message {
    border: 1px dashed var(--color-slogan-accent);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-align: center;
    font-style: italic;
    font-weight: 500;
}

.footer-main {
    margin-top: 30px;
    width: 100%;
}

.follow-us-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Space between icons */
}

/* .social-icons a is defined earlier, this is a duplicate, merging relevant parts */
.social-icons a {
    background-color: #ffffff;
    /* Kept as white for the icon background */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2em;
    /* This was commented out in the original, but present in the duplicate */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    background-color: var(--color-button-main-hover);
    /* Using the button hover color for consistency */
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .header-main h1 {
        font-size: 1.8em;
    }

    .slogan {
        font-size: 0.85em;
    }

    .main-button {
        font-size: 1em;
        padding: 12px 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 1em;
        /* This was present in the original media query */
    }

    .social-icons a img {
        /* Added to ensure img within resized 'a' is also considered */
        width: 18px;
        /* Adjust if needed */
        height: 18px;
        /* Adjust if needed */
    }

    .branch-item img {
        width: 40px;
        height: 40px;
    }
}
