/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

h1 {
    font-size: var(--h1-size);
    font-weight: 700;
}

h2 {
    font-size: var(--h2-size);
    font-weight: 700;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

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

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    /* Force teal color */
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-accent {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    font-size: 1.1rem;
    font-weight: bold;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .floating-call-btn {
        display: flex;
        /* Show only on mobile */
    }
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Header Icons: Mobile Only */
/* Header Icons & Visibility */
.header-icons {
    display: none !important;
}

/* Base Mobile */
@media (max-width: 768px) {
    header .logo h2 {
        font-size: 1.5rem !important;
    }

    .header-icons {
        display: flex !important;
    }
}

/* Desktop Header Fixes (Prevent Crowding) */
@media (min-width: 769px) {
    header .container {
        gap: 2rem;
        /* Separate Logo from Nav */
    }

    nav ul {
        gap: 1.5rem !important;
        /* Adjusted Link Spacing */
    }

    /* Group Buttons Properly */
    nav ul li:last-child {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    /* Compact Buttons */
    nav .btn {
        padding: 0.4rem 1rem !important;
        /* Smaller Size */
        font-size: 0.9rem !important;
        white-space: nowrap;
    }
}

/* Button Transitions (Gemini-like smooth border) */
.btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.15);
}

/* Specific Gradient Border Effect for Outline Buttons */
.btn-secondary {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

nav ul {
    gap: 2rem;
}

nav a {
    font-weight: 500;
    color: var(--text-color);
}

nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section Placeholder */
.hero {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        /* Significantly smaller for mobile */
        line-height: 1.3;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Enhancements */
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .hidden-mobile.show {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    .hidden-desktop {
        display: inline-block !important;
        /* Show on mobile */
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .hero .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .flex.justify-between {
        flex-direction: row;
        /* Keep header flex row */
    }
}

/* Service Card Styles */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    /* Default border */
    background-color: white;
    /* Default bg */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color) !important;
    /* Force border color on hover */
    background-color: #fffaf9 !important;
    /* Subtle tint on hover */
}

/* Responsive Utilities */
.grid-2-cols {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }

    .order-1-mobile {
        order: 1;
    }

    .order-2-mobile {
        order: 2;
    }

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

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

/* Footer Overrides */
footer p,
footer li {
    color: rgba(255, 255, 255, 0.9);
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
    color: #ffd700;
    /* Ensure headers are gold */
}

footer a {
    color: white;
}

/* Mobile Bottom Action Bar */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden on desktop */
    z-index: 10000;
    border-top: 1px solid #f0f0f0;
}

.action-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-call {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-direction {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-call:active,
.btn-direction:active {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: flex;
    }

    /* Hide old floating button */
    .floating-call-btn {
        display: none !important;
    }

    /* Make footer padding larger to avoid overlap */
    footer {
        padding-bottom: 80px !important;
    }
}