/* ============================================
   Ciopa Brand Fonts
   ============================================ */

@font-face {
    font-family: 'Futura-Bold';
    src: url('/assets/fonts/Futura-Bold/Futura-Bold-03.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura-Medium';
    src: url('/assets/fonts/Futura-Medium/Futura-Medium-01.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Love-Regular';
    src: url('/assets/fonts/Love-Regular/Love-Regular.woff2') format('woff2'),
         url('/assets/fonts/Love-Regular/Love-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Global Styles
   ============================================ */

:root {
    /* Ciopa Brand Colors */
    --color-cream: #FAF6F1;
    --color-brown-dark: #3D2817;
    --color-terracotta: #D4825C;
    --color-warm-beige: #E8DDD2;
    --color-chocolate: #5C3D2E;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Futura-Bold', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Futura-Medium', 'Helvetica Neue', Arial, sans-serif;
    --font-decorative: 'Love-Regular', cursive;
}

body {
    font-family: var(--font-body);
    color: var(--color-brown-dark);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: bold;
}

/* ============================================
   Background Colors (bgc-)
   ============================================ */

.bgc-3267 {
    background-color: var(--color-cream);
}

.bgc-6754 {
    background-color: var(--color-warm-beige);
}

.bgc-7030 {
    background-color: var(--color-terracotta);
}

.bgc-7500 {
    background-color: var(--color-chocolate);
}

/* ============================================
   Text Colors (tc-)
   ============================================ */

.tc-2921 {
    color: var(--color-brown-dark);
}

.tc-2124 {
    color: var(--color-chocolate);
}

.tc-7500 {
    color: var(--color-white);
}

.tc-343 {
    color: var(--color-brown-dark);
}

.tc-4386 {
    color: var(--color-brown-dark);
}

.ltc-4386 {
    color: var(--color-brown-dark);
    text-decoration: none;
}

.ltc-4386:hover {
    color: var(--color-terracotta);
}

/* ============================================
   Bakery Custom Components
   ============================================ */

.bake-button {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.bake-button:hover,
.bake-button:focus {
    background-color: var(--color-chocolate);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bake-header {
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bake-nav-logo {
    max-width: 100px;
    height: auto;
}

.bake-footer-logo {
    max-width: 128px;
    height: auto;
}

.bake-divider {
    max-width: 100px;
    margin: 2rem auto;
}

.bake-black-text {
    color: var(--color-brown-dark);
}

.bake-home-div,
.bake-home-center-div {
    padding: 2rem;
}

/* ============================================
   Parallax Sections
   ============================================ */

.b-parallax {
    position: relative;
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.b-parallax .container {
    position: relative;
    z-index: 2;
}

.bg-mazi {
    background-image: url('/assets/img/mazi.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.bg-IMG-2368 {
    background-image: url('/assets/img/IMG_2368.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.bg-bake-review {
    background-image: url('/assets/img/bake-review.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.bg-SandraStefano {
    background-image: url('/assets/img/SandraStefano.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.bg-center {
    background-position: center center;
}

.texture-darken,
.texture-darken-strong {
    position: relative;
}

.texture-darken::before,
.texture-darken-strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.texture-darken-strong::before {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ============================================
   Bloc Shapes & Dividers
   ============================================ */

.bloc-shape-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.bloc-divider-bottom {
    bottom: 0;
}

.bloc-divider-top {
    top: 0;
}

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

.bloc-divider-b-0-fill,
.bloc-divider-b-bloc-1-fill,
.bloc-divider-b-bloc-3-fill,
.bloc-divider-b-fill {
    fill: var(--color-cream);
}

.bloc-divider-t-fill,
.bloc-divider-t-bloc-3-fill {
    fill: var(--color-warm-beige);
}

.bloc-divider-flip-y {
    transform: scaleY(-1);
}

/* ============================================
   Layout Utilities
   ============================================ */

.bloc {
    padding: 60px 0;
}

.bloc-lg {
    padding: 80px 0;
}

.bloc-xl {
    padding: 100px 0;
}

.bloc-xxl {
    padding: 120px 0;
}

.bloc-no-padding {
    padding: 0;
}

.l-bloc {
    background-color: var(--color-white);
}

.d-bloc {
    background-color: var(--color-chocolate);
}

/* ============================================
   Typography Utilities
   ============================================ */

.h2-style {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.mg-md {
    margin: 1.5rem 0;
}

.mg-sm {
    margin: 1rem 0;
}

.mg-clear {
    margin: 0;
}

.text-w-70 {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Cards
   ============================================ */

.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.25rem;
    border-bottom: none;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   Image Protection (disable right-click)
   ============================================ */

.img-protected {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ============================================
   Scroll Effects
   ============================================ */

.scroll-fx-left-in-fade,
.scroll-fx-right-in-fade,
.scroll-fx-in-fade {
    opacity: 1;
}

/* ============================================
   Shadows
   ============================================ */

.lg-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Accessibility
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--color-terracotta);
    outline-offset: 2px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .b-parallax {
        background-attachment: scroll;
        min-height: 300px;
    }

    .h2-style {
        font-size: 1.5rem;
    }

    .text-w-70 {
        max-width: 100%;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .bake-header,
    .bake-button,
    .scrollToTop {
        display: none;
    }
}

/* ============================================
   Text Legibility & Accessibility
   ============================================ */

/* Text shadows for better legibility on photo backgrounds */
.tc-7500 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Ensure proper font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Force Futura font loading with proper weights */
h1, h2, h3, h4, h5, h6,
.bake-button {
    font-family: 'Futura-Bold', 'Futura', 'Century Gothic', 'AppleGothic', sans-serif;
    font-weight: 700;
}

body,
p, a, span, div {
    font-family: 'Futura-Medium', 'Futura', 'Century Gothic', 'AppleGothic', sans-serif;
    font-weight: 500;
}

/* Ensure white text has sufficient contrast on dark backgrounds */
.b-parallax .tc-7500,
.texture-darken .tc-7500,
.texture-darken-strong .tc-7500 {
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Remove conflicting text color classes */
.bake-black-text {
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
