/* ===== common.css ===== */
/* Global styles for GPGW Global World Limited – premium glass & smart technology company */
/* Fixed: hero background shows full image (contain) with matching background color */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1e2b3c;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ---------- COLOR VARIABLES ---------- */
:root {
    --deep-blue: #0a2647;
    --deep-blue-light: #1a3a5f;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --glass-cyan: #a5e0e0;
    --gold: #d4af37;
    --gold-hover: #b8960f;
    --text-dark: #1e2b3c;
    --text-light: #5b6e8c;
    --border-light: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --border-radius: 1rem;
    --card-radius: 1.5rem;
    --container-padding: 2rem;
    --max-width: 1280px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--deep-blue);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--gold);
}

/* ---------- CONTAINER & LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Grid system */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }

.text-center { text-align: center; }

/* ---------- BUTTONS (Global) ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: 1.2;
}
.btn-primary {
    background-color: var(--deep-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--deep-blue-light);
    color: var(--white);
}
.btn-gold {
    background-color: var(--gold);
    color: var(--deep-blue);
    border-color: var(--gold);
}
.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--deep-blue);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--deep-blue);
    color: var(--deep-blue);
}
.btn-outline:hover {
    background-color: var(--deep-blue);
    color: var(--white);
}
.btn-wa {
    background-color: #25D366;
    color: white;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-wa:hover {
    background-color: #128C7E;
    color: white;
}
.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}
.btn-text {
    background: none;
    border: none;
    color: var(--deep-blue);
    font-weight: 600;
    padding: 0;
}
.btn-text:hover {
    color: var(--gold);
}

/* ---------- CARDS (Global) ---------- */
.card {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.card:hover img {
    transform: scale(1.05);
}
.card-content {
    padding: 1.5rem;
    flex: 1;
}
.card-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
}
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ======================== HEADER & NAVIGATION ======================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 38, 71, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 38, 71, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Header logo – original colors, fully responsive */
.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo:hover img {
    transform: scale(1.05);
}
.logo {
    display: inline-block;
    max-width: 100%;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-list a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    color: var(--white);
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--gold);
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 38, 71, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--white);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.header-social {
    display: flex;
    gap: 0.75rem;
}
.header-social svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    transition: fill 0.3s ease;
}
.header-social a:hover svg {
    fill: var(--gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--white);
    transition: color 0.3s ease;
}
.mobile-toggle:hover {
    color: var(--gold);
}

/* ======================== HERO SECTION (FIXED) ======================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* IMPORTANT: Use 'contain' to show the full image without cropping */
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    /* Fallback background color – matches the dominant colour of your hero image */
    background-color: #0a2647; /* deep blue – change if your image has different edges */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 38, 71, 0.7), rgba(26, 58, 95, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    /* Prevent text clipping */
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Optional logo inside hero – add class "hero-logo" to an img tag */
.hero-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
    /* Remove or change filter if you want original colors */
    filter: brightness(0) invert(1);
}
/* If you want the logo in its original colors (not white), remove the filter above */

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 3rem;
}

.hero .btn-primary {
    background: var(--gold);
    color: var(--deep-blue);
    border: none;
}
.hero .btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.hero .btn-gold {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.hero .btn-gold:hover {
    background: var(--gold);
    color: var(--deep-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ---------- GLOBAL ANIMATIONS ---------- */
.animate-fadeup {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
    color: #cfddee;
    font-size: 0.95rem;
}
.footer-col a:hover {
    color: var(--gold);
}
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-social svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
    transition: var(--transition);
}
.footer-social a:hover svg {
    fill: var(--gold);
}
.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #a0b8cc;
}

/* ---------- FORMS ---------- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--deep-blue);
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ---------- FLOATING WHATSAPP ---------- */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: var(--transition);
}
.float-wa:hover {
    background: #128C7E;
    transform: scale(1.1);
}
.float-wa svg {
    width: 36px;
    height: 36px;
    fill: white;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--deep-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 98;
    border: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--gold);
}

/* ---------- SKIP TO CONTENT (Accessibility) ---------- */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--deep-blue);
    padding: 8px 12px;
    text-decoration: none;
    z-index: 200;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .mobile-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 38, 71, 0.98);
        backdrop-filter: blur(12px);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .nav-list a {
        display: block;
        padding: 0.75rem 0;
        color: var(--white);
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
        backdrop-filter: none;
        border: none;
    }
    .header-social {
        margin-top: 1rem;
        justify-content: center;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 70vh;
        background-attachment: scroll !important;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-logo {
        max-width: 130px;
    }
}
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
    }
}