/* =========================================
   3. LAYOUT & GRID
   ========================================= */

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

/* Flexbox Utils */
.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

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

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

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Grid Utils */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-cols-2 {
    grid-template-columns: 1fr;
    /* Mobile default */
}

.grid-cols-3 {
    grid-template-columns: 1fr;
    /* Mobile default */
}

/* Section Spacing */
section {
    padding: var(--spacing-3xl) 0;
}

/* Header Layout */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

/* Top Bar Layout */
.top-bar {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: var(--spacing-sm) 0;
    font-size: var(--text-sm);
}

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


/* Dropdown Menu */
.main-nav li {
    position: relative;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 100;
}

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

.main-nav .dropdown-menu li {
    margin: 0;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: var(--color-text-body);
}

.main-nav .dropdown-menu a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-accent);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    background-color: var(--color-bg-dark);
    padding: var(--spacing-3xl) 0;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    /* For pseudo elements if needed */
}

/* Hero Subtitle */
.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
}

.hero-title {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-desc {
    color: #cccccc;
    /* Light grey text */
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image-container {
    position: relative;
}

.hero-image-container img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

.hero-badge-float {
    position: absolute;
    bottom: 40px;
    left: -30px;
    z-index: 10;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    background-color: var(--color-bg-white);
    padding: var(--spacing-3xl) 0;
}

.about-image-container {
    position: relative;
}

.about-image-container img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.about-experience-badge {
    position: absolute;
    top: 40px;
    right: -20px;
    padding: 30px;
    text-align: center;
    background: var(--color-bg-white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-sm);
}

.about-subtitle {
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--weight-bold);
    display: block;
}

.about-features-grid {
    margin-top: var(--spacing-lg);
}

.about-feature-title {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: var(--weight-bold);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
    background-color: var(--color-bg-light);
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--weight-bold);
}

.service-header-desc {
    max-width: 400px;
    font-size: 0.9rem;
}

/* Utilities */
.mt-xl {
    margin-top: var(--spacing-xl);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 4rem 0;
    text-align: center;
}

/* --- Footer micro-polish (no redesign) --- */
.site-footer ul,
.site-footer ol {
    padding-left: 0;
    margin-left: 0;
}

.site-footer .flex.gap-md {
    margin-left: 12px;
}

.site-footer ul[style*="line-height: 1.8"] li,
.site-footer li[style*="display: flex"] {
    margin-bottom: 18px;
}

.site-footer ul[style*="line-height: 1.8"] li:last-child,
.site-footer li[style*="display: flex"]:last-child {
    margin-bottom: 0;
}

.site-footer .footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.site-footer .footer-contact li:last-child {
    margin-bottom: 0;
}

.site-footer .footer-contact i {
    width: 18px;
    margin-top: 4px;
    flex: 0 0 18px;
    line-height: 1;
}

.site-footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover {
    color: var(--color-primary);
    opacity: 1;
    text-decoration: underline;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}