/* ------------------------------
   GLOBAL RESET & BASE STYLES
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #ECECEC;
    color: #222;
    line-height: 1.6;
    padding-top: 88px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ------------------------------
   COLOR PALETTE
--------------------------------*/
:root {
    --orange: #F57C00;
    --orange-dark: #D56900;
    --blue: #0288D1;
    --blue-dark: #015b85;
    --light: #ECECEC;
    --white: #FFF;
}

/* ------------------------------
   HEADER / NAVBAR
--------------------------------*/
nav {
    background: var(--orange-dark);
    padding: 14px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

nav .logo-container img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

nav .logo-container span {
    font-size: 1.5rem;
    font-weight: bold;
}

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

nav ul li a.btn-stud {
    /* Brick button styles are inherited from .btn-stud */
}

nav ul li a.btn-stud:hover {
    background: var(--blue);
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1000;
    padding: 5px;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* ------------------------------
   HERO SECTION
--------------------------------*/
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 8%;
    background: white;
    flex-wrap: wrap;
    min-height: calc(100vh - 88px - 80px);
}

.hero img {
    width: 45%;
    border-radius: 14px;
    object-fit: cover;
    margin-top: 20px;
}

.hero-text {
    max-width: 550px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--orange);
}

.hero-text p {
    margin-top: 12px;
    font-size: 1.1rem;
}

.hero-buttons {
    margin-top: 25px;
}

/* ------------------------------
   BUTTONS
--------------------------------*/
/* LEGO brick-style buttons */
nav ul li a.btn-stud,
.btn-stud {
    display: inline-block !important;
    background: var(--blue) !important;
    color: white !important;
    padding: 14px 22px !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    box-shadow: 0 5px 0 var(--blue-dark) !important;
    transition: all 0.2s !important;
    margin-right: 12px;
    position: relative;
    width: 260px;
    text-align: center;
}

nav ul li a.btn-stud:hover,
.btn-stud:hover {
    transform: translateY(-6px) !important;
    background: var(--blue-dark) !important;
    box-shadow: 0 8px 0 #004D75 !important;
}

/* Rectangular brick-style buttons (for nav / secondary) */
.btn-brick {
    display: inline-block;
    background: var(--orange);
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 0 var(--orange-dark);
    transition: 0.2s;
}

.btn-brick:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--orange-dark);
}

.btn.small {
    padding: 8px 14px;
}

/* ------------------------------
   SECTIONS
--------------------------------*/
section {
    padding: 30px 8%;
}

.section-title {
    margin-bottom: 20px;
    font-size: 1.9rem;
    color: var(--blue-dark);
}

/* TABS */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    background: white;
    color: var(--blue-dark);
    border: 2px solid var(--blue);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--blue);
    color: white;
}

.tab-btn.active {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 0 var(--blue-dark);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* OFFER LIST */
.offer ul {
    list-style: none;
}

.offer li {
    padding: 10px 0;
    font-size: 1.1rem;
}

/* ------------------------------
   CATEGORY / CARDS
--------------------------------*/
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-bottom: 6px solid var(--orange);
    transition: 0.2s;
}

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

/* ------------------------------
   GALLERY
--------------------------------*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 100%;
    gap: 25px;
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* ------------------------------
   CONTACT BOX
--------------------------------*/
.contact-box {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 8px solid var(--orange);
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
    background: #2C2C2C;
    color: #e6e4e4;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

body {
    padding-bottom: 80px; /* Space for fixed footer */
}

/* ------------------------------
   MOBILE
--------------------------------*/
@media(max-width: 830px) {
    body {
        padding-top: 70px;
        padding-bottom: 100px;
    }
    
    nav {
        padding: 10px 5%;
        position: relative;
    }
    
    nav .logo-container img {
        width: 40px;
        height: 40px;
    }
    
    nav .logo-container span {
        font-size: 1.1rem;
    }
    
    /* Hide menu by default on mobile */
    nav > ul {
        display: none !important;
        flex-direction: column;
        gap: 12px;
        background: var(--orange);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 998;
    }
    
    /* Show hamburger on mobile */
    .hamburger {
        display: flex !important;
    }
    
    /* Show menu when nav is active */
    nav.active > ul {
        display: flex !important;
    }
    
    nav ul li a.btn-stud,
    .btn-stud {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 1rem !important;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: calc(100vh - 70px - 100px);
        padding: 30px 5%;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero img {
        width: 100%;
        margin-top: 20px;
    }
    
    section {
        padding: 20px 5%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    footer {
        font-size: 0.85rem;
        padding: 15px 5%;
    }
    
    footer p {
        margin: 5px 0;
    }
}
/* ------------------------------
   SECTION FADE-IN ANIMATION
--------------------------------*/
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.section-visible {
    opacity: 1;
    transform: translateY(0);
}
