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

/* CSS Variables (Design System) */
:root {
    /* Colors (HSL format) */
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --primary: 220 91% 25%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 220 91% 35%;
    --secondary: 45 93% 47%;
    --secondary-foreground: 0 0% 100%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 220 14% 96%;
    --accent-foreground: 220 91% 25%;
    --border: 214.3 31.8% 91.4%;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(220 91% 25%), hsl(220 91% 35%));
    --gradient-secondary: linear-gradient(135deg, hsl(45 93% 47%), hsl(45 93% 57%));
    --gradient-hero: linear-gradient(135deg, hsl(220 91% 25%) 0%, hsl(220 91% 35%) 50%, hsl(45 93% 47%) 100%);
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(220 91% 25% / 0.3);
    --shadow-glow: 0 0 40px hsl(220 91% 35% / 0.4);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Radius */
    --radius: 0.5rem;
}

/* Base Typography and Layout */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    scroll-behavior: smooth;
}

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

.icon {
    width: 1rem;
    height: 1rem;
}

/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

/* Header Styles */
.header {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-elegant);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
}

.header-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
}

.header-title p {
    color: hsl(var(--primary-foreground) / 0.9);
    font-size: 0.875rem;
    text-align: center;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item .icon {
    width: 1rem;
    height: 1rem;
}

.info-item span {
    color: hsl(var(--primary-foreground) / 0.9);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('src/assets/cartorio-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, hsl(var(--primary) / 0.9), hsl(var(--primary) / 0.6));
}

.hero-content {
    position: relative;
    padding: 5rem 0;
}

.hero-text {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    display: block;
    color: hsl(var(--secondary));
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--secondary));
}

.feature-item span {
    font-size: 1.125rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
}

.btn-hero {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-contact {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-contact:hover {
    background: hsl(var(--secondary) / 0.9);
}

.btn-whatsapp {
    background: hsl(var(--secondary));
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: hsl(var(--secondary) / 0.9);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
    transform: translateX(0.25rem);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: hsl(var(--accent));
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    border: 1px solid hsl(var(--border) / 0.5);
    transition: var(--transition-smooth);
}

.service-card:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.service-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
}

.service-icon {
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: hsl(var(--primary-foreground));
    width: fit-content;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
}

.service-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.service-header p {
    color: hsl(var(--muted-foreground));
}

.service-content {
    padding: 0 1.5rem 1.5rem;
}

.service-list {
    list-style: none;
    space-y: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.service-list li::before {
    content: '';
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='hsl(220 91% 25%)' stroke-width='2'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.tradition-section {
    background: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    padding: 2rem;
}

.tradition-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.tradition-text h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.tradition-text p {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.tradition-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tradition-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tradition-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
}

.tradition-feature span {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.tradition-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    width: 100%;
    height: auto;
}

/* Location Section */
.location {
    padding: 5rem 0;
    background-color: hsl(var(--background));
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-cards-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    border: 1px solid hsl(var(--border) / 0.5);
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--foreground));
    font-size: 1.125rem;
    font-weight: 600;
}

.card-header .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--primary));
}

.card-content {
    padding: 0 1.5rem 1.5rem;
}

.address-main {
    color: hsl(var(--foreground));
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.address-details {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition-smooth);
}

.maps-link:hover {
    color: hsl(var(--primary-glow));
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours-day {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.hours-time {
    color: hsl(var(--muted-foreground));
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item .icon {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--primary));
}

.contact-item span {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.access-info {
    background: hsl(var(--accent));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.access-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.access-info p {
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--gradient-hero);
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: white;
}

.contact-card-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
}

.contact-icon {
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background: hsl(var(--secondary));
    border-radius: 50%;
    width: fit-content;
}

.contact-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.contact-card-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-card-content {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
}

.contact-card-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.contact-link {
    color: hsl(var(--secondary));
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    word-break: break-all;
}

.contact-link:hover {
    color: hsl(var(--secondary) / 0.8);
}

.contact-info-section {
    max-width: 64rem;
    margin: 0 auto;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-info-card h3 {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.contact-info-item {
    color: white;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-header svg {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--secondary));
}

.info-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

.info-content {
    color: rgba(255, 255, 255, 0.9);
}

.info-content p {
    margin-bottom: 0.5rem;
}

.tips-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tips-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.tips-section ul {
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
}

.tips-section li {
    margin-bottom: 0.5rem;
}

.whatsapp-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section p {
    color: hsl(var(--primary-foreground) / 0.9);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: hsl(var(--primary-foreground) / 0.9);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: hsl(var(--secondary));
}

.footer-section ul {
    list-style: none;
    color: hsl(var(--primary-foreground) / 0.9);
}

.footer-section li {
    margin-bottom: 0.25rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-item .icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-contact-item div p {
    margin-bottom: 0.125rem;
}

.footer-contact-item span {
    color: hsl(var(--primary-foreground) / 0.9);
}

.footer-bottom {
    border-top: 1px solid hsl(var(--primary-foreground) / 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-bottom-content p {
    color: hsl(var(--primary-foreground) / 0.8);
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-features,
    .hero-buttons {
        flex-direction: row;
    }
    
    .header-info {
        flex-direction: row;
    }
    
    .footer-links {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: row;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .header-content {
        flex-direction: row;
    }
    
    .header-title {
        text-align: left;
    }
    
    .header-title h1 {
        font-size: 1.875rem;
    }
    
    .header-title p {
        font-size: 1rem;
        text-align: left;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tradition-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}