/* ==================================
   ETHER Advanced Materials
   Main Stylesheet
================================== */

:root {
    --primary: #1d4e89;
    --secondary: #6ec1d4;
    --dark: #222;
    --light: #f5f7fa;
    --white: #ffffff;
    --gray: #777;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.8;
    font-size: 20px;
}

.container {
    width: 92%;
    max-width: 1400;
    margin: auto;
}

/* Header */

header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

p {
    font-size: 22px;
    line-height: 1.8;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */

.hero {
    background: linear-gradient(
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.5)
    ),
    url('../images/hero.jpg');

    background-size: cover;
    background-position: center;

    color: white;
    text-align: center;
    padding: 140px 20px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: auto;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: #1d4e89;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #143b69;
    transform: translateY(-2px);
}

/* Sections */

section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    color: var(--primary);
}

.section-title p {
    color: var(--gray);
    font-size: 22px;
    line-height: 1.8;
    max-width: 1000px;
    margin: auto;
}
/* Grid */

.grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 30px;
}

/* Cards */

.card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.card p {
    color: var(--gray);
}

/* Factory Section */

.factory {
    background: var(--light);
}

.factory-gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.factory-gallery img {
    width: 100%;
    border-radius: 10px;
}

/* Product Tables */

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.product-table th {
    background: var(--primary);
    color: white;
}

/* Contact */

.contact-box {
    background: var(--light);
    padding: 40px;
    border-radius: 10px;
}

.contact-box p {
    margin-bottom: 12px;
    font-size: 18px;
}

/* Footer */

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin: 8px 0;
}

/* Mobile */

@media(max-width:768px){

    .navbar{
        flex-direction:column;
    }

    .nav-links{
        margin-top:15px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:36px;
    }

    .hero p{
        font-size:18px;
    }

    .factory-gallery{
        grid-template-columns:1fr;
    }
}