/* =============================================================================
   SVN INTERIO — Global CSS
   File: public/assets/css/global.css
   Description: CSS Variables, Reset, Typography, Buttons, Header, Footer,
                and shared utility classes used across ALL pages.
   Author: Expert Developer
============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   1. CSS DESIGN TOKENS (Variables)
───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --color-primary:        #d81b60;   /* Light Pinkish Red (from new logo) */
    --color-primary-hover:  #ad1457;   /* Darker Pinkish Red — hover states */
    --color-primary-light:  #fce4ec;   /* Very light pink — bg tints */
    --color-navy:           #1e3a8a;   /* Deep Navy — header, footer, dark sections */
    --color-navy-dark:      #172554;   /* Darker Navy — footer deeper bg */
    --color-navy-light:     #1e40af;   /* Lighter Navy — hover on dark bg */

    /* Neutral Colors */
    --color-white:          #ffffff;
    --color-gray-50:        #f8f9fa;
    --color-gray-100:       #f1f3f5;
    --color-gray-200:       #e9ecef;
    --color-gray-300:       #dee2e6;
    --color-gray-400:       #ced4da;
    --color-gray-500:       #adb5bd;
    --color-gray-600:       #6c757d;
    --color-gray-700:       #495057;
    --color-gray-800:       #343a40;
    --color-gray-900:       #212529;

    /* Text Colors */
    --color-text-primary:   #1a1a2e;
    --color-text-secondary: #555570;
    --color-text-light:     #8890a4;
    --color-text-white:     #ffffff;

    /* Typography */
    --font-primary:    'Outfit', sans-serif;
    --font-secondary:  'Inter', sans-serif;

    /* Font Sizes */
    --fs-xs:    0.75rem;   /* 12px */
    --fs-sm:    0.875rem;  /* 14px */
    --fs-base:  1rem;      /* 16px */
    --fs-md:    1.125rem;  /* 18px */
    --fs-lg:    1.25rem;   /* 20px */
    --fs-xl:    1.5rem;    /* 24px */
    --fs-2xl:   1.875rem;  /* 30px */
    --fs-3xl:   2.25rem;   /* 36px */
    --fs-4xl:   2.75rem;   /* 44px */
    --fs-5xl:   3.5rem;    /* 56px */

    /* Font Weights */
    --fw-light:     300;
    --fw-regular:   400;
    --fw-medium:    500;
    --fw-semibold:  600;
    --fw-bold:      700;
    --fw-extrabold: 800;
    --fw-black:     900;

    /* Spacing */
    --space-1:   0.25rem;
    --space-2:   0.5rem;
    --space-3:   0.75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;

    /* Border Radius */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.13);
    --shadow-xl:  0 16px 48px rgba(0,0,0,0.16);

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-base:   0.25s ease;
    --transition-slow:   0.4s ease;

    /* Layout */
    --container-max:  1280px;
    --header-height:  80px;
    --header-top-h:   36px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. CSS RESET & BASE
───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--fs-base);
    color: var(--color-text-primary);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. LAYOUT UTILITIES
───────────────────────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-padding {
    padding: var(--space-20) 0;
}

.section-padding-sm {
    padding: var(--space-12) 0;
}

/* Section Label (small red uppercase tag) */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

/* Section Title */
.section-title {
    font-family: var(--font-primary);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.section-title span {
    color: var(--color-primary);
}

/* Section Subtitle */
.section-subtitle {
    font-size: var(--fs-md);
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. BUTTONS
───────────────────────────────────────────────────────────────────────────── */

/* Primary Button — Crimson filled */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 28px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-primary);
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 18, 48, 0.35);
}

/* Secondary Button — Outlined */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 28px;
    background: transparent;
    color: var(--color-navy);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-navy);
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* White Outline Button (for dark backgrounds) */
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 28px;
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.6);
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-white);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. HEADER — TOP BAR
───────────────────────────────────────────────────────────────────────────── */
.header-topbar {
    background: var(--color-navy-dark);
    height: var(--header-top-h);
    display: flex;
    align-items: center;
}

.header-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.75);
}

.topbar-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    transition: color var(--transition-fast);
}

.topbar-contact a:hover { color: var(--color-white); }

.topbar-contact .lucide { width: 13px; height: 13px; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.6);
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. HEADER — MAIN NAV
───────────────────────────────────────────────────────────────────────────── */
.header-main {
    background: var(--color-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow var(--transition-base);
}

.header-main.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-primary);
    font-weight: var(--fw-black);
    font-size: var(--fs-xl);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-family: var(--font-primary);
    font-weight: var(--fw-black);
    font-size: 1.5rem;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

.logo-text span {
    font-size: var(--fs-xs);
    color: var(--color-text-secondary);
    font-weight: var(--fw-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 9px;
    font-size: 13.5px;
    font-weight: var(--fw-medium);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.nav-link .lucide {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.nav-link:hover .lucide { transform: rotate(180deg); }

.mobile-nav-cta {
    display: none;
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 8px 16px;
    font-size: var(--fs-sm);
    color: var(--color-text);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.header-phone small {
    font-size: 10px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-phone a {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    color: var(--color-navy);
}

.header-phone a:hover { color: var(--color-primary); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-2);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. FOOTER
───────────────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.75);
}

/* Footer Top */
.footer-top {
    padding: var(--space-16) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: var(--space-12);
}

.footer-brand .site-logo {
    margin-bottom: var(--space-5);
}

.footer-brand .logo-text strong { color: var(--color-white); }
.footer-brand .logo-text span   { color: rgba(255,255,255,0.5); }

.footer-brand p {
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.social-btn .lucide { width: 16px; height: 16px; }

/* Footer Column */
.footer-col h4 {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

/* Footer Contact Info */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.65);
}

.footer-contact-item .icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(196, 18, 48, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact-item .icon-wrap .lucide {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-5) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: var(--color-white); }

/* ─────────────────────────────────────────────────────────────────────────────
   8. FORM ELEMENTS
───────────────────────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    background: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196,18,48,0.1);
}

.form-control::placeholder {
    color: var(--color-gray-500);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. ALERTS / NOTIFICATIONS
───────────────────────────────────────────────────────────────────────────── */
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    font-size: var(--fs-sm);
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. RESPONSIVE — MOBILE
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .header-topbar { display: none; }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        padding-bottom: calc(var(--space-8) + 40px);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .main-nav.open { display: flex; }

    .nav-link { padding: 12px var(--space-4); }

    .menu-toggle { display: flex; }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-primary);
        border-radius: 0;
        margin-left: var(--space-4);
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-item.open .nav-dropdown {
        display: block;
    }

    .header-phone { display: none; }
    .header-right { display: none; }
    .mobile-nav-cta { display: block !important; margin-top: var(--space-4); }

    .section-title { font-size: var(--fs-2xl); }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-4); }
    .section-padding { padding: var(--space-12) 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. INNER PAGE HERO BANNER (shared by About, Products, Projects, Contact)
───────────────────────────────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    padding: var(--space-16) 0 calc(var(--space-16) + 40px);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(196,18,48,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--color-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    text-align: center;
}

.page-hero-content .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.55);
    margin-bottom: var(--space-5);
}

.page-hero-content .breadcrumb a {
    color: rgba(255,255,255,0.55);
    transition: color var(--transition-fast);
}

.page-hero-content .breadcrumb a:hover { color: var(--color-white); }
.page-hero-content .breadcrumb .sep    { color: rgba(255,255,255,0.25); }
.page-hero-content .breadcrumb .current { color: rgba(255,255,255,0.9); }

.page-hero-content h1 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--fw-black);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.page-hero-content h1 span { color: var(--color-primary); }

.page-hero-content > p {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

/* About-cta-band — shared by About and Products pages */
.about-cta-band {
    background: var(--color-primary);
    padding: var(--space-12) 0;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.cta-band-inner h2 {
    font-family: var(--font-primary);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: white;
}

.cta-band-inner p {
    font-size: var(--fs-base);
    color: rgba(255,255,255,0.8);
    margin-top: var(--space-2);
}

@media (max-width: 768px) {
    .cta-band-inner { flex-direction: column; text-align: center; }
    .page-hero { padding-bottom: calc(var(--space-12) + 40px); }
}

/* Pagination Styles */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.page-item .page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-item .page-link:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-primary);
}
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.page-item.disabled .page-link {
    color: var(--color-text-secondary);
    pointer-events: none;
    background-color: var(--color-bg-alt);
    border-color: var(--color-border);
    opacity: 0.6;
}

