/* ESERBOX - Premium Storage - CSS Design System */

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

:root {
    --primary: #121212;
    --secondary: #0054a6;
    /* Consistent with professional storage */
    --accent: #d4af37;
    /* Gold accent for luxury vibes */
    --light: #f9f9f9;
    --medium: #e5e5e5;
    --dark: #121212;
    --text-main: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border: #eeeeee;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 20px auto 0;
}

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

/* --- Hero & Navbar --- */

.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, #fdfdfd 0%, #f4f7f9 100%);
    position: relative;
    overflow: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 300;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary);
}

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

.btn-primary {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 4px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--secondary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-img-main {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.hero-img-main:hover {
    transform: translateY(-10px) scale(1.02);
}

.map-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn-premium {
    background: var(--primary);
    color: var(--white);
    padding: 18px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary);
    padding: 16px 40px;
    font-weight: 600;
    border-radius: 4px;
}

/* --- Steps Grid --- */

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

.step-card {
    padding: 40px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-bottom-color: var(--secondary);
}

.step-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--medium);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.step-card h3 {
    margin-bottom: 15px;
}

/* --- Sizes Grid --- */

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.size-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.size-card.premium {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.size-badge {
    font-weight: 700;
    color: var(--secondary);
    background: rgba(0, 84, 166, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.features-list {
    margin: 30px 0;
}

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

.btn-card {
    display: block;
    text-align: center;
    padding: 15px;
    border: 1px solid var(--border);
    font-weight: 600;
    border-radius: 4px;
}

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

/* --- Location & Map --- */

.location-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.contact-bullets {
    margin: 30px 0;
}

.contact-bullets li {
    margin-bottom: 15px;
}

.map-placeholder {
    width: 100%;
    height: 450px;
    background: #eee url('https://via.placeholder.com/800x450?text=Mapa+Rub%C3%AD+Sant+Cugat') center/cover;
    border-radius: 12px;
}

/* --- Contact Form --- */

.dark-footer {
    background: #111;
    color: #fff;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-vcard {
    margin-top: 40px;
}

.eser-form .form-row {
    margin-bottom: 20px;
}

.eser-form input,
.eser-form textarea {
    width: 100%;
    padding: 15px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.form-checkbox {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #ccc;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Footer --- */

.main-footer {
    padding: 60px 0;
    border-top: 1px solid #222;
    background: #111;
    color: #777;
    text-align: center;
}

.footer-logo {
    color: #fff;
    margin-bottom: 20px;
    display: block;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

@media (max-width: 968px) {

    .hero-content,
    .location-box,
    .contact-split,
    .sizes-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        padding-bottom: 50px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .size-card.premium {
        transform: scale(1);
    }

    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }
}