/* ===========================
   RESPONSIVE DESIGN
   Breakpoints:
   - Large Desktop: 1200px+
   - Desktop: 992px - 1199px
   - Tablet: 768px - 991px
   - Mobile: 480px - 767px
   - Small Mobile: < 480px
   =========================== */

/* ===========================
   TABLET (768px - 991px)
   =========================== */

@media (max-width: 991px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    /* Offerings Grid */
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Formulas Grid */
    .formulas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .formula-card {
        border-top: 3px solid var(--primary-color);
    }

    /* Testimonials Grid */
    .testimonials-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Story Content */
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Header Navigation */
    nav ul {
        gap: 20px;
    }

    nav a {
        font-size: 0.95rem;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 12px 35px;
    }

    /* Cards */
    .offering-card,
    .formula-card,
    .testimonial-card {
        padding: 30px;
    }

    .offering-icon {
        font-size: 2.5rem;
    }

    /* CTA Section */
    .cta-buttons {
        gap: 15px;
    }

    .cta-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Page Header */
    .page-title {
        font-size: 2rem;
    }
}

/* ===========================
   MOBILE (480px - 767px)
   =========================== */

@media (max-width: 767px) {
    /* Base */
    html {
        font-size: 15px;
    }

    body {
        line-height: 1.5;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    /* Hero Section */
    .hero {
        height: 400px;
        padding: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-content {
        max-width: 100%;
    }

    /* Header */
    header {
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }

    .header-container {
        padding: 12px 15px;
    }

    .site-branding {
        gap: 10px;
    }

    .site-name {
        font-size: 1.2rem;
    }

    .site-logo img {
        height: 40px;
    }

    /* Navigation */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
    }

    nav li {
        border-bottom: 1px solid var(--border-color);
    }

    nav a {
        display: block;
        padding: 12px 15px;
        font-size: 1rem;
    }

    /* Dropdowns Mobile */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f9f9f9;
        margin-top: 0;
        border-radius: 0;
        min-width: 100%;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 15px 10px 30px;
        font-size: 0.9rem;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-large {
        padding: 12px 20px;
    }

    .btn-block {
        width: 100%;
    }

    /* Offerings Grid */
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offering-card {
        padding: 25px;
    }

    .offering-icon {
        font-size: 2rem;
    }

    .offering-card h3 {
        font-size: 1.2rem;
    }

    /* Formulas Grid */
    .formulas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .formula-card {
        border-top: 3px solid var(--primary-color);
    }

    .formula-header {
        padding: 20px;
    }

    .formula-price {
        font-size: 1.75rem;
    }

    .formula-features {
        padding: 15px 20px;
    }

    .formula-features li {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .formula-card .btn {
        margin: 15px 20px 20px;
    }

    .formulas-note {
        margin-top: 25px;
        padding: 15px;
        font-size: 0.9rem;
    }

    /* Testimonials Grid */
    .testimonials-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
        border-left: 3px solid var(--primary-color);
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .testimonial-name {
        font-size: 0.95rem;
    }

    /* Story Content */
    .story-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-text p {
        font-size: 1rem;
    }

    .story-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-title {
        font-size: 1.75rem;
    }

    /* Page Content */
    .page-content {
        padding: 40px 0;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-column a {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .footer-bottom {
        padding: 15px;
        font-size: 0.8rem;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        padding: 10px;
        font-size: 1rem;
        margin-bottom: 12px;
    }

    textarea {
        min-height: 100px;
    }

    /* Sticky Contact Button (Mobile Only) */
    .sticky-contact-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 50;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .sticky-contact-btn:active {
        transform: scale(0.95);
    }
}

/* ===========================
   SMALL MOBILE (< 480px)
   =========================== */

@media (max-width: 479px) {
    /* Base */
    html {
        font-size: 14px;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Sections */
    .section {
        padding: 30px 0;
    }

    /* Hero Section */
    .hero {
        height: 350px;
        padding: 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* Header */
    .header-container {
        padding: 10px 12px;
    }

    .site-name {
        font-size: 1rem;
    }

    .site-logo img {
        height: 35px;
    }

    /* Navigation */
    nav a {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .dropdown-menu a {
        padding: 8px 12px 8px 25px;
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    /* Cards */
    .offering-card,
    .formula-card,
    .testimonial-card {
        padding: 20px;
    }

    .offering-icon {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .offering-card h3 {
        font-size: 1.1rem;
    }

    .offering-card p {
        font-size: 0.9rem;
    }

    .formula-header {
        padding: 15px;
    }

    .formula-price {
        font-size: 1.5rem;
    }

    .formula-duration {
        padding: 0 15px;
        font-size: 0.85rem;
    }

    .formula-features {
        padding: 12px 15px;
    }

    .formula-features li {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .formula-card .btn {
        margin: 12px 15px 15px;
        font-size: 0.85rem;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }

    .testimonial-name {
        font-size: 0.9rem;
    }

    .testimonial-date {
        font-size: 0.8rem;
    }

    /* Story */
    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.3rem;
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .cta-buttons .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    /* Page Header */
    .page-header {
        padding: 30px 0;
    }

    .page-title {
        font-size: 1.5rem;
    }

    /* Footer */
    footer {
        padding: 30px 0 10px;
    }

    .footer-content {
        gap: 20px;
        padding: 0 12px;
    }

    .footer-column h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-column a {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 8px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding: 12px;
        font-size: 0.75rem;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        padding: 8px;
        font-size: 16px; /* Prevent zoom on iOS */
        margin-bottom: 10px;
    }

    textarea {
        min-height: 80px;
    }

    /* Sticky Contact Button */
    .sticky-contact-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* ===========================
   LANDSCAPE ORIENTATION
   =========================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }
}

/* ===========================
   TOUCH DEVICE OPTIMIZATION
   =========================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav a,
    .dropdown-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover effects on touch */
    .offering-card:hover,
    .formula-card:hover,
    .testimonial-card:hover,
    .stat-card:hover {
        transform: none;
    }

    /* Reduce animations on touch */
    * {
        animation-duration: 0.2s !important;
    }
}

/* ===========================
   HIGH DPI SCREENS
   =========================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Thinner borders for retina */
    header,
    .formula-card,
    .offering-card,
    .testimonial-card {
        border-width: 0.5px;
    }
}

/* ===========================
   DARK MODE SUPPORT (Optional)
   =========================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment if you want dark mode support */
    /*
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    header {
        background: #2a2a2a;
    }

    .offering-card,
    .formula-card,
    .testimonial-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    input,
    textarea,
    select {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    */
}

/* ===========================
   REDUCED MOTION
   =========================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   PRINT MEDIA
   =========================== */

@media print {
    header,
    footer,
    .hamburger,
    .btn,
    .cta-buttons,
    nav {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .offering-card,
    .formula-card,
    .testimonial-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}