:root {
    --primary: #1a5f7a;
    --primary-dark: #134b61;
    --secondary: #159895;
    --accent: #f0f4f8;
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --border: #e0e6ed;
    --success: #27ae60;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background-color: #0d7a73;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
}

.company-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.2s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
main {
    padding-top: var(--header-height);
}

/* Hero Section */
.hero {
    background-color: var(--off-white);
    padding: 60px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Content Section */
.content {
    padding: 80px 0;
}

.content h2 {
    text-align: center;
    margin-bottom: 48px;
}

/* Image Text Section */
.image-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.image-text-section.reverse {
    direction: rtl;
}

.image-text-section.reverse > * {
    direction: ltr;
}

.image-text-section img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.image-text-section h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.image-text-section p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background-color: var(--off-white);
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Product Grid */
.products-header {
    text-align: center;
    margin-bottom: 48px;
}

.products-header h2 {
    margin-bottom: 12px;
}

.products-header p {
    color: var(--text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.product-image {
    height: 200px;
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text);
}

.product-specs p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.product-specs strong {
    color: var(--text);
}

.view-details {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-card:hover .view-details {
    color: var(--secondary);
}

/* Product Detail */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary);
}

.product-detail-header {
    margin-bottom: 32px;
}

.product-detail-header h2 {
    text-align: left;
    margin-bottom: 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.product-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background-color: var(--off-white);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.product-images img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 4px;
}

.product-images img:first-child {
    grid-column: 1 / -1;
    height: 300px;
}

.image-note {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 8px;
}

.product-specs-detail h3 {
    margin-bottom: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.specs-table tr:nth-child(even) {
    background-color: var(--off-white);
}

.specs-table th,
.specs-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    width: 40%;
    background-color: var(--white);
    color: var(--text);
    font-weight: 600;
}

.specs-table td {
    color: var(--text-light);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--off-white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--white);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 14px 28px;
}

/* Footer */
footer {
    background-color: var(--text);
    color: var(--white);
    padding: 32px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

/* About Page Specific */
.about-hero {
    background-color: var(--off-white);
    padding: 60px 0;
}

.about-hero h1 {
    margin-bottom: 16px;
}

.about-hero p {
    max-width: 600px;
}

/* Responsive Breakpoints */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }

    .hero-inner {
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-image {
        height: 350px;
    }

    .image-text-section {
        gap: 32px;
        margin-bottom: 60px;
    }

    .image-text-section img {
        height: 300px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0 16px;
    }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    nav.active {
        max-height: 300px;
        padding: 16px 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 16px;
    }

    nav ul li a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    nav ul li a::after {
        display: none;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image {
        height: 250px;
        order: -1;
    }

    .content {
        padding: 48px 0;
    }

    .content h2 {
        margin-bottom: 32px;
    }

    .image-text-section {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .image-text-section.reverse {
        direction: ltr;
    }

    .image-text-section img {
        height: 220px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-image {
        height: 180px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-images img:first-child {
        height: 220px;
    }

    .product-images img {
        height: 140px;
    }

    .specs-table th,
    .specs-table td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .about-hero {
        padding: 40px 0;
    }

    .about-hero .hero-inner {
        gap: 24px;
    }

    .about-hero .hero-content h1 {
        font-size: 1.75rem;
    }

    .about-hero .hero-content p {
        font-size: 1rem;
    }

    .about-hero .hero-image {
        height: 250px;
        order: -1;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.35rem; }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .image-text-section img {
        height: 200px;
    }

    .product-info {
        padding: 16px;
    }

    .product-specs-detail .btn {
        width: 100%;
    }
}
