/* Responsive Design */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .placeholder-image {
        padding: 2rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .sitemap-category ul {
        columns: 1;
    }

    .business-profile {
        padding: 0 1rem;
    }

    .business-profile h2 {
        font-size: 2rem;
    }

    .business-profile iframe {
        height: 300px;
    }
}

/* Mobile Large (480px and below) */
@media (max-width: 480px) {
    header nav {
        padding: 1rem;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .placeholder-image {
        padding: 1.5rem;
    }

    .placeholder-image span {
        font-size: 1.2rem;
    }

    .seo-content {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .content-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .content-section p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .whatsapp-cta {
        margin: 2rem 0;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .sitemap {
        padding: 2rem 1rem;
    }

    .sitemap h1 {
        font-size: 2.2rem;
    }

    .sitemap > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .sitemap-section h2 {
        font-size: 1.6rem;
    }

    .business-profile {
        margin: 2rem auto;
    }

    .business-profile h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .business-profile iframe {
        height: 250px;
    }
}

/* Hero Card Responsive */
@media (max-width: 768px) {
    .hero-emoji {
        font-size: 3rem;
    }

    .hero-card-title {
        font-size: 1.3rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .feature-item {
        padding: 0.6rem;
    }

    .feature-emoji {
        font-size: 1.5rem;
    }

    .feature-text {
        font-size: 0.8rem;
    }

    .hero-card-decoration {
        bottom: 0.5rem;
    }

    .decoration-line {
        width: 40px;
        height: 1.5px;
    }

    .decoration-circle {
        width: 6px;
        height: 6px;
    }
}

/* Location Section Responsive */
@media (max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-text h2 {
        font-size: 2rem;
    }

    .location-text > p {
        font-size: 1rem;
    }

    .location-item {
        padding: 1.2rem;
    }

    .location-icon {
        font-size: 1.8rem;
    }

    .location-map iframe {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-emoji {
        font-size: 2.5rem;
    }

    .hero-card-content {
        padding: 1.5rem 1rem;
    }

    .hero-card-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .feature-item {
        padding: 0.5rem;
        flex-direction: row;
        text-align: left;
    }

    .feature-emoji {
        font-size: 1.3rem;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }

    .feature-text {
        font-size: 0.75rem;
        text-align: left;
    }

    .location-section {
        padding: 2rem 1rem;
    }

    .location-text h2 {
        font-size: 1.8rem;
    }

    .location-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .location-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .location-map iframe {
        height: 250px;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .content-section {
        padding: 1.2rem 0.8rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .whatsapp-float a {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .sitemap h1 {
        font-size: 1.8rem;
    }

    .business-profile iframe {
        height: 200px;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1201px) {
    .hero {
        padding: 6rem 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .content-section {
        padding: 4rem;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }

    .business-profile iframe {
        height: 500px;
    }
}

/* Medium Desktop (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .hero {
        padding: 5rem 2rem;
        grid-template-columns: 1.8fr 1fr;
    }

    .business-profile iframe {
        height: 450px;
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .whatsapp-cta {
        display: none !important;
    }

    .cta-button {
        display: none !important;
    }

    .business-profile iframe {
        display: none;
    }

    .business-profile {
        border: 1px solid #ccc;
        padding: 1rem;
        background: #f9f9f9;
    }

    .business-profile::after {
        content: "Link do Google Business Profile: https://www.google.com.br/search?sca_esv=a828f4b37f770271&sxsrf=AE3TifODmCbDKmHDVafIEUy0Adzw46K_Ow:1762875495743&kgmid=/g/1ptwbrngb&q=Bem+Me+Care+Residencial+S%C3%AAnior+%7C+Casa+de+Repouso+Mooca&shndl=30&shem=lcuae,uaasie,shrtn&source=sh/x/loc/uni/m1/1&kgs=089e85aa4feb34e7&utm_source=lcuae,uaasie,shrtn,sh/x/loc/uni/m1/1";
        display: block;
        margin-top: 1rem;
        font-style: italic;
        color: #666;
    }

    body {
        background: white !important;
    }

    .content-section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }

    .content-section {
        background: #fff;
        border: 2px solid #000;
    }

    .cta-button,
    .whatsapp-float a {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .whatsapp-float a {
        animation: none;
    }
}

/* Dark Mode Support (if user prefers) */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
    }

    .content-section {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }

    .business-profile h2,
    .content-section h2,
    .sitemap h1 {
        color: #e0e0e0;
    }

    .footer-section a {
        color: #4da6d9;
    }

    .sitemap-category a {
        color: #e0e0e0;
    }

    .sitemap-category a:hover {
        color: #4da6d9;
    }
}

/* Landscape orientation for small screens */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    footer {
        padding: 1rem 0;
    }
}
