/* ===== CSS Variables ===== */
:root {
    --primary-color: #8B4513;  /* Coffee brown */
    --secondary-color: #D2691E;  /* Chocolate */
    --accent-color: #FFA500;  /* Orange */
    --warm-brown: #6F4E37;
    --cream: #FFF8DC;
    --dark-color: #2C1810;
    --light-color: #FFF9F0;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Georgia', serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-color);
    overflow-x: hidden;
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-cta:hover {
    background: var(--warm-brown);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?w=1920&h=1080&fit=crop'), 
                      linear-gradient(135deg, #6F4E37 0%, #8B4513 50%, #D2691E 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

/* Coffee Steam Animation */
.coffee-steam {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.steam {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: steam 3s infinite;
}

.steam:nth-child(2) {
    left: 20px;
    animation-delay: 1s;
}

.steam:nth-child(3) {
    left: -20px;
    animation-delay: 2s;
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(2);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===== About Section ===== */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.lead {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 400px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    color: white;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
    font-size: 4rem;
}

/* ===== Menu Section ===== */
.menu {
    background: var(--light-color);
    padding: 100px 0;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.menu-tab {
    background: white;
    border: 2px solid var(--gray-300);
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--gray-700);
}

.menu-tab.active,
.menu-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-category {
    display: none;
}

.menu-category.active {
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.menu-item h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.item-price {
    display: flex;
    gap: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.price-small {
    font-size: 0.9rem;
}

.price-large {
    font-size: 1rem;
}

.menu-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ===== Specials Section ===== */
.specials {
    background: white;
}

.special-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 200px 1fr;
}

.special-image {
    overflow: hidden;
}

.special-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.special-card:hover .special-image img {
    transform: scale(1.1);
}

.special-icon {
    font-size: 5rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.special-content {
    padding: 40px;
    color: white;
}

.special-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.special-time {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.special-offer h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.special-offer p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.special-note {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Loyalty Section ===== */
.loyalty {
    background: var(--light-color);
}

.loyalty-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.rewards-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.tier {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tier i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tier h4 {
    margin-bottom: 10px;
}

.tier p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.rewards-benefits {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.rewards-benefits h4 {
    margin-bottom: 20px;
}

.rewards-benefits ul {
    list-style: none;
}

.rewards-benefits li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rewards-benefits i {
    color: var(--primary-color);
}

.loyalty-signup {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.signup-form h3 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.form-note {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-600);
}

.form-note a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Location Section ===== */
.location {
    background: white;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.info-card {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
}

.info-card h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.social-links {
    margin-top: 40px;
}

.social-links h4 {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--warm-brown);
    transform: translateY(-5px);
}

/* ===== Order Online Section ===== */
.order-online {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.order-online .section-title,
.order-online .section-subtitle {
    color: white;
}

.order-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.order-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.order-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.order-card i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.order-card h3 {
    color: white;
    margin-bottom: 15px;
}

.order-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.app-btn {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.app-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.delivery-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.delivery-partners span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--gray-400);
}

.footer-links h4,
.footer-hours h4,
.footer-newsletter h4 {
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-hours p {
    color: var(--gray-400);
    margin-bottom: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: var(--gray-400);
}

.newsletter-form button {
    padding: 12px 20px;
    border: none;
    border-radius: 0 50px 50px 0;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

.footer-bottom a {
    color: var(--primary-color);
}

.created-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.created-by span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.skyrise-logo-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.skyrise-logo {
    height: 35px;
    width: auto;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.skyrise-logo-link:hover {
    transform: scale(1.05);
}

.skyrise-logo-link:hover .skyrise-logo {
    filter: brightness(1.3);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--warm-brown);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-cta {
        margin-top: 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-9px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -8px);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content,
    .loyalty-content,
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .rewards-tiers {
        grid-template-columns: 1fr;
    }
    
    .order-options {
        grid-template-columns: 1fr;
    }
    
    .special-card {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }
    
    .about-image {
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .menu-tabs {
        gap: 10px;
    }
    
    .menu-tab {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .about-image {
        height: 150px;
    }
    
    .special-card {
        display: block;
    }
    
    .special-image {
        height: 150px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .menu-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tier {
        padding: 15px;
    }
    
    .tier h4 {
        font-size: 1rem;
    }
}