/* ===========================
   Reset and Base Styles
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* ===========================
   Container and Layout
   =========================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(37, 99, 235, 0.6) 100%);
    z-index: 1;
}

/* lighter overlay for product slider */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Slider Controls */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-button:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 24px;
}

.slider-next {
    right: 24px;
}

@media (max-width: 768px) {
    .slider-button {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }
}

/* Product gallery adjustments */
.product-gallery {
    padding: 48px 0;
    background-color: #f9fafb;
}

.product-gallery .section-title {
    text-align: center;
    margin-bottom: 24px;
}

.product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-slider .slider-container {
    height: 400px;
}

.slide-description {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1rem;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.slider-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-indicator.active {
    background-color: white;
    transform: scale(1.3);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    color: white;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ensure content doesn't jump when navbar becomes fixed */
body {
    padding-top: 0; /* still allow content under navbar */
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }
}

.navbar-brand {
    font-size: 24px;
    color: black;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.navbar-menu {
    display: flex;
    gap: 32px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 16px 0;
    }
    .navbar-menu.show {
        display: flex;
    }
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 21;
    }
    .hamburger {
        width: 100%;
        height: 3px;
        background-color: black;
        border-radius: 2px;
    }
}

.nav-link {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #93c5fd;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(32px, 8vw, 86px);
    font-weight: bold;
    color: white;
    margin-bottom: 24px;
    max-width: 56rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(20px, 4vw, 32px);
    color: #dbeafe;
    margin-bottom: 48px;
    max-width: 36rem;
}

.hero-button {
    background-color: white;
    color: #1e3a8a;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #f0f9ff;
}

/* ===========================
   About Section
   =========================== */

.about {
    padding: 80px 24px;
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    .about {
        padding: 60px 24px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.about-content {
    max-width: 600px;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
    }
}

.about-text {
    font-size: 18px;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
}

.about-image {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   Products Section
   =========================== */

.products {
    padding: 80px 24px;
    background-color: white;
}

@media (max-width: 768px) {
    .products {
        padding: 60px 24px;
    }
}

.products-header {
    text-align: center;
    margin-bottom: 64px;
}

.shop-button {
    display: inline-block;
    margin-top: 16px;
    background-color: #2563eb;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.shop-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.shop-button:active {
    transform: translateY(0);
}
.section-subtitle {
    font-size: 18px;
    color: #4b5563;
    max-width: 560px;
    margin: 16px auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.product-card {
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-card.adult-products {
    background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 100%);
}

.product-card.baby-products {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.product-image {
    width: 100%;
    height: 320px; /* increased from 256px for better image fitting */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

/* ensure images always cover the box */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 16px;
}

.product-description {
    font-size: 16px;
    color: #374151;
    margin-bottom: 24px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.adult-products .product-dot {
    background-color: #2563eb;
}

.baby-products .product-dot {
    background-color: #ec4899;
}

/* Brands Section */
.brands-section {
    background-color: #f9fafb;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.brands-title {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 24px;
}

.brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.brand-badge {
    background-color: white;
    color: #374151;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 18px;
}

/* ===========================
   Contact Section
   =========================== */

.contact {
    padding: 80px 24px;
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 24px;
    }
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 64px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.info-text {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Form */

.contact-form {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #111827;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-button {
    background-color: #2563eb;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.form-button:active {
    transform: translateY(0);
}

.form-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    font-weight: 500;
}

.form-status.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ===========================
   Footer Section
   =========================== */

.footer {
    background-color: #111827;
    color: white;
    padding: 64px 24px;
}

@media (max-width: 768px) {
    .footer {
        padding: 48px 24px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.footer-text {
    color: #9ca3af;
    line-height: 1.8;
    font-size: 14px;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links,
.footer-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-info {
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 640px) {
    .navbar-brand {
        font-size: 18px;
    }

    .hero-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }

    .brands-list {
        flex-direction: column;
        gap: 16px;
    }

    .brand-badge {
        width: 100%;
    }
}
