/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   LAYOUT & UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
}

/* ============================================
   TYPOGRAPHY & COMPONENTS
   ============================================ */
:root {
    --primary-blue: #003366;
    --primary-blue-dark: #002244;
    --primary-gold: #d4af37;
    --primary-gold-dark: #c19b2e;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --light-blue-bg: #f0f4f8;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-blue: rgba(0, 51, 102, 0.2);
}

h1, h2, h3, h4 {
    color: var(--primary-blue);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* PNG-specific optimizations */
img[src$=".png"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.btn:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-blue);
}

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

.btn-primary:hover {
    background-color: var(--primary-gold-dark);
    color: var(--primary-blue);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.brand-img {
    height: 40px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
}

.brand-text {
    display: inline-block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-list li a {
    color: var(--primary-blue);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-list li a:hover {
    color: var(--primary-gold);
}

.nav-list li a.active {
    color: var(--primary-gold);
    font-weight: 600;
}

.nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-gold);
}

.nav-list li a.cta {
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    margin-left: 10px;
}

.nav-list li a.cta:hover {
    background-color: var(--primary-gold-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   PAGE HERO SECTION
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--light-blue-bg) 0%, #e8eff5 100%);
    padding: 60px 0;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-media {
    text-align: right;
}

.hero-media img {
    max-height: 300px;
    width: auto;
    margin-left: auto;
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */
#leadForm {
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

#contactForm {
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.field {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

label.small {
    font-size: 0.9rem;
    color: var(--text-light);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.form-note {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.form-note a {
    color: var(--primary-blue);
    font-weight: 600;
}

.form-note a:hover {
    color: var(--primary-gold);
}

/* Custom styling for lead form */
#leadForm input,
#leadForm select,
#leadForm textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

#leadForm button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#leadForm button[type="submit"]:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-blue);
}

/* ============================================
   CONTACT DETAILS
   ============================================ */
.contact-details {
    margin-top: 60px;
    padding: 40px;
    background: var(--light-blue-bg);
    border-radius: 12px;
}

.contact-details h2 {
    margin-bottom: 30px;
}

.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-details strong {
    color: var(--primary-blue);
}

.contact-details a {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--primary-gold);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    margin-top: 80px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), #ffd700, var(--primary-gold));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-grid h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid a:hover {
    color: var(--primary-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

.social:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social i {
    font-size: 1.2rem;
}

.facebook:hover { background: #1877f2 !important; }
.instagram:hover { background: #e4405f !important; }
.twitter:hover { background: #1da1f2 !important; }
.youtube:hover { background: #ff0000 !important; }
.tiktok:hover { background: #000000 !important; }

.site-footer small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: block;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    font-size: 26px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus {
    outline: 3px solid var(--primary-gold);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .nav-list li a {
        text-decoration: underline;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .whatsapp-float:hover {
        transform: none;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-media {
        text-align: center;
    }
    
    .hero-media img {
        margin: 0 auto;
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 20px var(--shadow-light);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .nav-list li a.cta {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* Form adjustments */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .field {
        width: 100%;
    }
    
    #leadForm,
    #contactForm {
        padding: 20px;
        margin: 30px auto;
    }
    
    .contact-details {
        padding: 30px 20px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .header-inner {
        padding: 12px 15px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .brand-img {
        height: 35px;
    }
    
    .page-hero {
        padding: 30px 0;
    }
    
    .hero-media img {
        max-height: 200px;
    }
    
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 22px;
    }
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */
input:invalid,
select:invalid,
textarea:invalid {
    border-color: #e74c3c;
}

input:valid,
select:valid,
textarea:valid {
    border-color: #2ecc71;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input:invalid + .error-message,
select:invalid + .error-message,
textarea:invalid + .error-message {
    display: block;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero,
#leadForm,
#contactForm,
.contact-details {
    animation: fadeIn 0.6s ease-out forwards;
}

img[src$=".png"] {
    opacity: 0;
    animation: fadeIn 0.5s ease 0.2s forwards;
}
/* ============================================
   HOMEPAGE SPECIFIC
   ============================================ */
/* For features grid on homepage */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--primary-gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PRODUCTS PAGE SPECIFIC
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

/* ============================================
   SERVICES PAGE SPECIFIC
   ============================================ */
.service-section {
    margin: 60px 0;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.about-hero {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)),
                url('assets/images/about-hero.jpg') center/cover;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* ============================================
   BLOG PAGE SPECIFIC
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.blog-post {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

/* ============================================
   UTILITY CLASSES FOR ALL PAGES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.py-80 {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-blue {
    background-color: var(--light-blue-bg);
}

/* ============================================
   CARDS & CONTENT BOXES (Reusable)
   ============================================ */
.content-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    margin: 40px 0;
}

.stat-item {
    padding: 20px;
    background: var(--light-blue-bg);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: block;
}

/* ============================================
   TESTIMONIALS (Reusable)
   ============================================ */
.testimonials {
    background: var(--light-blue-bg);
    padding: 60px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-gold);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

/* ============================================
   PRICING TABLES (For Products/Services)
   ============================================ */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-gold);
    transform: scale(1.05);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}