/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #c62828;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c62828;
}

.burger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/fundo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #c62828;
    font-size: 2.5rem;
}

/* Grid Layouts */
.grid-container, .promo-grid, .products-grid, .recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media screen and (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Cards */
.card, .promo-card, .recipe-card {
    background: rgb(201, 208, 204);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover, .promo-card:hover, .recipe-card:hover {
    transform: translateY(-5px);
}

.card img, .promo-card img, .recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3, .promo-card h3, .recipe-card h3 {
    padding: 1rem;
    color: #c62828;
    text-align: center;
}

.card p, .promo-card p, .recipe-card p {
    padding: 0 1rem 1rem;
    text-align: center;
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info i {
    color: #c62828;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #c62828;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        background-color: white;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .burger {
        display: block;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px;
        transition: all 0.3s ease;
    }

    .hero-content h2 {
        font-size: 2rem;
    }
}

/* Modal Receita */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  color: #c62828;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

/* Mascote TONO */
#tono-mascote {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

#tono-mascote:hover {
    transform: scale(1.1);
}

#tono-mascote img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Chat do TONO */
.tono-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
}

.tono-chat-header {
    background: #c62828;
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tono-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tono-chat-form {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    margin-top: 20px;
    background: #fff;
}

.tono-chat-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.tono-chat-form button {
    background: #c62828;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* Estilos para mensagens */
.tono-chat-msg-user,
.tono-chat-msg-tono {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 5px 0;
    word-wrap: break-word;
}

.tono-chat-msg-user {
    background: #e3f2fd;
    align-self: flex-end;
}

.tono-chat-msg-tono {
    background: #f5f5f5;
    align-self: flex-start;
}

/* Media queries para dispositivos móveis */
@media screen and (max-width: 768px) {
    .tono-chat {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .tono-chat-header {
        border-radius: 0;
    }

    .tono-chat-body {
        padding: 10px;
    }

    .tono-chat-form {
        padding: 10px;
    }

    .tono-chat-form input {
        font-size: 16px; /* Evita zoom automático no iOS */
    }

    .tono-chat-msg-user,
    .tono-chat-msg-tono {
        max-width: 90%;
    }
}

/* Ajustes específicos para iPhone */
@supports (-webkit-touch-callout: none) {
    .tono-chat {
        height: 100vh;
        height: -webkit-fill-available;
    }

    .tono-chat-body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .tono-chat-form {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

/* Animação de carregamento */
.tono-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 15px;
    margin: 5px 0;
    align-self: flex-start;
    width: 220px;
    height: 220px;
}

.tono-loading img {
    border-radius: 10px;
    object-fit: cover;
}

.tenor-gif-embed {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* ... rest of the code ... */ 