/* 
 * Il Di Giorgi Point - New Landing Page Design
 * Inspired by modern hardware store layouts with brand identity
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --color-brand-red: #B91C1C;
    --color-brand-red-dark: #991B1B;
    --color-brand-red-light: #EF4444;

    --color-charcoal: #1F2937;
    --color-charcoal-light: #374151;
    --color-charcoal-lighter: #6B7280;

    --color-white: #FFFFFF;
    --color-light-grey: #F9FAFB;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-brand-red) 0%, var(--color-brand-red-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 50%, #F0F9FF 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-charcoal);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-charcoal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-brand-red);
    border: 2px solid var(--color-brand-red);
}

.btn-secondary:hover {
    background-color: var(--color-brand-red);
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #128C7E;
}

/* Special Announcement */
.special-announcement {
    background-color: var(--color-brand-red);
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    animation: flash-bg 2s infinite alternate;
}

@keyframes flash-bg {
    0% {
        background-color: var(--color-brand-red);
    }

    100% {
        background-color: var(--color-brand-red-dark);
    }
}

/* Top Banner */
.top-banner {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .top-banner .container {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Header */
.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-brand-red);
}

.logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-charcoal-light);
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-brand-red);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.125rem;
    transition: var(--transition-base);
}

.search-btn:hover {
    filter: brightness(1.1);
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav-categories {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-item:hover {
    background-color: var(--color-light-grey);
    color: var(--color-brand-red);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    /* Space for fixed header */
    padding-bottom: 4rem;
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 100%);
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
    line-height: 1.1;
}

.brand-highlight {
    color: var(--color-brand-red);
    display: block;
    font-weight: 800;
    font-size: 3rem;
}

.owner-name {
    color: var(--color-charcoal-light);
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.tagline {
    color: var(--color-brand-red);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .brand-highlight {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 2rem;
    }
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--color-charcoal-light);
    margin-bottom: 2rem;
    max-width: 50ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.quick-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-item a {
    color: var(--color-brand-red);
    font-weight: 600;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-height: 500px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* Hero Banner (simplified version) */
.hero-banner {
    background: var(--gradient-hero);
    padding: 2rem 0;
    overflow: hidden;
}

.hero-banner .hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-charcoal);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--color-charcoal-light);
    margin-bottom: 2rem;
    max-width: 50ch;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-brand-red);
    font-family: 'Montserrat', sans-serif;
}

.stat span {
    font-size: 0.875rem;
    color: var(--color-charcoal-light);
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-height: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* Category Showcase */
.category-showcase {
    padding: 5rem 0;
    background-color: var(--color-light-grey);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-charcoal);
}

.category-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .category-card.featured {
        grid-row: 1 / 3;
    }
}

.category-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-brand-red);
}

.category-card.featured {
    background: linear-gradient(135deg, var(--color-brand-red) 0%, var(--color-brand-red-dark) 100%);
    color: var(--color-white);
}

.category-card.featured .category-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card.featured h3 {
    color: var(--color-white);
}

.category-card p {
    color: var(--color-charcoal-light);
    margin-bottom: 1.5rem;
}

.category-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.category-features {
    list-style: none;
    margin-bottom: 2rem;
}

.category-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.category-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.category-btn {
    color: var(--color-brand-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.category-card.featured .category-btn {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

.service-card p {
    color: var(--color-charcoal-light);
}

/* Footer */
.footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    background: var(--gradient-primary);
}

.footer-logo .logo-main {
    color: var(--color-white);
}

.footer-logo .logo-sub {
    color: var(--color-charcoal-lighter);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.business-name {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.owner-info {
    color: var(--color-brand-red-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.business-info {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.business-info p {
    margin: 0.25rem 0;
    color: var(--color-charcoal-lighter);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-row .contact-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-row a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
}

.contact-row a:hover {
    text-decoration: underline;
}

.whatsapp-link {
    color: #25D366 !important;
    font-weight: 600;
}

.whatsapp-link:hover {
    color: #128C7E !important;
}

.hours-note {
    color: #6B7280;
    font-size: 0.8rem;
    margin-top: 1rem;
    font-style: italic;
}

.section-subtitle {
    text-align: center;
    color: var(--color-charcoal-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    margin-top: -1rem;
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: var(--color-charcoal-lighter);
    margin-bottom: 1rem;
}

.opening-hours div,
.contact-info div {
    padding: 0.25rem 0;
    color: var(--color-charcoal-lighter);
}

.contact-info a {
    color: var(--color-white);
    font-weight: 600;
}

.location-link {
    color: var(--color-brand-red-light) !important;
    text-decoration: underline;
    transition: var(--transition-base);
}

.location-link:hover {
    color: var(--color-white) !important;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: var(--color-charcoal-lighter);
    font-size: 0.875rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        order: 3;
        max-width: none;
    }

    .nav-categories {
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-item {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }
}