/* ============================================
   San Marcos Wallpaper Installation - Stylesheet
   Design Philosophy: Light, airy, premium residential
   Colors: Warm white, beige, soft sand, muted green accents
   Typography: Elegant, clean, readable
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a48;
    background-color: #faf9f7;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-weight: 600;
    color: #3a3a38;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1rem;
    color: #5a5a58;
}

a {
    color: #8b9d6f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6b7d4f;
}

/* ============================================
   3. LAYOUT & CONTAINER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   4. HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    z-index: 2;
}

.hero-text h1 {
    color: #3a3a38;
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.tagline {
    font-size: 1.2rem;
    color: #7a7a78;
    margin-bottom: 2rem;
    font-style: italic;
    font-family: 'Georgia', serif;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.phone-display {
    background: rgba(139, 157, 111, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #8b9d6f;
}

.phone-label {
    display: block;
    font-size: 0.9rem;
    color: #7a7a78;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.phone-number {
    display: block;
    font-size: 1.8rem;
    color: #8b9d6f;
    font-weight: 700;
    font-family: 'Trebuchet MS', sans-serif;
}

.hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Trebuchet MS', sans-serif;
    text-align: center;
}

.btn-primary {
    background-color: #8b9d6f;
    color: #faf9f7;
    box-shadow: 0 4px 15px rgba(139, 157, 111, 0.2);
}

.btn-primary:hover {
    background-color: #6b7d4f;
    box-shadow: 0 6px 20px rgba(139, 157, 111, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #8b9d6f;
    border: 2px solid #8b9d6f;
}

.btn-secondary:hover {
    background-color: #8b9d6f;
    color: #faf9f7;
    transform: translateY(-2px);
}

/* ============================================
   6. SERVICES SECTION
   ============================================ */

.services {
    padding: 5rem 0;
    background-color: #fff;
    border-top: 1px solid rgba(139, 157, 111, 0.1);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-item {
    padding: 2rem;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    border-radius: 8px;
    border: 1px solid rgba(139, 157, 111, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(139, 157, 111, 0.3);
}

.service-item h3 {
    color: #3a3a38;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-item p {
    font-size: 0.95rem;
    color: #6a6a68;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 3rem 0;
    }

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

    .service-item {
        padding: 1.5rem;
    }
}

/* ============================================
   7. ABOUT SECTION
   ============================================ */

.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f3f0 0%, #faf9f7 100%);
}

.about h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5a5a58;
    margin-bottom: 1.5rem;
    text-align: justify;
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }

    .about-content p {
        font-size: 1rem;
        text-align: left;
    }
}

/* ============================================
   8. TRUST SECTION
   ============================================ */

.trust {
    padding: 5rem 0;
    background-color: #fff;
    border-top: 1px solid rgba(139, 157, 111, 0.1);
}

.trust h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.trust-content {
    max-width: 900px;
    margin: 0 auto;
}

.trust-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5a5a58;
    margin-bottom: 1.5rem;
    text-align: justify;
}

@media (max-width: 768px) {
    .trust {
        padding: 3rem 0;
    }

    .trust-content p {
        font-size: 1rem;
        text-align: left;
    }
}

/* ============================================
   9. GALLERY SECTION
   ============================================ */

.gallery {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f3f0 0%, #faf9f7 100%);
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

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

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

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 3rem 0;
    }

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

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   10. CONTACT SECTION
   ============================================ */

.contact {
    padding: 5rem 0;
    background-color: #fff;
    border-top: 1px solid rgba(139, 157, 111, 0.1);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 157, 111, 0.1);
}

.contact-info h3 {
    color: #3a3a38;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #5a5a58;
}

.contact-info strong {
    color: #3a3a38;
    font-weight: 600;
}

.contact-info a {
    color: #8b9d6f;
    font-weight: 600;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-cta .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   11. FOOTER
   ============================================ */

.footer {
    background-color: #3a3a38;
    color: #e8e8e6;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(139, 157, 111, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #8b9d6f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #d8d8d6;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #8b9d6f;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #a8ba8a;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 157, 111, 0.2);
    color: #a8a8a6;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ============================================
   12. UTILITY CLASSES
   ============================================ */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* ============================================
   13. ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   14. ACCESSIBILITY & FOCUS STATES
   ============================================ */

button:focus,
a:focus {
    outline: 2px solid #8b9d6f;
    outline-offset: 2px;
}

/* ============================================
   15. PRINT STYLES
   ============================================ */

@media print {
    .hero-cta,
    .contact-cta {
        display: none;
    }

    body {
        background-color: #fff;
    }
}
