/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
 * Tema Medieval São José Bits
 * Predominante: #F6EBD9 (capa e fundo principal)
 * Secundária: #DDF5D7
 * Detalhes: #A0885E (dourado medieval)
 * Sem tons roxos, tudo em tons terrosos, bege, dourado e verde claro
*/
:root {
    --color-bg-main: #F6EBD9;
    --color-bg-secondary: #DDF5D7;
    --color-gold: #A0885E;
    --color-text-main: #A0885E;
    --color-text-secondary: #5C4A2D;
    --color-btn-primary: #A0885E;
    --color-btn-primary-hover: #8C774B;
    --color-btn-secondary: #DDF5D7;
    --color-btn-outline: #A0885E;
    --color-card-bg: #FFF9F0;
    --color-card-shadow: #A0885E22;
    --color-accent: #DDF5D7;
}

/* Fonte medieval com serifa */
@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=EB+Garamond:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.brand-name {
    font-family: 'UnifrakturCook', 'EB Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

/* Buttons */
.btn,
.nav-link,
.section-title,
.product-title,
.stat-number {
    font-family: 'EB Garamond', serif;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-family: 'EB Garamond', serif;
}

.btn-primary {
    background: linear-gradient(90deg, #A0885E 0%, #D1B98A 100%);
    color: #533603;
    border: 2px solid #8C774B;
    box-shadow: 0 2px 8px #A0885E22;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #8C774B 0%, #C2A46B 100%);
    box-shadow: 0 6px 18px #A0885E33;
    border-color: #A0885E;
}

.btn-secondary {
    background: linear-gradient(90deg, #DDF5D7 0%, #F6EBD9 100%);
    color: var(--color-gold);
    border: 2px solid #A0885E;
    box-shadow: 0 2px 8px #A0885E22;
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #b9cdb3 0%, #cdc3b2 100%);
    color: #8f6805;
    border-color: #8C774B;
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: #fff;
    border-color: var(--color-gold);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-main);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-gold);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 60px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-gold);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text-secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 0px);
    height: calc(100vh - 0px);
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--color-bg-main);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-text-secondary);
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.hero-nav {
    position: absolute;
    top: 32px;
    right: 0;
    left: 0;
    margin: 0 2rem;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    z-index: 10;
    transition: none;
}

.hero-hamburger {
    display: none;
}

@media (max-width: 900px) {
    .hero-nav {
        margin: 0 1rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
        padding-top: 0;
        padding-bottom: 2.5rem;
    }
    .hero-social {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero-nav {
        position: static;
        flex-direction: column;
        align-items: flex-end;
        background: rgba(246, 235, 217, 0.98);
        border-radius: 8px;
        box-shadow: 0 2px 12px #A0885E22;
        padding: 0.5rem 1rem;
        margin: 1rem 1rem 0 1rem;
        display: none;
        transition: none;
    }

    .hero-nav.open {
        display: flex;
    }

    .hero-hamburger {
        display: flex;
        position: absolute;
        top: 32px;
        right: 2rem;
        z-index: 20;
        flex-direction: column;
        gap: 5px;
        width: 36px;
        height: 36px;
        justify-content: center;
        align-items: center;
        background: rgba(246, 235, 217, 0.7);
        border-radius: 6px;
        cursor: pointer;
        border: 1px solid #A0885E33;
    }

    .hero-hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        background: #A0885E;
        border-radius: 2px;
        transition: all 0.3s;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-social {
        margin-bottom: 2.5rem;
    }
    .hero {
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 400px) {
    .hero-nav {
        margin: 0 0.2rem;
        padding: 0.5rem 0.2rem;
    }
}

/* Ícones sociais do hero */
.hero-social {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.social-icon {

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 20px;
    background: #d1ad8459;
    width: 60px;
    height: 60px;
    box-shadow: 0 0 5px #0b0a05;
}

.social-icon:hover,
.social-icon:focus {
    background: var(--color-gold);
    box-shadow: 0 4px 16px #A0885E33;
    transform: translateY(-2px) scale(1.08);
    outline: none;
}



@media (max-width: 600px) {
    .hero-social {
        gap: 1.2rem;
        margin-top: 2rem;
        justify-content: center;
    }
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--color-bg-main);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--color-card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--color-card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-gold);
    max-width: 600px;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--color-bg-main);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var (--color-gold);
}

/* Footer */
.footer {
    background: var(--color-gold);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #ccc;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--color-bg-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--color-bg-secondary);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--color-bg-main);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }
    .hero-social {
        margin-bottom: 2.5rem;
    }
    .hero {
        padding-bottom: 2.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}