/* ============================================
   PAPER TAILOR SAN ANTONIO - STYLESHEET
   Design: Premium, Modern, Service-Oriented
   Color Palette: Gold (#D4AF37), Navy (#1a2f4a), Cream (#f5f1ed)
   Typography: Playfair Display (headings), Lato (body)
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f1ed;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.8rem;
    color: #1a2f4a;
}

h3 {
    font-size: 1.5rem;
    color: #1a2f4a;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

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

a:hover {
    color: #1a2f4a;
}

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

.container-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header/Navigation */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    z-index: 100;
}

.header.sticky-header {
    position: sticky;
    top: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2f4a;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a2f4a;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    color: #1a2f4a;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #D4AF37;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #D4AF37;
    color: #1a2f4a;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.phone-link:hover {
    background-color: #1a2f4a;
    color: #D4AF37;
    transform: translateY(-2px);
}

.phone-icon {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 47, 74, 0.7) 0%, rgba(212, 175, 55, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #f5f1ed;
    font-weight: 300;
    animation: fadeIn 1.2s ease-out;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1.4s ease-out;
}

.hero-phone {
    font-size: 1.1rem;
    animation: fadeIn 1.6s ease-out;
}

.hero-phone a {
    color: #D4AF37;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #D4AF37;
    color: #1a2f4a;
    border-color: #D4AF37;
}

.btn-primary:hover {
    background-color: #1a2f4a;
    color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #1a2f4a;
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    background-color: #fff;
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f5f1ed;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    font-size: 1.5rem;
    color: #D4AF37;
    font-weight: 700;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f5f1ed 0%, #fff 100%);
}

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

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border-top-color: #D4AF37;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-title {
    margin-bottom: 1rem;
    color: #1a2f4a;
}

.service-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    background-color: #fff;
}

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

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

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 47, 74, 0.8) 0%, rgba(212, 175, 55, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Why Us Section */
.why-us {
    background-color: #1a2f4a;
    color: #fff;
}

.why-us .section-title {
    color: #fff;
}

.why-us .section-title::after {
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

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

.why-us-item {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #D4AF37;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.why-us-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.why-us-item h3 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.why-us-item p {
    color: #ddd;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background-color: #fff;
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background-color: #f5f1ed;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a2f4a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

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

.error-message {
    color: #ff6b6b;
    margin-top: 5px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f5f1ed;
    border-radius: 8px;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #D4AF37;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.form-success h3 {
    color: #1a2f4a;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #666;
}

/* Map Section */
.map-section {
    background-color: #f5f1ed;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.map-container iframe {
    display: block;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: #1a2f4a;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #D4AF37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.8;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animation */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .container-header {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        order: 3;
    }

    .phone-link {
        order: 2;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

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

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

    h2 {
        font-size: 1.5rem;
    }

    .phone-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

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

    .gallery-caption {
        font-size: 1rem;
    }
}
