@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #f76c2f;
    --primary-dark: #e55a1f;
    --secondary: #2d2d2d;
    --accent: #4caf50;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light-custom {
    background-color: var(--light-bg);
}

.bg-dark-custom {
    background-color: var(--dark-bg);
    color: var(--white);
}

.bg-dark-custom h1, .bg-dark-custom h2, .bg-dark-custom h3, .bg-dark-custom h4, .bg-dark-custom h5, .bg-dark-custom h6 {
    color: var(--white);
}

.text-primary-custom {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.btn-custom {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(247, 108, 47, 0.3);
}

.btn-custom:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(247, 108, 47, 0.4);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-light-custom {
    background-color: var(--white);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-light-custom:hover {
    background-color: #f0f0f0;
    color: var(--secondary);
}

.hero-section {
    position: relative;
    padding: 12rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.card-custom {
    background: var(--white);
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);

}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-custom .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-custom .card-body {
    padding: 1.5rem;
}

.card-custom .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-box {
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--white);
    text-align: center;
}

.feature-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-control-custom {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(247,108,47,0.25);
}

textarea.form-control-custom {
    min-height: 150px;
}

.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast .toast-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.notification-toast.error .toast-icon {
    color: #ff4d4d;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner p {
    flex: 1 1 60%;
    margin: 0;
}

.cookie-banner .btn {
    margin: 0 0.5rem;
}

.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header .navbar-brand img {
    height: 40px;
}

.site-header .nav-link {
    font-weight: 500;
    color: var(--secondary) !important;
    margin-right: 1rem;
}

.site-header .nav-link:hover {
    color: var(--primary) !important;
}

.header-contact {
    font-size: 0.9rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-contact i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.site-footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.site-footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.site-footer a {
    color: #aaa;
}

.site-footer a:hover {
    color: var(--primary);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 600px;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.carousel-caption {
    z-index: 2;
    text-align: left;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.carousel-caption p {
    font-size: 1.2rem;
}

.gallery-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.gallery-img:hover .gallery-overlay {
    opacity: 1;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    .carousel-item { min-height: 400px; }
    .carousel-caption h2 { font-size: 2rem; }
    .site-header .header-contact { display: none; }
}
/* Accessibility contrast overrides */
.btn-custom{background-color:#c7501a;border-color:#c7501a;color:#fff;}
.btn-custom:hover{background-color:#b54418;border-color:#b54418;color:#fff;}
.btn-outline-custom{border-color:#c7501a;color:#c7501a;}
.btn-outline-custom:hover{background-color:#c7501a;border-color:#c7501a;color:#fff;}
.section-subtitle{color:#5a6068;}

/* ===== Accessibility / contrast overrides ===== */
:root {
    --primary: #c4450a;
    --primary-dark: #a83a08;
}
.section-subtitle {
    color: #545b62;
}
.hero-section {
    background-color: #1a1a1a !important;
}
/* Ensure white text on image-based sections has a solid dark fallback */
section[style*="background-image"] {
    background-color: #1a1a1a !important;
}

/* ===== Grocery delivery page contrast fixes ===== */
.hero-section h1,
.hero-section p {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.gallery-overlay {
    background: rgba(0,0,0,0.82) !important;
}
.gallery-overlay span {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
