/* style.css */

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

:root {
    --primary-color: #1c2b23; /* Dark Green/Brown */
    --secondary-color: #b58b2a; /* Gold/Bronze */
    --accent-color: #b58b2a; /* Keeping accent same as secondary for consistency */
    --text-dark: #1c2b23; /* Using primary color for dark text on light background */
    --text-light: #EFE8DC; /* Light background color for text on dark background */
    --bg-light: #EFE8DC; /* New light background */
    --bg-dark: #1c2b23; /* Using primary color for dark background */
    --border-color: #ccc; /* Slightly lighter border for contrast */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--text-light); /* Keep text light on hover */
}

.btn-secondary {
    background-color: var(--bg-light); /* Changed to efe8dc */
    color: var(--primary-color); /* Changed to 1c2b23 */
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color); /* Changed to b58b2a */
    color: var(--text-light);
}

/* Header & Navigation */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(239, 232, 220, 0.98); /* Using --bg-light with transparency */
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px; /* Adjust logo size */
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    padding: 5px 0;
    color: var(--primary-color); /* Ensure legibility */
}

/* Active class for current page link */
.nav-links li a.active {
    color: var(--secondary-color); /* Different color */
    text-decoration: underline; /* Underline */
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-out;
}

.nav-links li a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none; /* Hidden on desktop */
    font-size: 2em;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Slider Section */
#hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    margin-top: 90px; /* Offset for fixed header */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

/* Hero Slider Text Animations and Shadows */
.slide-content .animated-text {
    color: var(--text-light);
    /* Using clamp for responsive font size: min-size, preferred-size (vw), max-size */
    font-size: clamp(2em, 5vw, 4em); /* Adjusted for better mobile scaling */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Text shadow for readability */
    opacity: 0;
    transform: translateX(100%); /* Start off-screen to the right */
    animation: slideInFromRightText 0.8s ease-in-out forwards; /* Updated animation */
}

.slide-content .animated-button {
    opacity: 0;
    transform: translateX(100%); /* Start off-screen to the right */
    animation: slideInFromRightButton 0.8s ease-in-out forwards; /* Updated animation */
    animation-delay: 0.3s; /* Delay for button animation */
}

/* New Keyframes for slide-in from right */
@keyframes slideInFromRightText {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRightButton {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 2;
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    padding: 15px 20px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-nav button:hover {
    background: var(--secondary-color); /* Updated */
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
    background-color: var(--secondary-color); /* Updated */
    transform: scale(1.2);
}

/* Our Philosophy Section */
#our-philosophy .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

#our-philosophy .text-content {
    flex: 1;
    padding-right: 20px;
}

#our-philosophy .image-content {
    flex: 1;
    text-align: center;
}

#our-philosophy .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

#our-philosophy .image-content img:hover {
    transform: scale(1.02);
}

/* Featured Highlights Section and Explore Our World Section Content Cards */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.highlight-item {
    background-color: var(--primary-color); /* Retain dark green/brown background */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* For scroll animation */
    transform: translateY(20px); /* For scroll animation */
}

.highlight-item.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight-item i {
    display: none; /* Remove icons */
}

.highlight-item h3 {
    color: var(--secondary-color); /* Changed to gold/bronze */
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 10px; /* Space for the line */
    border-bottom: 1px solid var(--text-light); /* White line separator */
    display: inline-block; /* Ensures border only spans text width */
}

.highlight-item p {
    color: var(--text-light); /* Retain white text for description */
    margin-top: 15px; /* Space after the line */
}

/* Contact Form Section (for contact.html) */
#contact-form-section {
    background-color: var(--bg-light);
}

#contact-form-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-form-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info-map {
    display: flex;
    gap: 40px;
    width: 100%;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.contact-details {
    flex: 1;
    min-width: 300px; /* Ensure it doesn't get too small */
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-details p i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.3em;
}

.map-container {
    flex: 2;
    min-width: 400px; /* Ensure map is reasonably sized */
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 700px;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    color: var(--text-dark); /* Ensure input text is dark */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(181, 139, 42, 0.2); /* Using secondary color for focus shadow */
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    display: none; /* Hidden by default */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ticker Tape */
.ticker-tape {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-weight: 600;
    font-size: 1.2em;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.ticker-tape .ticker-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen to the right */
    animation: ticker-scroll 25s linear infinite; /* Adjust duration for speed */
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-links, .footer-social, .footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-links h3, .footer-social h3, .footer-contact h3 {
    color: var(--secondary-color); /* Updated */
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color); /* Updated */
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.8em;
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--secondary-color); /* Updated */
    transform: translateY(-3px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-light);
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color); /* Updated */
}

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

.footer-bottom p {
    color: rgba(239, 232, 220, 0.7); /* Using --text-light with transparency */
    font-size: 0.9em;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility Classes for Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none; /* Disable interaction when hidden */
    display: flex; /* Use flex to center icon */
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-to-top-btn.show {
    opacity: 1;
    pointer-events: auto; /* Enable interaction when shown */
}

/* Specific styles for Our Coffee page content cards */
.flavor-item {
    background-color: var(--primary-color); /* Dark green/brown */
    color: var(--text-light); /* White text */
    padding: 30px; /* Ensure consistent padding */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* For scroll animation */
    transform: translateY(20px); /* For scroll animation */
}

.flavor-item h4 {
    color: var(--secondary-color); /* Changed to gold/bronze */
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 10px; /* Space for the dash */
    border-bottom: 1px solid var(--text-light); /* White dash/separator */
    display: inline-block; /* Ensures border only spans text width */
}

.flavor-item p {
    color: var(--text-light); /* White text for descriptions */
    margin-top: 15px; /* Space after the dash */
}

/* Remove icon styling as icons are being removed from HTML */
.flavor-item i {
    display: none; /* Hide icons if they somehow persist or for future proofing */
}

.brewing-tip-item {
    background-color: var(--primary-color); /* Dark green/brown */
    color: var(--text-light); /* White text */
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.brewing-tip-item h4 {
    color: var(--text-light); /* White text for headings */
}

/* New styles for flavour profile layout on Our Coffee page */
.flavour-profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.flavour-profile-box, .flavour-description-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px;
    max-width: 800px; /* Increased max-width for better content flow */
    width: 100%;
    text-align: center;
    border: 1px solid #eee;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.flavour-profile-box.animated,
.flavour-description-box.animated {
    opacity: 1;
    transform: translateY(0);
}
/* Animations for the new flavor profile boxes */
@keyframes fadeInBox {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpBox {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.flavour-profile-box.animated {
    animation: fadeInBox 0.7s ease-out forwards;
}

.flavour-description-box.animated {
    animation: slideUpBox 0.7s ease-out forwards;
    animation-delay: 0.2s; /* Slightly delay the second box */
}

/* Brew Guide Title Box */
.brew-guide-title-box {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px; /* Give it a defined width */
    margin: 0 auto 60px; /* Center and provide space below */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards; /* Reuse existing fadeInUp animation */
}

.brew-guide-title-box h2 {
    color: var(--primary-color); /* Ensure title color is dark green/brown */
    margin-bottom: 0; /* Remove default h2 margin */
}


/* Responsive adjustments for the new flavor profile boxes */
@media (max-width: 768px) {
    .flavour-profile-box, .flavour-description-box {
        padding: 20px 15px; /* Adjust padding for mobile */
    }
    .brew-guide-title-box {
        padding: 15px 20px;
        margin-bottom: 40px;
    }
    .slide-content .animated-text {
        font-size: clamp(1.5em, 5vw, 2.5em); /* Adjusted for mobile with clamp */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .slide-content .animated-text {
        font-size: clamp(1.2em, 4vw, 2em); /* Further adjustment for very small screens */
    }
    .slide-content .animated-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}
