/* Sandico Website - Main Stylesheet */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    background-color: #F4F4F4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   COLOR VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary: #000000;
    --color-secondary: #C8ECFF; /* Light blue */
    --color-accent: #116DFF;    /* Bright blue */
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-gray-light: #F4F4F4;
    --color-gray-medium: #E1E1E1;
    --color-gray-dark: #727272;
    
    /* Text Colors */
    --color-text: #000000;
    --color-text-light: #727272;
    
    /* Background Colors */
    --color-bg: #F4F4F4;
    --color-bg-white: #FFFFFF;
    --color-bg-light-blue: #E9F2FE;
    
    /* Site Width */
    --site-width: 980px;
    --site-padding: 110px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }    /* 48px */
h2 { font-size: 2.25rem; }  /* 36px */
h3 { font-size: 1.75rem; }  /* 28px */
h4 { font-size: 1.5rem; }   /* 24px */
h5  { font-size: 1.25rem; }  /* 20px */
h6 { font-size: 1rem; }     /* 16px */

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: #689ADE;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 100%;
    padding: 0 var(--site-padding);
}

.section {
    padding: 60px 0;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    background-color: var(--color-bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 30px 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    max-height: 45px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #689ADE;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(17, 109, 255, 0.3);
}

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

.btn-secondary:hover {
    background-color: #B0D9F0;
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-bg-light-blue) 0%, var(--color-secondary) 100%);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ============================================
   CARDS / GRID
   ============================================ */
.grid {
    display: grid;
    gap: 30px;
}

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

.card {
    background-color: var(--color-bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--color-gray-medium);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --site-padding: 20px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-container {
        padding: 20px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

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

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

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

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

body.menu-open {
    overflow: hidden;
}

/* ============================================
   PRODUCT STYLES
   ============================================ */
.product-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.product-placeholder span {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 1rem;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 1rem 0;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background-color: var(--color-light);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* ============================================
   PRODUCTS PREVIEW
   ============================================ */
.products-preview {
    background-color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #333 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* ============================================
   SERVICES
   ============================================ */
.services {
    background-color: white;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--color-primary);
}

.page-hero h1 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   PRODUCT FEATURES
   ============================================ */
.product-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.product-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
}

.gallery-caption {
    padding: 1.5rem;
    background: white;
}

.gallery-caption h3 {
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
    background: var(--color-secondary);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.info-box h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box a {
    color: var(--color-accent);
    font-weight: 500;
}

.info-box a:hover {
    text-decoration: underline;
}

/* ============================================
   CATALOG CONTROLS
   ============================================ */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-light);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 2px solid var(--color-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
}

.sort-controls select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-light);
    border-radius: 6px;
    background-color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-controls select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.product-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-status.in-stock {
    background-color: #4CAF50;
    color: white;
}

.product-status.out-of-stock {
    background-color: #FF9800;
    color: white;
}

.product-sku {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0.5rem 0;
}

.loading,
.no-products,
.error {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.error {
    color: #f44336;
}

/* ====================================
   HEADER SCROLL EFFECT
   ============================================ */
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-column h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.footer-column p,
.footer-column a {
    font-size: 14px;
    color: var(--color-white);
    line-height: 1.8;
}

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

.footer-column ul {
    list-style: none;
    padding: 0;
}

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

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 6rem 2rem 2rem;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--color-light);
    }
    
    .main-nav ul li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .header-contact {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .product-placeholder {
        height: 200px;
    }
    
    .product-placeholder span {
        font-size: 1.5rem;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .sort-controls {
        justify-content: space-between;
    }
    
    .sort-controls select {
        flex: 1;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}