/* Sweet Taste Cafe Theme - Modernized & Responsive */

:root {
  --primary-color: #DCA828;
  --primary-hover: #e0b441;
  --dark-brown: #422511;
  --bg-overlay: rgba(26, 12, 4, 0.85);
  --text-light: #ffffff;
}

html { 
  scroll-behavior: smooth; 
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-color: #1a0c04; 
    color: var(--text-light);
    overflow-x: hidden;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

a { 
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease; 
}

h1, h2, h3, p { margin-top: 0; }
p { line-height: 1.8; margin-bottom: 1rem; }

/* --- Video Background (Modern CSS Native Resizing) --- */
.tm-video-wrapper video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

/* Redesigned Floating Video Button */
.video-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: var(--dark-brown);    
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

/* --- Layout --- */
.tm-container { 
    padding: 30px; 
    max-width: 1400px;
    margin: 0 auto;
}

.tm-row {
    display: flex;
    gap: 40px;
}

.tm-left { width: 35%; }
.tm-right { width: 65%; }

/* Fix sidebar to screen on desktop */
.tm-left-inner { 
    position: sticky; 
    top: 30px; 
}

/* --- Header & Navigation --- */
.tm-site-header {
    background-color: #fff;
    color: var(--dark-brown); 
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;   
    margin-bottom: 20px;
    box-shadow: inset 0px 2px 5px rgba(0,0,0,0.05); /* Slight engraved feel */
}

/* New Code Logo alignment */
.tm-site-logo-icon { 
    margin-right: 15px; 
    color: var(--primary-color); 
    display: block;
}

.tm-site-name {
    font-size: 2.2rem;
    font-style: italic;    
    margin: 0;
}

.tm-site-nav-ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tm-page-link {
    background-color: #fff;
    color: var(--dark-brown);
    display: flex;
    align-items: center;  
    justify-content: flex-start; /* Aligns from the left */
    padding: 20px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tm-page-link:hover,
.tm-page-link.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: inset 0px 3px 6px rgba(0,0,0,0.15); /* Pressed look */
}

/* Icon box on the left */
.tm-page-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    margin-right: 20px; 
}

/* Text on the right */
.tm-page-link-text {
    flex: 1;
    text-align: left; /* Keeps text uniformly aligned */
}


/* --- Generic Containers --- */
.tm-black-bg {
    background-color: var(--bg-overlay);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(5px);
}

.tm-text-primary { color: var(--primary-color); }
.tm-mt-20 { margin-top: 20px; }

/* --- Main Content Logic --- */
.tm-page-content { 
    display: none; 
    animation: fadeIn 0.5s ease-in-out;
}
.tm-page-content.active-page { display: block; }

.tm-tab-content { display: none; animation: fadeIn 0.4s; }
.tm-tab-content.active-tab { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Beverages Menu --- */
.tm-drinks-nav { 
    padding: 20px;
    margin-bottom: 25px;
}
.tm-drinks-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
}
.tm-drinks-nav a {
    color: #fff;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-bottom: 3px solid transparent;
}
.tm-drinks-nav a.active,
.tm-drinks-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tm-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tm-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tm-list-item-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--primary-color); 
    flex-shrink: 0;
}

.tm-list-item-text {
    flex: 1;
    padding: 20px;
}

.tm-list-item-name {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.tm-list-item-price { 
    color: #F6C453; 
    font-weight: 600;
}
.tm-list-item-description { margin: 0; font-size: 0.95rem; }

/* --- About Us --- */
.tm-about-box .tm-list-item { align-items: flex-start; }
.tm-about-box .tm-list-item-img-big {
    width: 200px;
    height: 200px;
}
.tm-about-header { margin-bottom: 25px; }

/* --- Special Items (Grid) --- */
.tm-special-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.tm-special-item { padding: 0; overflow: hidden; }
.tm-special-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.tm-special-item-description { padding: 25px; }
.tm-special-item-title { font-size: 1.2rem; margin-bottom: 10px; }

/* --- Contact Form --- */
.tm-contact-text-container { margin-bottom: 20px; }
.tm-form-group { margin-bottom: 20px; }
.tm-form-control {
    width: 100%;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    color: #fff;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: border-color 0.3s;
}
.tm-form-control:focus { outline: none; border-bottom-color: var(--primary-color); }
.tm-form-control::placeholder { color: #ccc; }

.submit-wrapper { display: flex; justify-content: flex-end; }
.tm-btn-primary {
    color: var(--dark-brown);
    background-color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease; 
}
.tm-btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Footer --- */
.tm-site-footer { margin-top: 30px; }
.tm-footer-text { padding: 15px 20px; display: inline-block; margin: 0; }
.tm-footer-link { color: var(--primary-color); text-decoration: underline;}
.tm-footer-link:hover { color: #fff; }

/* --- Responsive Design --- */

@media (max-width: 1024px) {
    .tm-row { flex-direction: column; }
    .tm-left { width: 100%; }
    .tm-right { width: 100%; }
    .tm-left-inner { position: relative; top: 0; }
    
    /* Make nav horizontal on tablets */
    .tm-site-nav-ul { flex-direction: row; flex-wrap: wrap; }
    .tm-page-nav-item { flex: 1; min-width: calc(50% - 10px); }
    
    /* Center items better on mobile screens */
    .tm-page-link { justify-content: center; padding: 15px; }
    .tm-page-link-text { flex: none; text-align: center; }
}

@media (max-width: 768px) {
    .tm-container { padding: 15px; }
    .tm-page-nav-item { min-width: 100%; }
    
    .tm-list-item { flex-direction: column; text-align: center; }
    .tm-list-item-img, .tm-list-item-img-big { width: 100%; height: 250px; }
    
    .tm-about-box .tm-list-item { flex-direction: column; align-items: center; }
    .reverse-mobile { flex-direction: column-reverse !important; }
    
    .tm-drinks-nav ul { flex-direction: column; }
    .tm-drinks-nav ul li { width: 100%; text-align: center; }
    .tm-drinks-nav a { display: block; border-bottom: none; border-left: 3px solid transparent; padding: 10px; }
    .tm-drinks-nav a.active { border-left-color: var(--primary-color); background: rgba(255,255,255,0.05); }

    .video-btn { bottom: 15px; right: 15px; width: 50px; height: 50px; font-size: 20px; }
}