/* CSS Variables for Theme System */
:root {
  /* Light Mode Colors (Default) */
  --bg-primary: #FAF7F0;
  --bg-secondary: #f9f7f4;
  --bg-tertiary: #ffffff;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.95);
  
  --text-primary: #4a4a4a;
  --text-secondary: #666;
  --text-muted: #999;
  --text-heading: #767b62;
  --text-nav: #4a4a4a;
  
  --accent-primary: #D4A574;
  --accent-secondary: #767b62;
  --accent-hover: #c4956a;
  
  --border-color: #ccc;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --placeholder-bg: #f0f0f0;
  --footer-bg: #767b62;
  
  /* Back to top button */
  --btn-back-bg: #8B4513;
  --btn-back-hover: #A0522D;
}

/* Dark Mode Colors */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #333333;
  --bg-card: #404040;
  --bg-nav: rgba(26, 26, 26, 0.95);
  
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-muted: #888;
  --text-heading: #D4A574;
  --text-nav: #e0e0e0;
  
  --accent-primary: #D4A574;
  --accent-secondary: #D4A574;
  --accent-hover: #e6b885;
  
  --border-color: #555;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --placeholder-bg: #404040;
  --footer-bg: #1a1a1a;
  
  /* Back to top button */
  --btn-back-bg: #D4A574;
  --btn-back-hover: #e6b885;
}

/* Theme Toggle Button - Better positioning */
.theme-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--accent-primary);
  color: var(--bg-tertiary);
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow-medium);
  transition: all 0.3s ease;
  z-index: 999; /* Below nav but above content */
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* SVG icon visibility and styling */
.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* background: var(--bg-nav); */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 120px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-nav);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
	border: none;
	background: none;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-nav);
    margin: 3px 0;
    transition: 0.3s, background-color 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 140px 20px 20px;
    transition: background 0.3s ease;
}

.hero-container {
    max-width: 800px;
    text-align: center;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 2px 4px var(--shadow-light));
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    color: var(--text-heading);
    font-size: 2.8em;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 1rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 400;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-secondary);
    color: var(--bg-tertiary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Story Section */
.story {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.story-text p {
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.story-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.story-img-placeholder {
    width: 100%;
    height: 300px;
    background: var(--placeholder-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3em;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    font-size: 1.1em;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.placeholder-content span {
    font-size: 0.9em;
    color: var(--text-muted);
    font-style: italic;
    transition: color 0.3s ease;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    color: var(--text-heading);
    text-align: center;
    margin-top: 2rem;
    transition: color 0.3s ease;
}

/* Menu Section */
.menu {
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.menu-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.menu-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    text-align: center;
    transition: color 0.3s ease;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-item {
    text-align: center;
    padding: 1rem;
}

.menu-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.menu-item p {
    color: var(--text-secondary);
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.menu-cta {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.menu-cta p {
    font-size: 1.1em;
    margin-bottom: 1rem;
}

/* Partners Section */
.partners {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.partners-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: all 0.3s ease;
}

.partner-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: var(--text-heading);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.partner-card p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Contact Section */
.contact {
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.map-placeholder {
    background: var(--placeholder-bg);
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
    filter: sepia(30%) saturate(70%);
    transition: filter 0.3s ease;
}

/* Map fallback for ad blockers */
.map-fallback {
    background: var(--bg-secondary);
    height: 300px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.map-fallback h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.map-fallback p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--bg-tertiary);
    padding: 2rem 0;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--bg-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    font-size: 1.5em;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--btn-back-bg);
    color: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: var(--btn-back-hover);
    transform: translateY(0) scale(1.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dark mode specific adjustments */
[data-theme="dark"] .nav-menu {
    /* background: var(--bg-tertiary); */
}

[data-theme="dark"] .contact-map iframe {
    filter: sepia(30%) saturate(70%) invert(1) hue-rotate(180deg);
}

[data-theme="dark"] .footer-logo-img {
    filter: brightness(0) invert(1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background: var(--bg-tertiary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease, background-color 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-text h1 {
        font-size: 2.0em;
    }

    .hero-text p {
        font-size: 1.05em;
    }

    .logo {
        max-width: 200px;
    }

    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 60px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}

/* Very small mobile - side by side buttons */
@media (max-width: 480px) {
    .theme-toggle {
        bottom: 10px;
        right: 10px;
        top: auto;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top {
        bottom: 60px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .logo {
        max-width: 180px;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1.0em;
    }

    section h2 {
        font-size: 2.0em;
    }

    .menu-categories {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
}