/* Modern Responsive CSS for Aluline Precision Engineering */

/* CSS Variables for easy theme management */
:root {
    --primary-color: #0d4a8d;
    --secondary-color: #4f6684;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --max-width: 1200px;
    --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Typography */
h1 {
    color: var(--secondary-color);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    color: var(--secondary-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.875rem;
    font-weight: 600;
}

h3 {
    color: var(--secondary-color);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h4 {
    color: var(--text-color);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 0.625rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 1.25rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo img {
    max-width: 280px;
    height: auto;
    display: block;
}

.contact-info {
    text-align: right;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Navigation */
.nav {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.nav li {
    flex: 1;
    min-width: 150px;
}

.nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-align: center;
    font-weight: 400;
    transition: background-color 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav li:last-child a {
    border-right: none;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(0,0,0,0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
}

/* Main Content Area */
.main-content {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Service Menu Boxes */
.service-box {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-menu {
    list-style: none;
}

.service-menu li {
    margin-bottom: 0.75rem;
}

.service-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--white);
    border-radius: 4px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.service-menu a:hover {
    background-color: var(--light-bg);
    padding-left: 1.25rem;
}

.service-menu a::before {
    content: "→";
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Main Text Content */
.main-text {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
}

.precision-image {
    width: 100%;
    max-width: 441px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

/* Page Content */
.page-content {
    padding: 2rem 0;
    min-height: 400px;
}

.page-header {
    background-color: var(--light-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

/* ISO Logos */
.iso-logos {
    text-align: center;
    margin: 2rem 0;
}

.iso-logos img {
    max-width: 150px;
    height: auto;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer a {
    color: var(--white);
    margin: 0 0.5rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .logo img {
        max-width: 200px;
    }

    .menu-toggle {
        display: block;
        width: 100%;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav li {
        width: 100%;
        min-width: auto;
    }

    .nav a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .main-text {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .contact-info li {
        font-size: 0.8rem;
    }

    .service-box {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
}
