/* ============================================
   SANDWICH PANEL DEALER - MAIN STYLESHEET
   Color Theme: #CBBD93, #B29D5F, #9E894C, #83723F
   ============================================ */

:root {
    --primary: #CBBD93;
    --secondary: #B29D5F;
    --tertiary: #9E894C;
    --dark: #83723F;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --light-bg: #f9f7f4;
    --white: #ffffff;
    --border: #e5e0d8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo a {
    display: block;
    line-height: 0;
}

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

nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.3rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, rgba(203, 189, 147, 0.95) 0%, rgba(178, 157, 95, 0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="rgba(203,189,147,0.95)"/><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background-color: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--dark);
    border-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   CONTAINERS & SECTIONS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 2rem;
}

section.light-bg {
    background-color: var(--light-bg);
}

section.highlight-bg {
    background: linear-gradient(135deg, rgba(203, 189, 147, 0.1) 0%, rgba(178, 157, 95, 0.05) 100%);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--white);
    border-radius: 0.8rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--dark);
}

/* Product Cards */

.product-card {
    background-color: var(--white);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card > div:first-child {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.product-content h3 {
    margin-bottom: 0.8rem;
}

.product-specs {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-specs li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Product Preview Cards (Homepage) */

.product-preview-card {
    background-color: var(--white);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-preview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-preview-img {
    width: 100%;
    height: 220px;
    background-color: #f0ebe4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-preview-card:hover .product-preview-img img {
    transform: scale(1.05);
}

.product-preview-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-preview-body h4 {
    color: var(--dark);
    margin-bottom: 0;
}

.product-preview-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 0;
}

.product-preview-body .btn {
    align-self: flex-start;
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
}

/* ============================================
   FORMS
   ============================================ */

form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

input,
textarea,
select {
    padding: 0.9rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(203, 189, 147, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-submit {
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    padding: 1rem 2rem;
}

.form-submit:hover {
    background-color: var(--dark);
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #c3e6cb;
    margin-bottom: 1rem;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #f5c6cb;
    margin-bottom: 1rem;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.intro-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.intro-text h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.features-list {
    background-color: var(--light-bg);
    border-radius: 0.8rem;
    padding: 2rem;
    margin-top: 2rem;
}

.features-list h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    display: flex;
    gap: 0.8rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '→';
    color: var(--secondary);
    font-weight: bold;
    min-width: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem 2rem;
}

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

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.highlight-text {
    color: var(--secondary);
    font-weight: 600;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        display: none;
        box-shadow: var(--shadow);
    }

    nav.active {
        display: flex;
    }

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .intro-section {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 3rem 1.5rem;
    }

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

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    nav {
        top: 60px;
        padding: 1.5rem;
    }

    nav ul {
        gap: 0.8rem;
    }

    .header-container {
        padding: 0.8rem 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .product-image {
        height: 180px;
    }

    .product-preview-img {
        height: 180px;
    }
}
