/* ==========================================================================
   Littera Gryphus - Design System & Custom Stylesheet
   Aesthetic: Luxury, Editorial, Literary Fashion
   ========================================================================== */

/* --- Design Tokens / CSS Variables --- */
:root {
    --primary-color: #35302a;      /* Deep warm charcoal/brown (user specified) */
    --accent-color: #a68a64;       /* Antique gold / bronze */
    --accent-light: #c5a880;       /* Muted gold */
    --bg-cream: #fcfaf7;           /* Warm soft ivory */
    --bg-cream-trans: rgba(252, 250, 247, 0.85); /* Semi-transparent ivory for glassmorphism */
    --text-muted: #6e655c;         /* Soft brown-gray for secondary text */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.2s ease;
    --spacing-lg: 4rem;
    --spacing-md: 2rem;
    --spacing-sm: 1rem;
    --border-radius: 4px; /* Classic, sharp but elegant corners */
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-quick);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header / Navigation Bar (Transparent overlay on Hero) --- */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: flex-end; /* Align links to the right */
    align-items: center;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color); /* #35302a */
    position: relative;
    padding: 0.5rem 0;
}

/* Elegant Underline Hover Effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    z-index: 2; /* Renders on top of the About section so the clip-path is effective */
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('Imagens/banner-fundo-litera-gryphus.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding-top: 140px; /* Space to clear absolute header links */
    clip-path: url(#hero-curve-clip); /* Curves the bottom edge */
}

/* Elegant stroke-only curved divider positioned at the top of the overlapping About section */
.hero-divider {
    position: absolute;
    top: -2px; /* Pulls up slightly to hide any rounding gaps on the clip-path */
    left: 0;
    width: 100%;
    height: 90px;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive adjustments for the divider height */
@media (max-width: 768px) {
    .hero-divider {
        height: 50px;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Side Content Container (Logo Only) */
.hero-content-left {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
    display: flex;
    justify-content: flex-start;
}



.brand-showcase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Prominent Hero Brand Logo on the left */
.hero-brand-logo {
    max-height: 380px;
    width: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.03));
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.4s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.8s;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 1s;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-cream);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(166, 138, 100, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(53, 48, 42, 0.1);
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1.5rem 1rem;
        justify-content: center; /* Center the links on mobile */
    }
    
    .nav-menu ul {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    .hero-section {
        background-position: center;
        padding-top: 120px;
        padding-bottom: 120px;
        min-height: 70vh;
    }

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

    .hero-content-left {
        margin: 0 auto;
        justify-content: center;
    }

    .brand-showcase {
        align-items: center;
    }

    .hero-brand-logo {
        max-height: 250px;
        margin-bottom: 0;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        padding: 0.85rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

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

/* ==========================================================================
   Social Sidebar (Floating Left Menu)
   ========================================================================== */
.social-sidebar {
    position: fixed;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    z-index: 1100;
    opacity: 0;
    animation: fadeInSidebar 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 1.2s; /* Delays appearance until logo animation settles */
}

/* Elegant vertical line decorations for editorial/luxury layout */
.social-sidebar::before,
.social-sidebar::after {
    content: '';
    width: 1px;
    height: 80px;
    background-color: var(--accent-color);
    opacity: 0.35;
    transition: var(--transition-smooth);
}

.social-sidebar::before {
    margin-bottom: 0.5rem;
}

.social-sidebar::after {
    margin-top: 0.5rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.social-link .icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

/* Luxury hover effect */
.social-link:hover {
    color: var(--accent-color);
    border-color: rgba(166, 138, 100, 0.25);
    background-color: var(--bg-cream-trans);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(166, 138, 100, 0.1);
}

.social-link:hover .icon {
    transform: scale(1.15);
}

/* Sidebar Animation Keyframes */
@keyframes fadeInSidebar {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* Responsive adjust for medium screens */
@media (max-width: 1024px) {
    .social-sidebar {
        left: 1.5rem;
    }
    .social-sidebar::before,
    .social-sidebar::after {
        height: 60px;
    }
}

/* Responsive adjust for mobile screens */
@media (max-width: 768px) {
    .social-sidebar {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 5.5rem 0 2rem 0;
        gap: 2.5rem;
        opacity: 0;
        animation: fadeInSidebarMobile 1s ease forwards;
        animation-delay: 1.2s;
    }
    
    .social-sidebar::before,
    .social-sidebar::after {
        display: none; /* Hide vertical lines on mobile horizontal layout */
    }
    
    .social-link {
        border-color: rgba(53, 48, 42, 0.15);
        background-color: rgba(252, 250, 247, 0.5);
    }
}

@keyframes fadeInSidebarMobile {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Section: Quem Somos (About Us)
   ========================================================================== */
.about-section {
    position: relative;
    margin-top: -85px; /* Pulls the section up to overlap the curved bottom of the Hero section */
    padding: 10rem 2rem 8rem 2rem; /* Extra top padding to clear the divider line and avoid layout overlap */
    background-image: linear-gradient(to right, #000000 0%, rgba(0, 0, 0, 0) 100%), url('Imagens/fundo-secao-litera gryphus-quem-sou.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect on desktop */
    overflow: hidden;
    border-top: none; /* Removed the harsh border line for a smoother blend */
    border-bottom: 1px solid rgba(166, 138, 100, 0.15);
    z-index: 1; /* Renders behind the Hero section's clip-path */
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
    align-items: center;
}

/* Left Column: Brand Frame */
.about-content-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-frame {
    position: relative;
    padding: 2.5rem;
    background: transparent;
    border: 1px solid rgba(166, 138, 100, 0.15);
    box-shadow: 0 20px 40px rgba(53, 48, 42, 0.03);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.about-logo-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(166, 138, 100, 0.25);
    border-radius: calc(var(--border-radius) - 2px);
    pointer-events: none;
}

.about-logo {
    max-height: 320px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.02));
    transition: var(--transition-smooth);
}

.about-logo-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(166, 138, 100, 0.08);
    border-color: var(--accent-color);
}

.about-logo-frame:hover .about-logo {
    transform: scale(1.02);
}

/* Right Column: Editorial Text Card */
.about-content-right {
    display: flex;
    justify-content: flex-start;
}

.about-text-card {
    background: var(--bg-cream-trans);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4.5rem 4rem;
    border: 1px solid rgba(166, 138, 100, 0.12);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 25px 50px rgba(53, 48, 42, 0.04);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.about-text-card:hover {
    box-shadow: 0 35px 70px rgba(53, 48, 42, 0.07);
    border-color: rgba(166, 138, 100, 0.25);
    border-left-color: var(--accent-light);
}

.about-subtitle-top {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.75rem;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.about-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
    margin-bottom: 2.25rem;
}

.about-description p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-description p:last-child {
    margin-bottom: 0;
}

.about-signature {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(166, 138, 100, 0.15);
}

.about-signature p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    font-style: italic;
}

/* --- Responsive Adjustments for Quem Somos --- */
@media (max-width: 1024px) {
    .about-section {
        margin-top: -85px; /* Keep overlap */
        padding: 8rem 1.5rem 6rem 1.5rem; /* Adjust padding for overlap */
        background-attachment: scroll; /* Disable parallax on smaller screens for performance */
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-logo-frame {
        padding: 2rem;
    }

    .about-logo {
        max-height: 260px;
    }

    .about-text-card {
        padding: 3.5rem 2.5rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        margin-top: -45px; /* Reduced overlap for the smaller mobile curve */
        padding: 6rem 1rem 4rem 1rem; /* Adjust top padding for smaller curve */
        background-image: linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0) 100%), url('Imagens/Fundo-movel-secao-quem-somos-litera-gryphus.jpg');
    }
    
    .about-container {
        gap: 3rem;
    }

    .about-logo {
        max-height: 220px;
    }

    .about-text-card {
        padding: 2.5rem 1.75rem;
    }

    .about-title {
        font-size: 2.2rem;
    }
    
    .about-description p {
        font-size: 0.9rem;
        line-height: 1.75;
        text-align: left; /* Better readability on small mobile */
    }
}

/* ==========================================================================
   Section: Contato / Chamada para Ação (CTA)
   ========================================================================== */
.cta-section {
    position: relative;
    padding: 9rem 2rem 5rem 2rem;
    background-color: var(--bg-cream);
    text-align: center;
    border-bottom: 1px solid rgba(166, 138, 100, 0.15);
    overflow: hidden;
    z-index: 1;
}

.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-content {
    max-width: 850px;
    width: 100%;
}

.cta-subtitle-top {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1rem;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    letter-spacing: -0.01em;
}

.cta-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
    margin: 1.5rem auto 2.5rem auto;
}

.cta-description {
    margin-bottom: 3.5rem;
}

.cta-description p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cta-description p:last-child {
    margin-bottom: 0;
}

.cta-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background-color: #25D366;
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
    transition: var(--transition-smooth);
    border: 1px solid #25D366;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(18, 140, 126, 0.35);
}

.btn-whatsapp .whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.mini-footer {
    margin-top: 7rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(166, 138, 100, 0.1);
    text-align: center;
}

.mini-footer p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.mini-footer p:last-child {
    margin-bottom: 0;
}

/* --- Responsive Media Queries for CTA --- */
@media (max-width: 768px) {
    .cta-section {
        padding: 6rem 1.5rem 4rem 1.5rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-description p {
        font-size: 0.95rem;
        line-height: 1.75;
        text-align: center;
    }
    
    .btn-whatsapp {
        width: auto;
        justify-content: center;
        padding: 0.75rem 1.6rem;
    }
    
    .mini-footer {
        margin-top: 5rem;
    }
}


