/* Cousins Paint & Property Service - CSS
 * Color Scheme - Earth Tones:
 * - Deep Forest Green: #2D5016 (primary)
 * - Warm Terracotta: #C17F59 (accent)
 * - Warm off-white: #F5F2EE (background)
 * - White: #FFFFFF
 * - Dark text: #333333
 */

:root {
    --color-primary: #2D5016;
    --color-primary-light: #3D6B1E;
    --color-primary-dark: #1E3810;
    --color-accent: #C17F59;
    --color-accent-dark: #A66B47;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-text: #333333;
    --color-text-light: #6d6d6d;
    --color-bg-light: #F5F2EE;

    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --footer-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 127, 89, 0.4);
}

.btn-submit {
    background-color: var(--color-accent);
    color: var(--color-white);
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: var(--color-accent-dark);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.header-phone:hover {
    color: var(--color-accent);
}

.phone-icon {
    width: 20px;
    height: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.contact-btn {
    padding: 12px 24px;
    font-size: 13px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(rgba(45, 80, 22, 0.85), rgba(45, 80, 22, 0.9)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero-content {
    color: var(--color-white);
    max-width: 800px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 300;
    opacity: 0.95;
}

.hero-subtagline {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-hero {
    padding: 18px 40px;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(193, 127, 89, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(193, 127, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(193, 127, 89, 0);
    }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.section-title-light {
    color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--color-text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.services-section .section-title {
    color: var(--color-white);
}

.services-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-white);
}

.service-name {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Service Area Section */
.service-area-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.service-area-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.service-area-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 15px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-area-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-area-item .area-icon {
    width: 28px;
    height: 28px;
    fill: var(--color-accent);
}

.service-area-item span {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 0.9rem;
    text-align: center;
}

.service-area-note {
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
    font-size: 1rem;
}

.state-divider {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
    border-top: 2px solid var(--color-accent);
    margin-top: 10px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item div {
    display: flex;
    flex-direction: column;
}

.contact-info-item strong {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 3px;
}

.contact-info-item a {
    color: var(--color-text);
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--color-primary);
}

.contact-form-wrapper {
    background-color: var(--color-primary);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(45, 80, 22, 0.3);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Success */
.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.success-message {
    color: var(--color-white);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--color-white);
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.success-submessage {
    margin-top: 15px;
    font-size: 1rem !important;
    opacity: 0.8 !important;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 30px 0;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-location {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    opacity: 0.6;
    font-size: 0.85rem;
}

.footer-copyright a {
    color: var(--color-accent);
    transition: opacity 0.3s ease;
}

.footer-copyright a:hover {
    opacity: 0.8;
}

/* Form Errors */
.form-errors {
    grid-column: span 2;
    margin-bottom: 10px;
    padding: 12px 16px;
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 6px;
}

.form-errors .error {
    color: #ff6b6b;
    margin: 0;
    font-size: 14px;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc3545;
}

.field-error {
    display: block;
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 4px;
}

/* Floating Call Button (Mobile) */
.floating-call-btn {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(193, 127, 89, 0.5);
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    animation: float-pulse 2s ease-in-out infinite;
}

.floating-call-btn:hover {
    background-color: var(--color-accent-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(193, 127, 89, 0.6);
}

.floating-call-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes float-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(193, 127, 89, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(193, 127, 89, 0.7);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-area-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .floating-call-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .header-right {
        gap: 15px;
    }

    .header-phone span {
        display: none;
    }

    .contact-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-area-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-header {
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .form-errors {
        grid-column: span 1;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.75rem;
    }

    .social-icons {
        display: none;
    }

    .hero-section {
        padding: 100px 15px 60px;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-subtagline {
        font-size: 0.95rem;
    }

    .btn-hero {
        padding: 14px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-section,
    .service-area-section,
    .gallery-section,
    .contact-section {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-item {
        flex-direction: row;
        text-align: left;
        padding: 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-area-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-area-item {
        padding: 20px 12px;
    }

    .service-area-item .area-icon {
        width: 24px;
        height: 24px;
    }

    .service-area-item span {
        font-size: 0.8rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 13px;
    }
}
