/* Modern CSS for Palomo + Palomo */

/* CSS Custom Properties */
:root {
    --primary-color: #DC2527;
    --primary-dark: #B91C1E;
    --secondary-color: #2C3E50;
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-light: #8A8A8A;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--primary-dark);
    outline: 2px solid transparent;
}

/* Buttons */
.hero-cta {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.hero-cta:hover, .hero-cta:focus {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Top Bar */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-message img {
    width: 20px;
    height: 20px;
}

.social-links a {
    color: white;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Header */
.header {
    background: var(--background-white);
    padding: 20px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img {
    max-width: 145px;
    height: auto;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-link {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.contact-hours, .contact-label {
    font-size: 14px;
    color: var(--text-light);
}

.contact-label {
    text-transform: uppercase;
    font-weight: 500;
}

.contact-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-accent {
    color: var(--primary-color);
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.hero-nav-btn.active,
.hero-nav-btn:hover {
    background: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 18px;
    line-height: 1.7;
}

/* Services Section */
.services {
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.service-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.team-member {
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.member-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--background-light);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: var(--transition);
    background: var(--background-light);
}

.team-member:hover .member-image img {
    transform: scale(1.02);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-name {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.member-email {
    color: var(--primary-color);
    font-size: 14px;
}

/* Founder Section */
.founder {
    background: var(--background-light);
}

.founder-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.founder-years {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 2rem;
}

.founder-biography p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.founder-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.founder-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    object-fit: contain;
}

/* Testimonials Section */
.testimonials {
    background: var(--background-white);
}

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

.testimonial-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.testimonial-author h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 16px;
}

.testimonial-author span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

/* Stats Section */
.stats {
    background: var(--primary-color);
    color: white;
}

.stats .section-header h2 {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Practice Areas Section */
.practice-areas {
    background: var(--background-light);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.practice-item {
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--primary-color);
    transition: var(--transition);
}

.practice-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.practice-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 18px;
}

.practice-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Gallery Section */
.gallery {
    padding: 40px 0;
    position: relative;
    background: var(--background-light);
}

.gallery-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-slide.active {
    opacity: 1;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 0;
}

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

.footer-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-quote {
    font-style: italic;
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.footer-social a {
    color: white;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-title {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Image optimization for better display */
.member-image img,
.founder-image img,
.hero-image,
.gallery-slide img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Better aspect ratios for different screen sizes */
@media (max-width: 1024px) {
    .member-image {
        height: 280px;
    }
    
    .founder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .founder-image {
        order: -1;
        max-width: 300px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-divider {
        display: none;
    }
    
    .hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        height: 250px;
    }
    
    .founder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .founder-image {
        order: -1;
        max-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .member-info {
        padding: 1.5rem 1rem;
    }
    
    .founder-biography p {
        text-align: left;
    }
    
    .member-image {
        height: 220px;
    }
    
    .team-grid {
        gap: 1rem;
    }
    
    .founder-image {
        max-width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .hero-nav,
    .footer-social {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    .hero-slide {
        position: static;
        opacity: 1;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}