:root {
  --primary-color: #382A22;
  --accent-color: #D97941;
  --background-color: #F5F0E9;
  --text-contrast-color: #FFFFFF;
  --secondary-dark-color: #221B16;
  --secondary-light-color: #F6D6A8;
  --font-primary: raleway, sans-serif;
  --font-secondary: 'Josefin Sans', serif;
  --font-accent: 'Lora', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:Arial, Helvetica, sans-serif;
  background-color: var(--primary-color);
  color: var(--primary-color);
}

html {
  scroll-behavior: smooth;
}


html, body {
  overscroll-behavior: none;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

.main-nav.sticky {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-contrast-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('../img/grão.png');
    background-size: cover;
    background-position: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.main-nav {
    position: absolute;
    top: 40px;
    width: auto;
    background-color: var(--secondary-light-color);
    border-radius: 20px;
    padding: 10px 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 120px;
    font-family: var(--font-secondary);
}

.main-nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

.hero-text-content {
    position: relative;
    z-index: 5;
}

.hero-text-content h1 {
    font-size: 4.5em;
    margin: 0;
    margin-top: 30px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-contrast-color);
}

.highlight-text {
  color: var(--secondary-light-color);
}

.hero-text-content p {
    font-size: 1.3em;
    margin-top: 10px;
    margin-bottom: 40px;
    color: var(--text-contrast-color);
    font-weight: 400;
    max-width: 600px;
}

.cta-button {
    background-color: var(--secondary-light-color);
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hamburger-button {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-light-color);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.hamburger-button:hover {
    background-color: var(--secondary-light-color);
    transform: scale(1.05);
}

.hamburger-button span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    border-radius: 2px;
}

.content-section {
    display: flex;
    align-items: center;
    padding: 80px 5%;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-image-wrapper {
    flex: 1;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.content-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.content-text-wrapper {
    flex: 1.5;
    text-align: left;
    color: var(--secondary-light-color);
}

.section-title {
    font-family: var(--font-accent);
    font-size: 2.5em;
    color: var(--secondary-light-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.title-underline {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.content-text-wrapper p {
    font-family: var(--font-primary);
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--secondary-light-color);
    margin-bottom: 15px;
}

.products-section {
    background-color: var(--secondary-dark-color);
    padding: 100px 5%;
    text-align: center;
    color: var(--text-contrast-color);
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-title {
    font-family: var(--font-accent);
    font-size: 3em;
    color: var(--secondary-light-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.products-subtitle {
    font-family: var(--font-primary);
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: start;
}

.product-card {
    background-color: var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 40px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.product-image-container {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    background-color: var(--primary-color);
    align-items: center;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.product-image-container img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-info-box {
    background-color: var(--secondary-light-color);
    color: var(--primary-color);
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-top: -30px;
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 300px;
}

.product-name {
    font-family: var(--font-secondary);
    font-size: 1.6em;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-description {
    font-family: var(--font-primary);
    font-size: 0.95em;
    line-height: 1.4;
    color: var(--primary-color);
}

.subscription-section {
    display: flex;
    align-items: center;
    padding: 80px 5%;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.subscription-image-wrapper {
    flex: 1;
    min-width: 300px;
    height: 400px; 
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative; 
}

.subscription-image-wrapper img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: block;
    object-fit: cover; 
}

.subscription-text-wrapper {
    flex: 1.5;
    text-align: left;
}

.subscription-text-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.subscription-text-wrapper ul li {
    font-family: var(--font-primary);
    font-size: 1.05em;
    margin-bottom: 10px;
    color: var(--text-contrast-color);
}

.subscription-text-wrapper p {
    color: var(--text-contrast-color);
}

.subscription-text-wrapper .cta-button {
    margin-top: 20px;
}

#back-to-portfolio-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background-color: #1E1E1E;
  color: #00A3FF;
  border: 1px solid #00A3FF;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#back-to-portfolio-btn:hover {
  transform: translateY(-3px);
  background-color: #1E1E1E;
  color: white;
  border-color: #1E1E1E;
  box-shadow: 0 6px 15px rgba(0, 163, 255, 0.2);
}

@media (max-width: 768px) {
  #back-to-portfolio-btn span {
    display: none;
  }
  #back-to-portfolio-btn {
    padding: 12px 14px;
  }
}






.site-footer {
    background-color: var(--secondary-light-color);
    color: var(--primary-color);
    padding: 80px 5% 30px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-family: var(--font-secondary);
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-email, .footer-whatsapp {
    display: block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
}

.footer-form {
    display: flex;
    margin-top: 15px;
}

.footer-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary-dark-color);
    border-radius: 8px 0 0 8px;
}

.footer-form button {
    padding: 0 18px;
    border: 1px solid var(--primary-color);
    margin-left: -1px;
    background-color: var(--accent-color);
    color: var(--text-contrast-color);
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
}

.footer-bottom {
    border-top: 1px solid var(--primary-color);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9em;
}

footer {
    background-color: var(--secondary-dark-color);
    color: var(--secondary-light-color);
    padding: 40px 20px;
    text-align: center;
}

@media (max-width: 992px) {
    .content-section, .subscription-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
        gap: 40px;
    }
    .content-image-wrapper, .subscription-image-wrapper {
        min-width: auto;
        width: 80%;
        max-width: 500px;
    }
    .section-title .title-underline, .subscription-text-wrapper .title-underline {
        left: 50%;
        transform: translateX(-50%);
    }
    .content-text-wrapper, .subscription-text-wrapper {
        flex: 1;
    }
    .section-title {
        font-size: 2em;
        padding-bottom: 15px;
    }
    .content-text-wrapper p {
        font-size: 1em;
    }
    .products-title {
        font-size: 2.5em;
    }
    .product-cards-grid {
        gap: 30px;
    }
    .footer-grid {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-nav ul li a::after {
        display: none;
    }
    .main-nav ul li a.active {
        color: var(--accent-color);
    }
    .hero-section {
        height: 60vh;
        padding-top: 80px;
        justify-content: flex-start;
    }
    .hero-text-content {
        margin-top: 60px;
    }
    .hero-text-content h1 {
        font-size: 3em;
        margin-top: 20px;
    }
    .hero-text-content p {
        font-size: 1.5em;
        margin: 20px 0 30px;
        padding: 0 15px;
    }
    .cta-button {
        padding: 14px 35px;
        font-size: 1em;
    }
    .hamburger-button {
        display: flex;
    }
    .main-nav {
        display: none; 
    }
    .nav-open .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--secondary-dark-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 20px 40px;
        border-radius: 0;
        transform: translateX(0);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        border: none;
    }
    .main-nav {
        transform: translateX(100%);
    }
    .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--secondary-dark-color) 0%, var(--primary-color) 100%);
        opacity: 0.95;
        z-index: -1;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 35px;
        width: 100%;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .main-nav ul li a {
        color: var(--text-contrast-color);
        font-size: 1.4em;
        display: block;
        padding: 12px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .main-nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }
    .nav-open .hamburger-button span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-open .hamburger-button span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .nav-open .hamburger-button span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero-text-content h1 {
        font-size: 2.5em;
    }
    .hero-text-content p {
        font-size: 1.5em;
        margin-top: 20px;
    }
    .cta-button {
        padding: 12px 30px;
        font-size: 1em;
        margin-top: 30px;
    }
    .hamburger-button {
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }
    .hamburger-button span {
        width: 25px;
    }
    .content-section {
        padding: 40px 5%;
        gap: 30px;
    }
    .content-image-wrapper {
        width: 95%;
    }
    .section-title {
        font-size: 1.8em;
    }
    .content-text-wrapper p {
        font-size: 0.95em;
    }
    .products-title {
        font-size: 1.8em;
    }
    .products-subtitle {
        font-size: 1.2em;
        margin-bottom: 30px;
    }
    .product-image-container {
        height: 200px;
    }
    .product-info-box {
        margin-top: -20px;
        padding: 15px 20px;
        width: calc(100% - 30px);
    }
    .product-name {
        font-size: 1.3em;
    }
    .product-description {
        font-size: 0.85em;
    }

}

