/* 
* Tafarn Sinc Website Styles
* Based on Greene King - Commercial Pub Style
*/

/* Global Styles */
:root {
    --primary-color: #8B0000; /* Deep red color similar to Greene King */
    --secondary-color: #333;
    --accent-color: #F8F4E3;
    --text-color: #333;
    --light-color: #F8F8F8;
    --dark-color: #222;
    --footer-color: #2A2A2A;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color); /* Add a border bottom like Greene King */
    transition: all 0.3s ease; /* Smooth transition for scroll effects */
}

.site-header.scrolled {
    padding: 8px 0 5px; /* Smaller padding when scrolled */
}

/* Logo styling - smaller and centered */
.logo {
    margin-bottom: 10px;
    text-align: center;
}

.logo img {
    max-height: 60px; /* Smaller logo like Greene King */
    transition: all 0.3s ease; /* Smooth transition for logo size change */
}

.site-header.scrolled .logo img {
    max-height: 45px; /* Even smaller logo when scrolled */
}

/* Navigation styling - centered below logo */
nav .main-nav {
    display: flex;
    justify-content: center; /* Center the navigation */
    padding: 1rem 0 0;
    margin-bottom: 0;
    gap: 1.75rem;
    height: 3.75rem;
    align-items: center;
    background-color: white; /* Ensure background is white */
    border-top: 1px solid #ddd; /* Slightly darker separator between logo and menu */
    margin-top: 5px;
    position: relative; /* Needed for submenu positioning */
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center; /* Center menu items */
}

.nav-menu li {
    position: relative;
    display: inline-block;
    margin: 0 12px;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 5px;
    position: relative;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%; /* Center the underline */
    transform: translateX(-50%); /* Ensure it's perfectly centered */
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 70%; /* Partial width underline like Greene King */
}

/* Submenu styling */
.nav-menu .has-submenu {
    position: relative;
}

.nav-menu .has-submenu > a {
    padding-right: 25px; /* Make room for the dropdown icon */
}

.nav-menu .has-submenu > a .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-menu .has-submenu:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 2px solid var(--primary-color);
    list-style: none;
}

.nav-menu .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .submenu li {
    margin: 0;
    display: block;
    width: 100%;
}

.nav-menu .submenu a {
    padding: 8px 20px;
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: 500;
}

.nav-menu .submenu a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
}

.nav-menu .submenu a::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white !important; /* Force white text color */
    text-align: center;
    padding: 200px 0; /* Further increased padding for taller hero banner */
    position: relative;
    margin-bottom: 40px; /* Add margin to separate from content below */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for better text contrast */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px; /* Limit width for better readability */
    margin: 0 auto; /* Center the content */
    color: white !important; /* Force white text color */
}

.hero-content * {
    color: white !important; /* Force white text color for all child elements */
}

.hero-title {
    font-size: 3.5rem; /* Larger title */
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

.hero-subtitle {
    font-size: 1.8rem; /* Larger subtitle */
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Hero section button */
.hero-section .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Content Sections */
.section {
    padding: 80px 0; /* Increased padding for better spacing */
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Add subtle border between sections */
    overflow: hidden; /* Ensure any absolute positioned elements don't overflow */
    z-index: 1;
}

.section:nth-of-type(even) {
    background-color: var(--light-color);
    position: relative;
}

.section:nth-of-type(odd) {
    background-color: white;
    position: relative;
}

/* Add shading effect to sections */
.section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
    z-index: 0;
}

/* Override for sections with explicit background colors */
.section[style*="background-color"] {
    background-color: var(--accent-color) !important;
}

/* Add a stronger shading to accent color sections */
.section[style*="background-color"]:before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
    height: 12px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px; /* Increased margin for better spacing */
    position: relative;
    font-size: 2.5rem; /* Larger font size */
    font-weight: 700;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px; /* Wider line */
    height: 4px; /* Thicker line */
    background-color: var(--primary-color);
    margin: 20px auto 0; /* Increased margin */
    border-radius: 2px; /* Rounded ends */
}

/* Add a container for section introductions */
.section-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* About Section */
.section img.img-fluid {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Food & Drink Menu */
.menu-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color); /* Add a colored border like Greene King */
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.menu-item-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 8px;
}

.menu-item-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.menu-item-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
}

.menu-item-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Add a badge for special items */
.menu-item .badge {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Events */
.event-card {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.event-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.event-content .btn {
    margin-top: auto;
}

/* Gallery */
.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background-color: var(--footer-color);
    color: white;
    padding: 60px 0 30px;
}

.site-footer h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.site-footer h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.opening-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opening-hours li {
    margin-bottom: 10px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Language Switcher */
.language-switcher-container {
    position: absolute;
    right: 15px;
    top: 10px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.language-switcher a {
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher a.active {
    background-color: var(--primary-color);
    color: white;
}

.language-switcher a:hover:not(.active) {
    background-color: rgba(0,0,0,0.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
    /* Tablet adjustments */
    .section-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 150px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .menu-item-price {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .site-header {
        padding: 10px 0 5px;
    }

    .logo {
        margin-bottom: 5px;
    }

    .logo img {
        max-height: 50px; /* Even smaller on mobile */
    }

    /* Mobile language switcher */
    .language-switcher-container {
        position: absolute;
        right: 60px; /* Make room for mobile menu toggle */
        top: 15px;
        z-index: 1001;
    }

    .language-switcher {
        font-size: 0.8rem;
    }

    .language-switcher a {
        padding: 3px 6px;
    }

    .main-nav {
        justify-content: center;
        border-top: none;
        padding: 0;
        margin-bottom: 0;
        margin-top: 0;
        gap: 0;
        height: auto;
    }

    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none !important;
    }

    /* Mobile menu styling */
    .nav-menu.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: white;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
        z-index: 1000;
        height: auto;
        gap: 0;
        border-top: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
    }

    /* Hide language switcher in mobile menu */
    .nav-menu.active .language-switcher-container {
        display: none;
    }


    .nav-menu li {
        margin: 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        display: block;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 12px 15px;
        font-size: 1rem;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background-color: rgba(0,0,0,0.03);
    }

    .nav-menu a::after {
        display: none;
    }

    /* Mobile submenu styling */
    .nav-menu .has-submenu {
        position: relative;
    }

    .nav-menu .has-submenu > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu .has-submenu > a .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .nav-menu .has-submenu.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    .nav-menu .submenu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(0,0,0,0.02);
    }

    .nav-menu .has-submenu.active .submenu {
        display: block;
    }

    .nav-menu .submenu li {
        border-bottom: none;
    }

    .nav-menu .submenu a {
        padding-left: 30px;
        font-size: 0.95rem;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 1001;
        font-size: 1.5rem;
        padding: 8px 10px;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.1);
    }

    /* Mobile hero section */
    .hero-section {
        padding: 120px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    /* Mobile section styling */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 80px;
        margin: 15px auto 0;
    }

    .section-intro p {
        font-size: 1.1rem;
    }

    /* Adjust image sizes for mobile */
    .gallery-item img {
        height: 150px;
    }

    .event-image {
        height: 150px;
    }

    .section img.img-fluid {
        max-height: 300px;
    }

    /* Improve spacing and layout on mobile */
    .menu-item, .event-card, .gallery-item {
        margin-bottom: 20px;
    }

    .menu-item {
        padding: 20px;
    }

    .menu-item-title {
        font-size: 1.3rem;
        padding-right: 0;
    }

    .menu-item-price {
        position: static;
        display: inline-block;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    /* Improve button spacing on mobile */
    .btn {
        padding: 8px 20px;
        font-size: 0.95rem;
    }

    /* Footer adjustments for mobile */
    .site-footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .site-footer h3::after {
        margin: 10px auto 0;
    }

    .social-links {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Small mobile adjustments */
    .hero-section {
        padding: 100px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-item img {
        height: 120px;
    }
}
