:root {
    /* Colors */
    --black: #080808;
    --charcoal: #111111;

    --gold: #B8963E;
    --gold-light: #D4AF6A;

    --ivory: #F2EFE9;

    /* Typography */
    --font-primary: 'DM Sans', sans-serif;

    --weight-light: 200;
    --weight-regular: 300;
    --weight-medium: 400;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}


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

body {
    background: var(--black);
    color: var(--ivory);

    font-family: var(--font-primary);
    font-weight: var(--weight-regular);

    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: var(--weight-regular);
    
    line-height: 0.95;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-regular);
    margin-bottom: 2rem;
    color: var(--gold);
    
    line-height: 1;
}

h3 {
    font-size: 1.5rem;
    font-weight: var(--weight-regular)
}

p {
    font-size: 1rem;
    font-weight: var(--weight-light);
}

.navbar {

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;
    
    transition: 0.3s ease;

    padding: 1.5rem 0rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter:  blur(16px);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: var(--weight-light);
    transition: 0.3s, ease;
}

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

.nav-btn {
    font-size: 1.2rem;
    font-weight: var(--weight-light);   
    margin-left: 2rem;
    margin-right: 2rem;
}

.nav-btn:hover {
    color: var(--gold-light);
}

.btn {
    display: inline-block;
    border-radius: 999px;
    transition: 0.3s, ease;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);

    padding: 0.9rem 1.8rem;

    border-radius: 999px;

    font-weight: var(--weight-medium);

    transition: 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-light);
}

.btn-secondary {
    background: transparent;
    
    color: var(--ivory);

    border: 1px solid var(--gold);

    padding: 0.9rem 1.8rem;

    border-radius: 999px;

    font-weight: var(--weight-medium);

    transition: 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

section {
    padding: var(--space-lg);
}


.hero {
    min-height: calc(100vh - 90px);
    padding: 10rem 4vw 4rem;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    line-height: 0.85;
    margin-bottom: 2rem;
}

.hero p {
    max-width: 650px;

    margin-bottom: 2rem;

    color: rgba(242, 239, 233, 0.8);
}

.hero h1 span {
    color: var(--gold)
}

.hero-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img img {
    width: 100%;
    max-width: 400px;
    opacity: 0.75;
}

.hero-img img:hover {
    opacity: 1;
}

.footer {
    padding: 2rem;

    border-top: 1px solid rgba(212, 175, 106, 0.15);

    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    font-size: 0.9rem;
    font-weight: var(--weight-light);

    color: var(--ivory);
}

.servicos .eyebrow {
    margin-bottom: 2rem;
}

.servicos h2 {
    color: var(--gold);
    margin-bottom: 2rem;
}

.servicos h3 {
    font-weight: var(--weight-medium);
    margin-bottom: 1rem;
}

.servicos-card p {
    font-weight: var(--weight-light);
}

.servicos-card span {
    font-weight: var(--weight-medium);
    color: var(--gold);
    margin-right: 1rem;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 10px;
}

.servicos-card {
    background: rgba(17, 17, 17, 0.25);
    border: 1px solid transparent;
    padding: 3rem 2.5rem;
    transition: 0.3s ease;
    text-align: center;
    cursor: default;
}

.servicos-card:hover {
    border: 1px solid rgba(212, 175, 106, 0.25);
    transform: translateY(-5px);
    background: rgba(17, 17, 17, 0.3);
}

.processo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;

    padding-top: 2rem;
    cursor: default;
}

.processo-step {
    position: relative;
    transition: 0.3s ease;
    cursor: default;
    border-top: 1px solid var(--gold);
    padding-top: 1.5rem;
    
}

.processo-step:hover {
    transform: translateY(-5px);
}

.processo-number {
    display: inline-block;
    color: rgba(184, 150, 62, 0.6);
    font-weight: var(--weight-medium);
    transition: 0.3s ease;
}

.processo-step:hover .processo-number {
    color: var(--gold-light);
}

.processo .eyebrow {
    margin-bottom: 2rem;
}

.processo h2{
    margin-bottom: 2rem;
    color: var(--gold);

}

.processo-step h3 {
    color: rgba(242, 239, 233, 0.8);
    margin-bottom: 1rem;
    font-weight: var(--weight-medium);
    transition: 0.3s ease;
}

.processo-step:hover h3 {
    color: var(--ivory);
}

.processo-step p {
    font-weight: var(--weight-light);
    color: rgba(242, 239, 233, 0.65);
    transition: 0.3s ease;
}

.processo-step:hover p {
    color: rgba(242, 239, 233, 0.9);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    cursor: default;
}

.portfolio span {
    color: var(--gold);
    margin-bottom: 2rem;
}

.portfolio-featured p {
    margin-top: 2rem;
}

.portfolio-featured h3 {
    margin-bottom: 2rem;
    
}

.portfolio h2 {
    margin-bottom: 2rem;
    color: var(--gold);
}


.portfolio-featured {
    grid-column: span 2;
}

.portfolio-featured,
.portfolio-placeholder {
    background: rgba(17, 17, 17, 0.25);
    padding: 3rem;
    transition: 0.3s ease;
}

.portfolio-featured:hover,
.portfolio-placeholder:hover {
    transform: translateY(-5px);
}

.portfolio-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0.5rem 0.8rem;
    font-size: 2rem;
    color: rgba(242, 239, 233, 0.65);
    background: transparent;
    border: none;
    cursor: pointer;
}

.slider-button:hover {
    color: rgba(242, 239, 233, 0.8);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;   
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

.eyebrow {
    margin-bottom: 2rem;
}


.sobre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

    padding-top: 2rem;
    cursor: default;
}

.sobre h2 {
    color: var(--gold);
    margin-bottom: 2rem;
    justify-content: center;
}

.sobre p {
    padding: 0.5rem;
}

.sobre span {
    color: var(--gold);
}

.sobre-principio h3 {
    color: rgba(242, 239, 233, 0.8);
    margin-bottom: 1rem;
    font-weight: var(--weight-medium);
    transition: 0.3s ease;
}

.sobre-principio h3:hover{
    color: var(--ivory);
}

.sobre-principio p {
    font-weight: var(--weight-light);
    color: rgba(242, 239, 233, 0.65);
    transition: 0.3s ease;
}

.sobre-principio:hover p {
    color: rgba(242, 239, 233, 0.9);
}

.sobre-principio {
    position: relative;
    transition: 0.3s ease;
    cursor: default;
    border-top: 1px solid var(--gold);
    padding-top: 1.5rem;
    
}

.sobre-principio:hover {
    transform: translateY(-5px);
}

.sobre-number {
    display: inline-block;
    color: rgba(184, 150, 62, 0.6);
    font-weight: var(--weight-medium);
    transition: 0.3s ease;
}

.sobre-principio:hover .sobre-number {
    color: var(--gold-light);
}

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

.contacto-grid {
    max-width: 800px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contacto-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--charcoal);
    color: var(--ivory);
    border: 1px solid rgba(212, 175, 106, 0.25);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
    
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: var(--gold);
    outline: 1px solid var(--gold);
}

.contacto-form textarea {
    resize: vertical;
}

.contacto-form .btn-primary {
    align-self: center;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
}

.form-status {
    min-height: 1.7rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--gold-light);
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .navbar nav,
    .navbar > .nav-btn:last-child {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 8rem 1.5rem 4rem;
        grid-template-columns: 1fr;
    }

    .hero-img {
        display: none;
    }

    .servicos-grid,
    .processo-grid,
    .portfolio-grid,
    .sobre-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-featured {
        grid-column: auto;
    }

    .portfolio-featured,
    .portfolio-placeholder {
        padding: 1.5rem;
    }

    .portfolio-slider {
        height: 300px;
    }
}