/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 100px;
    /* Offset for sticky header */
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #c56a00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary:hover {
    background-color: #002244;
}

/* Header Styles */
#main-header {
    background: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.main-nav {
    padding: 16px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.95)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: left;
    /* Reset from center */
}

/* Left Column: Image */
.hero-image-wrapper {
    flex: 0 0 350px;
    /* Fixed width for image container */
    position: relative;
}

.hero-profile-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Right Column: Content */
.hero-text-wrapper {
    flex: 1;
}

.hero-text-wrapper h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-text-wrapper p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.description-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border-left: 4px solid var(--color-accent);
}

/* Search Box Adjustment */
.search-box-wrapper {
    background: white;
    padding: 8px;
    border-radius: var(--radius-md);
    display: flex;
    max-width: 100%;
    /* Take full width of parent */
    box-shadow: var(--shadow-lg);
    margin: 0;
    /* Reset margin */
}

/* Trust Badges Adjustment */
.trust-badges {
    display: flex;
    justify-content: flex-start;
    /* Align left */
    gap: 40px;
    margin-top: 30px;
}

.badge-item {
    align-items: flex-start;
    /* Align internal items left */
    flex-direction: row;
    /* Horizontal badges */
}

.badge-icon {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-wrapper {
        flex: 0 0 auto;
        width: 250px;
        margin-bottom: 20px;
    }

    .trust-badges {
        justify-content: center;
    }

    .search-box-wrapper {
        margin: 0 auto;
    }
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    outline: none;
    border-radius: var(--radius-sm);
}

.search-btn {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #c56a00;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    font-size: 2rem;
    color: var(--color-accent);
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Services Section */
.services-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-title h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}