/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #2852A7;
    --secondary-blue: #2852A7;
    --accent-yellow: #FFBF51;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --text-gray: #666;
    --white: #ffffff;
    --border-gray: #e0e0e0;
    --shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    width: 90rem;
	 max-width: 90%;
    margin: 0 auto;
    /* padding: 0 1.25rem; */
}

/* Header Styles */
.header {
    background: var(--white);
    /* box-shadow: var(--shadow); */
    /* position: sticky; */
    /* top: 0; */
    /* z-index: 1000; */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9375rem 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 2.5rem;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.875rem;
}

.nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background: url('intro.webp') no-repeat right bottom;
    background-size: cover;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
	 border-radius: 1.25rem;
	 min-height: 60vh;
	 @media screen and (max-width: 48rem) {
		min-height: 40vh;
		background-position: center bottom;
	 }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.75rem;
    align-items: center;
    max-width: 37.5rem;
}

.hero-text {
    /* background: rgba(255, 255, 255, 0.9); */
    padding: 2.5rem;
    position: relative;
    z-index: 3;
    /* border-radius: 1.25rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1); */
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.8);
}

.rating {
    margin-bottom: 1.875rem;
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.stars span:first-child {
    color: #0ba343;
    font-size: 1.125rem;
    font-weight: bold;
    letter-spacing: 0.125rem;
}

.rating-text {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.cta-button {
    display: inline-flex;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    /* box-shadow: var(--shadow); */
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    cursor: pointer;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.cta-button:hover {
    background: #FFBF51;
    transform: translateY(-0.125rem);
}

.cta-subtitle {
    margin-top: 0;
    font-size: 0.9375rem;
    color: var(--text-gray);
}

/* Paint Roller Animation - Hidden since using background image */
.hero-image {
    display: none;
}

/* Features Section */
.features {
    padding: 1.875rem 0 1.875rem 0;
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.875rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2.5rem 1.875rem;
    border-radius: 1.25rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.feature-card h4 {
    color: var(--dark-gray);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.9375rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* About and Quote Section */
.about-quote {
    padding: 3rem 0;
    /* background: var(--light-gray); */
	 
}

.about-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
}

.about-section h2 {
    color: var(--primary-blue);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.875rem;
}

.about-section p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.paint-types {
    margin-top: 2.5rem;
}

.paint-types h3 {
    color: var(--dark-gray);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.paint-type {
    margin-bottom: 1.5625rem;
}

.paint-type h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

.paint-type ul {
    list-style: none;
    padding-left: 0;
}

.paint-type li {
    color: var(--text-gray);
    margin-bottom: 0.3125rem;
    position: relative;
    padding-left: 1.25rem;
}

.paint-type li:before {
    content: "•";
    color: var(--accent-yellow);
    position: absolute;
    left: 0;
}

.mobile-about-cta {
    display: none;
    margin-top: 2rem;
    text-align: center;
}

/* Quote Form */
.quote-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 1.25rem;
    /* box-shadow: var(--shadow); */
    height: fit-content;
}

.quote-card h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 0.125rem solid var(--border-gray);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group input::placeholder {
    color: var(--text-gray);
    opacity: 1;
}

/* Flatpickr date picker styling */
.flatpickr-calendar {
    font-family: 'Quicksand', sans-serif !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15) !important;
}

.date-description {
	line-height: 1.2;
	margin-top: 0.2rem;
	color: #656565;
}

.flatpickr-day.selected {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.flatpickr-day:hover {
    background: var(--accent-yellow) !important;
    color: var(--dark-gray) !important;
}

.flatpickr-day.disabled {
    color: #d1d5db !important;
    cursor: not-allowed !important;
}

.flatpickr-months .flatpickr-month {
    background: var(--primary-blue) !important;
    color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--primary-blue) !important;
}

.quote-divider {
    margin: 1.875rem 0;
    padding: 0.75rem 0;
    border-top: 0.0625rem solid var(--border-gray);
}

.quote-divider h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.quote-divider p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.submit-button {
	font-family: 'Quicksand', sans-serif;

    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 0.9375rem 2.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.25rem;
}

.submit-button:hover {
    background: #FFBF51;
    transform: translateY(-0.125rem);
}

.form-note {
    color: var(--text-gray);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.9375rem;
}

.terms {
    color: var(--text-gray);
    font-size: 0.6875rem;
    line-height: 1.4;
    margin-top: 1.25rem;
    padding-top: 0.9375rem;
    border-top: 0.0625rem solid var(--border-gray);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.875rem 0;
    text-align: center;
	 border-radius: 1.25rem 1.25rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.footer-logo-svg {
    height: 1.875rem;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 48rem) {
    .container {
        padding: 0 0.9375rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .nav ul {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 3.75rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-text {
        padding: 1.875rem 1.25rem;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .stars {
        justify-content: center;
    }
    
    .features {
        padding: 3.75rem 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.875rem 1.25rem;
    }
    
    .about-quote {
        padding: 3.75rem 0;
		@media screen and (max-width: 48rem) {
			padding: 1rem 0;
		}
    }
    
    .about-quote-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        display: flex;
        flex-direction: column;
    }
    
    .quote-section {
        order: 1;
    }
    
    .about-section {
        order: 2;
    }
    
    .mobile-about-cta {
        display: block;
    }
    
    .about-section h2 {
        font-size: 1.75rem;
    }
    
    .quote-card {
        padding: 1.875rem 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.9375rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.9375rem;
    }
    
    .logo-svg {
        height: 2.1875rem;
    }
    
    .footer-logo-svg {
        height: 1.5625rem;
    }
}

@media (max-width: 30rem) {
    .hero-text {
        padding: 1.5625rem 0.9375rem;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .cta-button {
        padding: 1.25rem 1.5625rem;
        font-size: 1.3rem;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .quote-card h2 {
        font-size: 1.25rem;
    }
    
    .logo-svg {
        height: 3rem;
		  margin-top: 0.5rem;
    }
    
    .footer-logo-svg {
        height: 2rem;
		  margin-top: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --text-gray: #000000;
        --border-gray: #000000;
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero,
    .features,
    .about-quote {
        page-break-inside: avoid;
    }
    
    .cta-button {
        display: none;
    }
} 