/* Main Stylesheet - StrongManGuide */
/* Color Scheme: #3F51B5 (Indigo), Grays, White */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

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

html, body {
    font-family: 'Merriweather', serif;
    background-color: #ffffff;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: #3F51B5;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3F51B5;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: #3F51B5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #303596;
    text-decoration: underline;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: 40px;
}

.logo a {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3F51B5;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #2c2c2c;
    font-weight: 500;
}

nav a:hover {
    color: #3F51B5;
}

/* Body padding for fixed header */
body {
    padding-top: 80px;
}

/* Container */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Main Layout */
main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background-color: #f5f7fa;
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #3F51B5;
}

.hero-content {
    max-width: 1120px;
    margin: 0 auto;
}

.hero h1 {
    color: #3F51B5;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
}

.disclaimer-box {
    background-color: #f0f2f7;
    border-left: 4px solid #3F51B5;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: #444;
    border-radius: 6px;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border-color: #3F51B5;
}

.card h3 {
    color: #3F51B5;
    margin-top: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.15);
}

.product-image {
    width: 100%;
    height: 240px;
    background-color: #f5f7fa;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-family: 'Roboto', sans-serif;
    color: #3F51B5;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.product-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* Section */
section {
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Image Integration */
.image-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 45%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.image-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 45%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.image-left img,
.image-right img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Blocks */
.content-block {
    margin-bottom: 2.5rem;
    clear: both;
}

.content-block::after {
    content: "";
    display: table;
    clear: both;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #f5f7fa;
}

th {
    background-color: #3F51B5;
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background-color: #f0f2f7;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: #3F51B5;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #303596;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #f5f7fa;
    border-top: 1px solid #e0e0e0;
    padding: 3rem 1.5rem 1rem;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #666;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #3F51B5;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #666;
}

.footer-section a:hover {
    color: #3F51B5;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
    text-align: center;
    color: #888;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 200px;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-accept {
    background-color: #3F51B5;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.cookie-accept:hover {
    background-color: #303596;
}

/* Form */
form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #3F51B5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

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

.form-submit {
    background-color: #3F51B5;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-submit:hover {
    background-color: #303596;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    body {
        padding-top: 120px;
    }

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

    .image-left,
    .image-right {
        float: none;
        max-width: 100%;
        margin: 1rem 0;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .container,
    .hero,
    footer {
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5rem;
    }
}
