:root {
    --bg: #f8f3ea;
    --bg-alt: #f1e8d9;
    --surface: #fffdf8;
    --border: rgba(122, 96, 68, 0.16);
    --text: #4d4238;
    --text-muted: #8a7a68;
    --accent: #c97e5a;
    --accent-deep: #a96344;
    --sage: #9fb08a;
    --amber: #e3b87e;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* ---------- Animações ---------- */

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(26px, -32px) scale(1.05); }
    66%      { transform: translate(-20px, 20px) scale(0.97); }
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(248, 243, 234, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--amber), var(--sage));
    background-size: 200% 200%;
    animation: gradient-shift 9s ease infinite;
    font-family: "Fraunces", serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(201, 126, 90, 0.35);
}

.brand-name {
    font-family: "Fraunces", serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent-deep) !important;
    transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
    background: var(--accent);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.25s;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #f8f0e2, #f6e8dd, #eef0e2, #f3ece0, #f8f0e2);
    background-size: 400% 400%;
    animation: gradient-shift 24s ease infinite;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #ecc9ae;
    top: -90px;
    left: -70px;
    animation: float 19s ease-in-out infinite;
}

.blob-2 {
    width: 340px;
    height: 340px;
    background: #d4dfc0;
    top: 42%;
    right: -90px;
    animation: float 22s ease-in-out infinite reverse;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: #f0dcb4;
    bottom: -70px;
    left: 30%;
    animation: float 17s ease-in-out infinite;
    animation-delay: -5s;
}

.blob-4 {
    width: 230px;
    height: 230px;
    background: #e4c3b2;
    top: 18%;
    left: 55%;
    animation: float 20s ease-in-out infinite;
    animation-delay: -9s;
}

.hero-content {
    position: relative;
    text-align: center;
    padding-top: 68px;
}

.hero-content > * {
    animation: fade-up 0.9s ease both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 14px;
}

.hero-title {
    font-family: "Fraunces", serif;
    font-weight: 900;
    font-size: clamp(3.2rem, 9vw, 6rem);
    line-height: 1.05;
    background: linear-gradient(120deg, #a96344, #c97e5a, #8a9a72, #a96344);
    background-size: 300% 300%;
    animation: gradient-shift 14s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    margin: 18px auto 34px;
    max-width: 560px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 8px 22px rgba(201, 126, 90, 0.38);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(201, 126, 90, 0.48);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 253, 248, 0.7);
}

.btn-outline:hover {
    background: var(--surface);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(122, 96, 68, 0.16);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 16px 36px;
}

/* ---------- Sections ---------- */

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section-title {
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--amber), var(--sage));
}

/* ---------- Sobre ---------- */

.about-grid {
    display: grid;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
}

.about-lead strong {
    color: var(--text);
}

.about-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.point {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 6px 20px rgba(122, 96, 68, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.point:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(122, 96, 68, 0.16);
}

.point h3 {
    font-family: "Fraunces", serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--accent-deep);
}

.point p {
    color: var(--text-muted);
    font-size: 0.97rem;
}

/* ---------- Equipe ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    gap: 20px;
    justify-content: center;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 26px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(122, 96, 68, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(122, 96, 68, 0.16);
}

.team-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--amber));
    font-family: "Fraunces", serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(201, 126, 90, 0.3);
}

.avatar-alt {
    background: linear-gradient(135deg, #6d8257, var(--sage));
    box-shadow: 0 6px 18px rgba(159, 176, 138, 0.4);
}

.team-name {
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-deep);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-alt);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.team-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Projetos ---------- */

.project-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 48px;
    max-width: 960px;
    margin: 0 auto 36px;
    box-shadow: 0 10px 32px rgba(122, 96, 68, 0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(122, 96, 68, 0.2);
}

.project-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-deep);
    background: #f6e3d5;
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.badge-dev {
    color: #5f7350;
    background: #e4ebd9;
}

.project-title {
    font-family: "Fraunces", serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-bottom: 26px;
}

.project-tags li {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    transition: transform 0.2s, background 0.2s;
}

.project-tags li:hover {
    transform: translateY(-2px);
    background: #ece0c9;
}

.project-card .btn {
    margin-top: 0;
}

.project-visual {
    display: grid;
    place-items: center;
    min-height: 240px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0d9c2, #ecd2bc, #dfe6cd, #f0e0c4);
    background-size: 300% 300%;
    animation: gradient-shift 16s ease infinite;
    border: 1px solid var(--border);
    overflow: hidden;
}

.project-visual img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-visual img {
    transform: scale(1.04);
}

.projects-banner {
    max-width: 960px;
    margin: 8px auto 28px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 32px rgba(122, 96, 68, 0.14);
}

.projects-banner img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.visual-alt {
    background: linear-gradient(135deg, #f5efe3, #efe6d5, #e8efdd, #f5efe3);
    background-size: 300% 300%;
}

.visual-alt img {
    object-fit: contain;
    padding: 18px;
}

.projects-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ---------- Contato ---------- */

.contact-wrap {
    text-align: center;
    max-width: 640px;
}

.contact-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: "Fraunces", serif;
    font-weight: 700;
}

.footer-brand span {
    color: var(--text-muted);
    font-weight: 500;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    margin-left: 6px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- Responsivo ---------- */

@media (max-width: 820px) {
    .project-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .project-visual {
        min-height: 180px;
    }
}

@media (max-width: 700px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        max-height: 320px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 14px 0;
    }

    .nav-cta {
        border: none;
        border-radius: 0;
    }
}
