/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', sans-serif;
    background: #f5f5f0;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== UTILITY ===== */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 12px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(201, 168, 76, 0.05);
}

.highlight {
    color: #c9a84c;
}

.btn-primary {
    display: inline-block;
    background: #c9a84c;
    color: #ffffff;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #b8973a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: #f5f5f0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.logo {
    display: flex;
    align-items: flex-end;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1a1a1a;
}

.logo-img {
    width: 400px;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: flex-end;
    padding-bottom: 2px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #555555;
    transition: color 0.3s ease;
    position: relative;
    line-height: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #c9a84c;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #c9a84c;
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    align-self: flex-end;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Each slide is just a fade container — the image lives in ::before */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    overflow: hidden;
}

/*
 * The image layer that receives the Ken Burns effect via transform.
 *
 * background-size: cover (not inherit) — this ignores the inline
 * background-size values on each .slide (130%, 110%, 90%) and forces the
 * image to always fill the full ::before box on every screen size.
 * Without this, mobile viewports show gaps at the top/bottom of the slide.
 */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.15) translateX(-3%);
    will-change: transform;
}

.slide.active {
    opacity: 1;
}

/*
 * Pan classes are set once per slide on load and never removed.
 * The animation runs whenever the pan class is present, but is paused
 * by default so inactive slides stay frozen at their last frame.
 * Only the active slide's animation is running.
 */
.slide.pan-ltr::before {
    animation: kenBurnsLTR 8s ease-in-out forwards;
    animation-play-state: paused;
}

.slide.pan-rtl::before {
    animation: kenBurnsRTL 8s ease-in-out forwards;
    animation-play-state: paused;
}

.slide.active.pan-ltr::before,
.slide.active.pan-rtl::before {
    animation-play-state: running;
}

@keyframes kenBurnsLTR {
    0%   { transform: scale(1.15) translateX(-3%); }
    100% { transform: scale(1.15) translateX(3%); }
}

@keyframes kenBurnsRTL {
    0%   { transform: scale(1.15) translateX(3%); }
    100% { transform: scale(1.15) translateX(-3%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content h1 .highlight {
    color: #c9a84c;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== QUICK NAVIGATION BUTTONS ===== */
.quick-nav {
    padding: 40px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #f5f5f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: #1a1a1a;
}

.quick-nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #c9a84c;
    background: #ffffff;
}

.quick-nav-btn i {
    font-size: 2rem;
    color: #c9a84c;
    margin-bottom: 10px;
}

.quick-nav-btn span {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    padding: 40px 0 80px;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item i {
    font-size: 1.4rem;
    color: #c9a84c;
    margin-top: 4px;
    width: 32px;
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 4px;
}

.contact-item p {
    color: #333333;
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-whatsapp,
.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-call {
    background: #34B7F1;
}

.btn-call:hover {
    background: #1a9fd6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 183, 241, 0.3);
}

.btn-whatsapp i,
.btn-call i {
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    background: #f5f5f0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
    border-radius: 4px;
    color: #1a1a1a;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.4);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
    background: #f5f5f0;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .footer-logo-img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #555555;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    color: #999999;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 140px 0 60px;
    background: #f5f5f0;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICES PAGE ===== */
.services-page {
    padding: 40px 0 80px;
    background: #ffffff;
    text-align: justify;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse .service-item-content {
    direction: ltr;
}

.service-item-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-item-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.service-item-content ul {
    list-style: none;
    padding: 0;
}

.service-item-content ul li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-item-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #c9a84c;
    font-weight: 700;
}

/* ===== PROJECTS PAGE ===== */
.projects-page {
    padding: 40px 0 80px;
    background: #ffffff;
}

.project-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #666666;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background: #f5f5f0;
    display: block;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    transition: background 0.3s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.project-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 4px;
}

.project-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.project-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== ABOUT PAGE ===== */
.about-page {
    padding: 40px 0 80px;
    background: #ffffff;
}

.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-page-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.about-page-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about-page-content p {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 30px;
}

.about-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #c9a84c;
}

.about-stats .stat-label {
    font-size: 0.85rem;
    color: #777777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-item {
        grid-template-columns: 1fr;
        gap: 24px;
        direction: ltr !important;
    }
    .service-item.reverse {
        direction: ltr !important;
    }
    .service-item.reverse .service-item-content {
        direction: ltr !important;
    }
    .service-item-image img {
        height: 280px;
    }
    .about-page-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-page-image img {
        height: 350px;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-img {
        width: 250px;
    }
    .footer-brand .footer-logo-img {
        width: 150px;
    }
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #f5f5f0;
        padding: 30px 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        align-items: flex-start;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.1rem;
    }
    .logo-img {
        width: 180px;
    }
    .footer-brand .footer-logo-img {
        width: 120px;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-whatsapp,
    .btn-call {
        justify-content: center;
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .quick-nav {
        padding: 30px 0;
    }
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .quick-nav-btn {
        padding: 20px 16px;
    }
    .quick-nav-btn i {
        font-size: 1.5rem;
    }
    .quick-nav-btn span {
        font-size: 0.85rem;
    }
    .page-hero {
        padding: 120px 0 40px;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .page-hero p {
        font-size: 0.95rem;
    }
    .services-page {
        padding: 20px 0 60px;
    }
    .service-item {
        padding: 20px 0;
        gap: 16px;
    }
    .service-item-image img {
        height: 220px;
    }
    .service-item-content h2 {
        font-size: 1.3rem;
    }
    .service-item-content ul li {
        font-size: 0.85rem;
        padding: 4px 0;
        padding-left: 20px;
    }
    .projects-page {
        padding: 20px 0 60px;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .project-image img {
        height: 200px;
    }
    .project-overlay {
        padding: 16px;
    }
    .project-overlay h3 {
        font-size: 0.85rem;
    }
    .project-overlay p {
        font-size: 0.7rem;
    }
    .project-category {
        font-size: 0.6rem;
    }
    .about-page {
        padding: 20px 0 60px;
    }
    .about-page-image img {
        height: 250px;
    }
    .about-page-content h2 {
        font-size: 1.6rem;
    }
    .about-page-content p {
        font-size: 0.95rem;
    }
    .about-stats {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 140px;
    }
    .footer-brand .footer-logo-img {
        width: 100px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .btn-primary {
        padding: 10px 22px;
        font-size: 0.8rem;
    }
    .btn-whatsapp,
    .btn-call {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    .footer {
        padding: 30px 0 15px;
    }
    .quick-nav {
        padding: 20px 0;
    }
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .quick-nav-btn {
        padding: 16px 12px;
    }
    .quick-nav-btn i {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    .quick-nav-btn span {
        font-size: 0.75rem;
    }
    .page-hero h1 {
        font-size: 1.6rem;
    }
    .service-item-image img {
        height: 180px;
    }
    .service-item-content h2 {
        font-size: 1.1rem;
    }
    .service-item-content ul li {
        font-size: 0.8rem;
        padding: 3px 0;
        padding-left: 18px;
    }
    .projects-grid {
        gap: 12px;
    }
    .project-image img {
        height: 150px;
    }
    .project-overlay {
        padding: 12px;
    }
    .project-overlay h3 {
        font-size: 0.75rem;
    }
    .project-overlay p {
        font-size: 0.65rem;
    }
    .project-category {
        font-size: 0.55rem;
    }
    .project-filters {
        gap: 6px;
    }
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    .about-page-image img {
        height: 200px;
    }
    .about-page-content h2 {
        font-size: 1.3rem;
    }
    .about-page-content p {
        font-size: 0.85rem;
    }
    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
    .about-stats .stat-number {
        font-size: 1.8rem;
    }
}