:root {
    --primary-red: #D3091B;
    --primary-brown: #391304;
    --text-color: #212529;
    --bg-beige: #f9f5f0;
    --primary-gold: #D4AF37;
    --font-heading: 'Pacifico', cursive;
    --font-body: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-brown);
}

.text-bimo-red {
    color: var(--primary-red);
}

.bg-bimo-red {
    background-color: var(--primary-red);
}

.text-bimo-brown {
    color: var(--primary-brown);
}

.font-heading {
    font-family: var(--font-heading);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, padding-bottom 0.35s ease;
    background: transparent;
    /* default transparent */
}

/* Transparent default (top of page) */
.site-header.faded-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%) !important;
    box-shadow: none !important;
}

/* Nav items look white over hero */
.site-header.faded-header .nav-link,
.site-header.faded-header .social-icon,
.site-header.faded-header #mobile-menu-btn {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Scrolled / solid header */
.site-header.scrolled-nav {
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

.site-header.scrolled-nav .nav-link,
.site-header.scrolled-nav .social-icon,
.site-header.scrolled-nav #mobile-menu-btn {
    color: #231F20 !important;
    text-shadow: none !important;
}

/* Ensure header is transparent by default and only becomes white when scrolled */
header#main-header.site-header {
    background: transparent !important;
    background-color: transparent !important;
}

/* Keep nav text visible on transparent header */
header#main-header.site-header .nav-link,
header#main-header.site-header .social-icon,
header#main-header.site-header #mobile-menu-btn {
    color: #ffffff !important;
}

/* When scrolled, header becomes white and nav turns dark */
header#main-header.site-header.scrolled-nav {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

header#main-header.site-header.scrolled-nav .nav-link,
header#main-header.site-header.scrolled-nav .social-icon,
header#main-header.site-header.scrolled-nav #mobile-menu-btn {
    color: #231F20 !important;
}

/* Body spacer when header is solid to prevent content jump */
body.scrolled-with-header {
    padding-top: 80px;
    /* adjust to header height */
}

/* Ensure hero sits under transparent header */
.hero-section-wrapper {
    margin-top: 0;
}

/* Scrolled Nav & General Links */
.nav-link {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #231F20;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

/* Curved red underline on hover for nav links */
.site-header .nav-link {
    position: relative;
    padding-bottom: 0.5rem;
    /* restore original spacing */
    z-index: 2;
    /* keep text above the pseudo-element */
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    bottom: 0.15rem;
    /* sit just under the text */
    width: 72%;
    height: 8px;
    /* visible but not huge */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='12' viewBox='0 0 220 12'><path d='M8 7 C60 12 160 12 212 7 C180 9 140 9 110 9 C80 9 40 9 8 7 Z' fill='%23D3091B'/></svg>");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.25s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    z-index: 1;
    /* under the text */
    pointer-events: none;
}

/* Show curved SVG underline on hover */
.site-header .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* Social icons */
.social-icon {
    font-size: 1.1rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-gold);
}

/* Curved Sections (General) */
.curve-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.curve-bottom svg {
    display: block;
    width: 100%;
    height: 60px;
}

.curve-bottom .shape-fill {
    fill: #FFFFFF;
}

/* Utilities */
.btn-bimo {
    background-color: var(--primary-red);
    color: white;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-bimo:hover {
    background-color: #a80514;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(211, 9, 27, 0.3);
}