/*
 * REDESIGNED PROFESSIONAL STYLING FOR "INSTY SIGNS" LANDING PAGE
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* General Setup */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fcfcfc; 
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    line-height: 1.1;
}

h1 {
    font-size: 4.2rem;
    color: #FFF;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
h2::after { 
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #007bff; /* Bright blue accent */
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
    color: #1a1a1a;
}
h4 {
    font-size: 1.7rem; 
    color: #007bff; 
    margin-bottom: 10px;
}


p {
    font-size: 1.1rem;
    color: #555;
}

.highlight {
    color: #007bff;
    font-weight: 700;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
}

/* --- Buttons --- */
.btn-primary, .btn-buy-now {
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover, .btn-buy-now:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.btn-buy-now {
    font-size: 1.5rem;
    padding: 20px 50px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-buy-now .btn-text {
    font-size: 1.5rem;
}
.btn-buy-now .btn-price-hint {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}


/* --- 1. Header (Hero Section) --- */
.hero {
    /* HERO BACKGROUND IMAGE - NOW BRIGHT */
    background: url('./images/Insty-Signs-Printing-Company-Storefront.png') center/cover no-repeat;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden; 
}

.hero > .container {
    position: relative;
    z-index: 2;
    /* Localized dark background for text readability */
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 40px 20px; 
    border-radius: 10px;
    max-width: 700px; 
    margin-left: auto;
    margin-right: auto;
}

.tagline {
    font-size: 1.8rem;
    font-weight: 600;
    color: #e0f2ff;
    margin-bottom: 40px;
}


/* --- 2. Animations (CSS part) --- */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
}
.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.3s; }
.animate-in:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-in-scroll.is-visible:nth-child(2) { transition-delay: 0.2s; }
.animate-in-scroll.is-visible:nth-child(3) { transition-delay: 0.4s; }


/* --- 3. Showcase Section (3 items - 3 column fix) --- */
.showcase {
    background-color: #f0f8ff; 
    padding: 80px 0;
}

.showcase .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; 
    text-align: center;
}

.showcase-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 30px;
    /* Maintain Flexbox 3-column for showcase items */
    flex: 0 1 calc(33.333% - 25px); 
    max-width: 350px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.showcase-item .image-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden; 
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}
.showcase-item:hover .showcase-img {
    transform: scale(1.05); 
}


/* --- 4. Domains List Package (6 items - 3/3 column fix using Grid) --- */
.domains-list-package {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}
.domains-list-package h2 {
    margin-bottom: 50px;
}

.domain-grid {
    /* *** GRID FIX IMPLEMENTATION *** */
    display: grid;
    /* Set three columns of equal, flexible width */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    margin-bottom: 40px;
    /* Use padding to keep content centered if the grid doesn't fill the full container width */
    justify-content: center; 
}
.domain-card {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px 20px;
    /* Remove all flex properties as Grid now controls layout */
    max-width: none; 
    width: auto;
    text-align: left; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.domain-card p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.package-note {
    font-style: italic;
    color: #777;
    margin-top: 20px;
    font-size: 1.1rem;
}


/* --- 5. CTA Section --- */
.cta-section {
    background: #1a1a1a; 
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    border-top: 5px solid #007bff;
}
.cta-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
}
.cta-section h2::after {
    background-color: #ffffff; 
}

.cta-subtext {
    font-size: 1.3rem;
    color: #e0f2ff;
    max-width: 800px;
    margin: 0 auto 40px;
}

.contact-prompt {
    font-size: 1rem;
    color: #e0f2ff;
}
.contact-prompt a {
    color: #00eaff; 
    font-weight: 600;
}


/* --- 6. Footer --- */
.footer {
    background-color: #222;
    color: #bbb;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}
.footer a {
    color: #007bff;
}


/* --- 7. Responsive Design --- */
@media (max-width: 900px) {
    /* Force 2-column layout for showcase */
    .showcase-item {
        flex: 0 1 calc(50% - 20px); 
        max-width: 400px;
    }
    
    /* *** GRID FIX RESPONSIVENESS *** */
    .domain-grid {
        /* Switch to 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .showcase .container, .domain-grid {
        gap: 20px;
    }
    
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .tagline { font-size: 1.5rem; }
    
    .hero > .container {
        padding: 30px 15px; 
        max-width: 90%; 
    }
}

@media (max-width: 768px) {
    .container { padding: 40px 0; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; margin-bottom: 30px; }
    .tagline { font-size: 1.3rem; }
    
    /* On smaller screens, go back to single column for all items */
    .showcase .container, .domain-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .showcase-item, .domain-card {
        max-width: 90%; 
        flex: 1 1 auto; 
    }
    /* Override grid display to flex for single-column stack on mobile */
    .domain-grid {
        display: flex;
        grid-template-columns: none;
    }
}

@media (max-width: 500px) {
    h1 { font-size: 2.2rem; }
    .tagline { font-size: 1.1rem; }
    h2 { font-size: 1.7rem; }
    .btn-buy-now { padding: 15px 30px; }
    .btn-buy-now .btn-text { font-size: 1.1rem; }
}