/* assets/css/main.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background: var(--bg-primary-grad);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* ==========================================
   2. TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    transition: color var(--transition-normal);
}

h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.56rem, 3.46vw, 2.38rem);
    position: relative;
    padding-bottom: 12px;
}

h3 {
    font-size: clamp(1.13rem, 2.16vw, 1.56rem);
}

h4 {
    font-size: clamp(1.03rem, 1.92vw, 1.3rem);
}

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.1px;
    margin-bottom: 16px;
    transition: color var(--transition-normal);
}

.text-highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-center {
    text-align: center;
}

/* ==========================================
   3. LAYOUT & CONTAINERS
   ========================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: clamp(30px, 10vw, 50px) 0;
}

.section-bg {
    background-color: var(--bg-secondary);
    background: var(--bg-secondary-grad);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--border-radius-full);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* ==========================================
   4. NAVIGATION HEADER (REDESIGNED FOR ALIGNMENT)
   ========================================== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal), backdrop-filter var(--transition-normal);
}

.header-wrapper.scrolled {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: var(--header-height);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
}

.logo-img {
    height: 80px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-container:hover .logo-img {
    transform: scale(1.03);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--brand-green);
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .logo-text {
    color: var(--brand-white);
}

.logo-text span {
    font-size: 0.65rem;
    color: var(--brand-gold);
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 3px;
}

.nav-menu {
    justify-self: center;
}

.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--border-radius-full);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--brand-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.desktop-cta {
    display: inline-flex;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
    margin-left: 8px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: var(--border-radius-full);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Off-canvas menu footer drawer styles */
.nav-menu-footer {
    display: none;
}

/* Mobile Nav Styles & Responsiveness */
@media (max-width: 991px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-cta {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .logo-img {
        height: 70px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-text span {
        font-size: 0.65rem;
        letter-spacing: 2.5px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-card);
        background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 90px 30px 60px 30px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-normal), visibility var(--transition-normal);
        z-index: 1050;
        align-items: stretch;
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
        margin-top: 20px;
    }

    .nav-menu-links .nav-link {
        font-size: 1.35rem;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }

    .nav-menu-links .nav-link.active {
        color: var(--brand-gold);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Full-width sticky button inside mobile off-canvas menu */
    .nav-menu-footer {
        display: block;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px dashed var(--border-color);
        text-align: center;
    }

    .nav-menu-footer .btn {
        width: 100%;
        display: flex;
        box-shadow: var(--shadow-gold);
        margin-bottom: 20px;
    }

    .nav-menu-socials {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 12px;
        margin-bottom: 20px;
    }
}

/* Screen sizes < 480px adjust spacing to prevent overflow while preserving logo subtitle */
@media (max-width: 480px) {
    .logo-img {
        height: 60px;
    }
    .logo-container {
        gap: 8px;
    }
    .logo-text {
        font-size: 1.08rem;
        line-height: 1;
    }
    .logo-text span {
        display: block;
        font-size: 0.52rem;
        letter-spacing: 1.8px;
        margin-top: 2px;
    }
    .header-actions {
        gap: 8px;
    }
}

/* ==========================================
   5. FLOATING CTAS & CONTROLS
   ========================================== */
.floating-actions {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

@media (max-width: 575px) {
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    .btn-float {
        width: 46px;
        height: 46px;
    }
    .btn-float svg {
        width: 20px;
        height: 20px;
    }
}

.btn-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1BD741 100%);
}

.btn-phone {
    background: var(--gradient-green);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.btn-float svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* ==========================================
   6. FOOTER
   ========================================== */
.footer {
    background-color: var(--brand-charcoal);
    background: linear-gradient(180deg, #0C120F 0%, #060907 100%);
    color: #BAC7BE;
    padding: 60px 0 15px 0;
    border-top: 1px solid #1E2B23;
}

.footer-top {
    margin-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }

    /* Row 1 (Full Width): Logo & About */
    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
    }

    /* Row 2: Quick Links (Col 1, 50%) & Services (Col 2, 50%) sit side-by-side naturally */

    /* Row 3 (Full Width): Contact Details */
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

.footer-brand .logo-text {
    color: var(--brand-white);
}

.footer-brand p {
    color: #8D9E94;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1A2620;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BAC7BE;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-gold);
    color: var(--brand-charcoal);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-heading {
    color: var(--brand-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8D9E94;
    position: relative;
    padding-left: 0;
    transition: color var(--transition-fast), padding var(--transition-fast);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity var(--transition-fast), left var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-gold);
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #8D9E94;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    fill: var(--brand-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid #1E2B23;
    padding: 20px 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 0.85rem;
    color: #6C7D73;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.footer-copyright-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.footer-copyright-col p {
    font-size: 0.85rem;
    color: #6C7D73;
    margin-bottom: 0;
}

.developer-credit {
    font-size: 0.85rem;
    color: #8D9E94;
}

.developer-credit a {
    color: var(--brand-gold);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.developer-credit a:hover {
    color: var(--brand-gold-hover);
}

.footer-legal-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 0.85rem;
    margin-left: auto;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: #6C7D73;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--brand-gold);
}

.footer-back-to-top-wrapper {
    width: 100%;
    text-align: center;
    padding-top: 8px;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #8D9E94;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-back-to-top:hover {
    color: var(--brand-gold);
    transform: translateY(-3px);
}

.footer-back-to-top svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-right: 6px;
    transition: transform var(--transition-fast);
}

.footer-back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-copyright-col {
        text-align: center;
    }
    .footer-legal-links {
        margin-left: 0;
        justify-content: center;
    }
}

/* ==========================================
   7. ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Body scroll locking when menu is open */
body.nav-menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed;
    width: 100%;
}
