/* ===== RESPONSIVE STYLES - CarePaw Inspired ===== */

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero h1 {
    font-size: 4.5rem;
  }
}

/* ===== DESKTOP (1200px - 1399px) ===== */
@media (max-width: 1399px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  
  .hero h1 {
    font-size: 3.25rem;
  }
}

/* ===== LAPTOP (992px - 1199px) ===== */
@media (max-width: 1199px) {
  :root {
    --font-size-h1: 2.75rem;
    --font-size-h2: 2rem;
  }
  
  .hero .container {
    gap: var(--space-2xl);
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero-image-float.top-left {
    width: 120px;
    left: -20px;
  }
  
  .hero-image-float.bottom-right {
    width: 140px;
    right: -20px;
  }
  
  .services-grid {
    gap: var(--space-lg);
  }
  
  .pricing-grid {
    gap: var(--space-lg);
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .about-grid,
  .why-grid,
  .appointment-grid {
    gap: var(--space-2xl);
  }
  
  .testimonial-slide {
    gap: var(--space-2xl);
  }
  
  .testimonial-avatar {
    width: 220px;
    height: 220px;
  }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991px) {
  :root {
    --font-size-h1: 2.25rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.25rem;
    --space-4xl: 4rem;
  }
  
  .section {
    padding: var(--space-3xl) var(--space-md);
  }
  
  /* Top Bar */
  .top-bar {
    display: none;
  }
  
  /* Navigation */
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: var(--space-3xl) var(--space-xl);
    box-shadow: var(--shadow-xl);
    transition: right 0.4s ease;
    z-index: 1001;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu a {
    padding: var(--space-md) 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav .btn {
    display: none;
  }
  
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .nav-overlay.active {
    display: block;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-images {
    order: 2;
    margin-top: var(--space-xl);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-main {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-image-float {
    display: none;
  }
  
  .hero-label {
    justify-content: center;
  }
  
  /* Features Bar */
  .features-bar .container {
    flex-direction: column;
    text-align: center;
  }
  
  .features-bar-left {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  /* About Section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .about-image {
    order: 1;
  }
  
  .about-content {
    order: 2;
  }
  
  /* Services */
  .services-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Why Section */
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .why-image {
    order: 1;
  }
  
  .why-content {
    order: 2;
  }
  
  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid .pricing-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Testimonials */
  .testimonial-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .testimonial-avatar {
    width: 200px;
    height: 200px;
  }
  
  .testimonial-nav {
    justify-content: center;
  }
  
  /* Appointment */
  .appointment-grid {
    grid-template-columns: 1fr;
  }
  
  .appointment-image {
    display: none;
  }
  
  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Team */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Service Detail */
  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .service-detail:nth-child(even) {
    direction: ltr;
  }
  
  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* ===== MOBILE LANDSCAPE (576px - 767px) ===== */
@media (max-width: 767px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.125rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  /* Header */
  .header {
    padding: var(--space-sm) 0;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .logo-icon {
    width: 38px;
    height: 38px;
  }
  
  .logo-icon svg {
    width: 22px;
    height: 22px;
  }
  
  /* Hero */
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-image-main {
    max-width: 320px;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card-image {
    height: 180px;
  }
  
  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid .pricing-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }
  
  /* Team */
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-avatar {
    width: 120px;
    height: 120px;
  }
  
  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .value-card {
    padding: var(--space-md);
  }
  
  .value-icon {
    width: 50px;
    height: 50px;
  }
  
  .value-icon svg {
    width: 24px;
    height: 24px;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  /* Testimonials */
  .testimonial-avatar {
    width: 150px;
    height: 150px;
    border-width: 5px;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  .testimonial-quote {
    font-size: 2rem;
  }
  
  /* Appointment Form */
  .appointment-form {
    grid-template-columns: 1fr;
  }
  
  .appointment-form .btn {
    width: 100%;
  }
  
  /* Blog */
  .blog-page-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card-small {
    flex-direction: column;
    text-align: center;
  }
  
  .blog-card-small-image {
    width: 100%;
    height: 150px;
  }
  
  .blog-card-meta {
    justify-content: center;
  }
  
  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .btn {
    width: 100%;
  }
  
  /* Contact */
  .contact-form-wrapper {
    padding: var(--space-lg);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-contact-item {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== MOBILE PORTRAIT (max-width: 575px) ===== */
@media (max-width: 575px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.375rem;
    --font-size-h3: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 1.75rem;
    --space-3xl: 2rem;
    --space-4xl: 2.5rem;
  }
  
  body {
    font-size: 0.9375rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  /* Header */
  .header .container {
    padding: 0 var(--space-sm);
  }
  
  .logo {
    font-size: 1.125rem;
  }
  
  .logo-icon {
    width: 34px;
    height: 34px;
  }
  
  .logo-icon svg {
    width: 20px;
    height: 20px;
  }
  
  /* Hero */
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 0.9375rem;
  }
  
  .hero-image-main {
    max-width: 280px;
  }
  
  /* Section Label */
  .section-label {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
  }
  
  /* Buttons */
  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9375rem;
  }
  
  .btn-lg {
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
  }
  
  /* Section */
  .section {
    padding: var(--space-2xl) var(--space-sm);
  }
  
  .section-heading {
    margin-bottom: var(--space-xl);
  }
  
  /* Cards */
  .card {
    padding: var(--space-md);
  }
  
  /* Feature cards */
  .feature-card {
    padding: var(--space-md);
  }
  
  .feature-icon {
    width: 56px;
    height: 56px;
  }
  
  .feature-icon svg {
    width: 28px;
    height: 28px;
  }
  
  /* Service cards */
  .service-card-content {
    padding: var(--space-md);
  }
  
  .service-card-image {
    height: 160px;
  }
  
  /* Pricing cards */
  .pricing-card-header {
    padding: var(--space-md);
  }
  
  .pricing-card-features {
    padding: var(--space-md);
  }
  
  .pricing-card-price .amount {
    font-size: 2rem;
  }
  
  .pricing-card-image {
    height: 140px;
  }
  
  /* Values */
  .values-grid {
    gap: var(--space-sm);
  }
  
  .value-card {
    padding: var(--space-sm);
  }
  
  .value-card h4 {
    font-size: 0.875rem;
  }
  
  .value-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-sm);
  }
  
  .value-icon svg {
    width: 20px;
    height: 20px;
  }
  
  /* Testimonials */
  .testimonial-avatar {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }
  
  .testimonial-content {
    padding: var(--space-md);
  }
  
  .testimonial-text {
    font-size: 0.9375rem;
  }
  
  .testimonial-quote {
    font-size: 1.5rem;
  }
  
  .testimonial-nav button {
    width: 40px;
    height: 40px;
  }
  
  /* CTA Section */
  .cta-section {
    padding: var(--space-2xl) var(--space-sm);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Forms */
  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
  }
  
  .contact-form-wrapper {
    padding: var(--space-md);
  }
  
  /* Pricing Table */
  .pricing-table {
    display: block;
    overflow-x: auto;
  }
  
  .pricing-table th,
  .pricing-table td {
    padding: var(--space-sm);
    font-size: var(--font-size-small);
  }
  
  /* FAQ */
  .faq-question {
    padding: var(--space-md);
    font-size: 0.9375rem;
  }
  
  .faq-answer-content {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.9375rem;
  }
  
  /* Page Header */
  .page-header {
    padding: var(--space-2xl) var(--space-sm);
  }
  
  .breadcrumb {
    font-size: 0.75rem;
  }
  
  /* Footer */
  .footer {
    padding: var(--space-2xl) var(--space-sm) var(--space-md);
  }
  
  .footer-grid {
    gap: var(--space-lg);
  }
  
  .footer-column h4 {
    margin-bottom: var(--space-md);
  }
  
  .footer-social a {
    width: 36px;
    height: 36px;
  }
  
  .footer-bottom {
    padding-top: var(--space-md);
    gap: var(--space-sm);
  }
  
  .footer-bottom p,
  .footer-bottom-links a {
    font-size: 0.75rem;
  }
  
  .footer-bottom-links {
    gap: var(--space-md);
  }
  
  /* About Features */
  .about-features {
    grid-template-columns: 1fr;
  }
  
  /* Why Features */
  .why-features {
    grid-template-columns: 1fr;
  }
}

/* ===== EXTRA SMALL DEVICES (max-width: 375px) ===== */
@media (max-width: 375px) {
  :root {
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.25rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-nav {
    gap: var(--space-sm);
  }
  
  .hero-image-main {
    max-width: 240px;
  }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
  }
  
  .nav-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .faq-question {
    min-height: 56px;
  }
  
  .testimonial-nav button {
    min-width: 48px;
    min-height: 48px;
  }
  
  .card:hover,
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover,
  .pricing-card:hover,
  .value-card:hover,
  .feature-card:hover {
    transform: none;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card,
  .btn,
  .form-input,
  .form-textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .top-bar,
  .testimonial-nav,
  .btn,
  .nav-menu,
  .hero-images,
  .features-bar,
  .appointment-section,
  .newsletter-section {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }
  
  .hero {
    min-height: auto;
    padding: 20pt;
  }
  
  .section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
}
