/* =============================================
   VESTADZ - Responsive Stylesheet
   Breakpoints:
   - Desktop: ≥ 1280px
   - Tablet: 768px – 1279px
   - Mobile: ≤ 767px
   ============================================= */

/* =============================================
   LARGE DESKTOP (1440px+)
   ============================================= */
@media (min-width: 1440px) {
    :root {
        --container-padding: 4rem;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* =============================================
   DESKTOP (1280px - 1439px)
   ============================================= */
@media (min-width: 1280px) and (max-width: 1439px) {
    :root {
        --container-padding: 3rem;
    }
}

/* =============================================
   TABLET LANDSCAPE (1024px - 1279px)
   ============================================= */
@media (max-width: 1279px) {
    :root {
        --container-padding: 2rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: clamp(2rem, 6vw, 4rem);
    }
    
    h2 {
        font-size: clamp(1.75rem, 4vw, 3rem);
    }
    
    /* Navigation */
    .nav__list {
        gap: var(--space-6);
    }
    
    /* Hero */
    .hero__title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
    
    /* Work Grid */
    .work-grid {
        gap: var(--space-6);
    }
    
    .work-grid__item--large {
        grid-column: span 2;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: var(--space-8);
    }
    
    /* Stats */
    .stat-card__number {
        font-size: var(--text-5xl);
    }
}

/* =============================================
   TABLET PORTRAIT (768px - 1023px)
   ============================================= */
@media (max-width: 1023px) {
    :root {
        --container-padding: 1.5rem;
        --space-section: var(--space-16);
    }
    
    /* Section spacing */
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-lg {
        padding: var(--space-20) 0;
    }
    
    .section-xl {
        padding: var(--space-24) 0;
    }
    
    /* Navigation - Show mobile menu */
    .nav {
        display: none;
    }
    
    .header__cta .btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding: var(--space-24) 0 var(--space-16);
    }
    
    .hero__title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .hero__subtitle {
        font-size: var(--text-lg);
    }
    
    .hero__cta {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .hero__cta .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero__scroll {
        display: none;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: var(--space-12);
    }
    
    /* Work Grid */
    .work-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .work-grid__item--large {
        grid-column: span 1;
    }
    
    /* Services Grid */
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team Grid */
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-10);
    }
    
    .footer__brand {
        grid-column: span 2;
        max-width: 100%;
        margin-bottom: var(--space-4);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    /* Process */
    .process__item {
        gap: var(--space-6);
    }
    
    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Forms */
    .form__row {
        grid-template-columns: 1fr;
    }
    
    /* Page Header */
    .page-header {
        padding: var(--space-32) 0 var(--space-16);
    }
    
    .page-header__title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--space-20) 0;
    }
    
    .cta-section__title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    /* Features */
    .features {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Clients */
    .clients__grid {
        gap: var(--space-8);
    }
    
    .clients__logo {
        height: 24px;
    }
    
    /* Testimonials */
    .testimonials-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-card {
        scroll-snap-align: center;
        min-width: 300px;
    }
}

/* =============================================
   MOBILE (≤ 767px)
   ============================================= */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
    }
    
    /* Base typography */
    html {
        font-size: 15px;
    }
    
    /* Section spacing */
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-lg {
        padding: var(--space-16) 0;
    }
    
    .section-xl {
        padding: var(--space-20) 0;
    }
    
    /* Header */
    .header {
        padding: var(--space-3) 0;
    }
    
    .header__inner {
        padding: 0 var(--space-4);
    }
    
    .logo {
        font-size: var(--text-lg);
    }
    
    .logo__icon {
        width: 28px;
        height: 28px;
        font-size: var(--text-xs);
    }
    
    /* Mobile Navigation */
    .mobile-nav__link {
        font-size: var(--text-2xl);
    }
    
    /* Hero */
    .hero {
        min-height: 85vh;
        padding: var(--space-20) 0 var(--space-12);
    }
    
    .hero__badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
        margin-bottom: var(--space-6);
    }
    
    .hero__title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: var(--space-4);
    }
    
    .hero__subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }
    
    .hero__gradient {
        width: 400px;
        height: 400px;
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }
    
    .btn--lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-sm);
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .section-label {
        font-size: var(--text-xs);
        margin-bottom: var(--space-3);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--space-3);
    }
    
    .section-description {
        font-size: var(--text-base);
    }
    
    /* Grids - Single Column */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Work Cards */
    .work-card__content {
        padding: var(--space-4);
    }
    
    .work-card__title {
        font-size: var(--text-lg);
    }
    
    .work-card__image {
        aspect-ratio: 16/9;
    }
    
    /* Service Cards */
    .service-card {
        padding: var(--space-6);
    }
    
    .service-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--space-4);
        font-size: var(--text-xl);
    }
    
    .service-card__title {
        font-size: var(--text-lg);
    }
    
    /* Blog Cards */
    .blog-card__content {
        padding: var(--space-4);
    }
    
    .blog-card__title {
        font-size: var(--text-base);
    }
    
    /* Team Cards */
    .team-card__image {
        width: 150px;
        height: 150px;
        margin-bottom: var(--space-4);
    }
    
    .team-card__name {
        font-size: var(--text-lg);
    }
    
    /* Stat Cards */
    .stat-card {
        padding: var(--space-6);
    }
    
    .stat-card__number {
        font-size: var(--text-4xl);
    }
    
    .stat-card__label {
        font-size: var(--text-xs);
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: var(--space-6);
    }
    
    .testimonial-card__quote {
        font-size: var(--text-base);
    }
    
    .testimonial-card__quote::before {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-2);
    }
    
    /* Process */
    .process__line {
        left: 16px;
    }
    
    .process__number {
        width: 36px;
        height: 36px;
        font-size: var(--text-sm);
    }
    
    .process__item {
        gap: var(--space-4);
        padding-bottom: var(--space-8);
    }
    
    .process__title {
        font-size: var(--text-lg);
    }
    
    /* Pricing Cards */
    .pricing-card {
        padding: var(--space-6);
    }
    
    .pricing-card__amount {
        font-size: var(--text-3xl);
    }
    
    /* FAQ */
    .faq__question {
        font-size: var(--text-base);
        padding: var(--space-4) 0;
    }
    
    .faq__answer-inner {
        font-size: var(--text-sm);
        padding-bottom: var(--space-4);
    }
    
    /* Features */
    .feature {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .feature__icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
    
    .feature__title {
        font-size: var(--text-base);
    }
    
    /* Clients */
    .clients {
        padding: var(--space-10) 0;
    }
    
    .clients__grid {
        gap: var(--space-6);
    }
    
    .clients__logo {
        height: 20px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--space-16) 0;
    }
    
    .cta-section__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--space-4);
    }
    
    .cta-section__description {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }
    
    .cta-section__buttons {
        flex-direction: column;
    }
    
    .cta-section__buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer__brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer__logo {
        justify-content: center;
    }
    
    .footer__description {
        margin: 0 auto var(--space-4);
    }
    
    .footer__socials {
        justify-content: center;
    }
    
    .footer__column {
        text-align: center;
    }
    
    .footer__column-title {
        margin-bottom: var(--space-4);
    }
    
    .footer__links {
        align-items: center;
    }
    
    .footer__bottom {
        padding-top: var(--space-6);
    }
    
    .footer__bottom-links {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    /* Forms */
    .form {
        width: 100%;
    }
    
    .form__group {
        margin-bottom: var(--space-4);
    }
    
    .form__input,
    .form__textarea {
        padding: var(--space-3);
    }
    
    /* Contact Info */
    .contact-info__item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    /* Newsletter */
    .newsletter {
        padding: var(--space-8);
    }
    
    .newsletter__title {
        font-size: var(--text-xl);
    }
    
    .newsletter__form {
        flex-direction: column;
    }
    
    /* Page Header */
    .page-header {
        padding: var(--space-24) 0 var(--space-12);
    }
    
    .page-header__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: var(--space-4);
    }
    
    .page-header__description {
        font-size: var(--text-base);
    }
    
    .page-header__gradient {
        width: 300px;
        height: 300px;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        font-size: var(--text-xs);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Scroll Top */
    .scroll-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 40px;
        height: 40px;
    }
    
    /* Divider */
    .divider {
        margin: var(--space-10) 0;
    }
    
    /* Animations - reduce for mobile */
    .fade-up,
    .fade-down,
    .fade-left,
    .fade-right {
        transform: translateY(20px);
    }
    
    .stagger-children > * {
        transform: translateY(20px);
    }
    
    .stagger-grid > * {
        transform: translateY(20px) scale(0.98);
    }
}

/* =============================================
   SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Hero */
    .hero__title {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }
    
    /* Stats Grid - 2x2 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .stat-card {
        padding: var(--space-4);
    }
    
    .stat-card__number {
        font-size: var(--text-3xl);
    }
    
    /* Team - 2 column */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-card__image {
        width: 100px;
        height: 100px;
    }
    
    .team-card__name {
        font-size: var(--text-base);
    }
    
    .team-card__role {
        font-size: var(--text-xs);
    }
    
    /* Cards */
    .work-card__content,
    .blog-card__content {
        padding: var(--space-3);
    }
    
    .service-card {
        padding: var(--space-4);
    }
    
    /* Footer - hide some columns */
    .footer__column:nth-child(4) {
        display: none;
    }
}

/* =============================================
   LANDSCAPE PHONE
   ============================================= */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-16) 0 var(--space-10);
    }
    
    .page-header {
        padding: var(--space-20) 0 var(--space-10);
    }
}

/* =============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders */
    .btn,
    .form__input,
    .form__textarea,
    .card {
        border-width: 0.5px;
    }
}

/* =============================================
   HOVER CAPABLE DEVICES
   ============================================= */
@media (hover: hover) and (pointer: fine) {
    /* Enable hover effects only for devices that support hover */
    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .work-card:hover {
        transform: translateY(-8px);
    }
    
    .work-card:hover .work-card__image img {
        transform: scale(1.05);
    }
    
    .service-card:hover {
        transform: translateY(-4px);
    }
    
    .blog-card:hover {
        transform: translateY(-4px);
    }
    
    .team-card:hover .team-card__image img {
        transform: scale(1.1);
    }
}

/* Touch devices - disable hover transforms */
@media (hover: none) {
    .card-hover:hover,
    .work-card:hover,
    .service-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .work-card:hover .work-card__image img,
    .team-card:hover .team-card__image img {
        transform: none;
    }
    
    /* Increase tap targets */
    .nav__link,
    .footer__link,
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .header,
    .footer,
    .mobile-nav,
    .scroll-top,
    .hero__scroll,
    .btn,
    .cta-section {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 80%;
    }
}

/* =============================================
   DARK MODE SUPPORT (if system prefers dark)
   Already dark by default, but here for reference
   ============================================= */
@media (prefers-color-scheme: dark) {
    /* Site is already dark themed */
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@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;
    }
    
    .hero__badge,
    .hero__title,
    .hero__subtitle,
    .hero__cta,
    .hero__scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .fade-up,
    .fade-down,
    .fade-left,
    .fade-right,
    .scale-in,
    .blur-in {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
