/* ================================================================
   AMMAS GRAPHIC — Responsive and Print Styles
   ================================================================ */

/* ----------------------------------------------------------------
   Desktop: 1025px and wider
   ---------------------------------------------------------------- */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }

    .services-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .why-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .testimonial-card {
        flex-basis: calc((100% - 48px) / 3);
    }
}

/* ----------------------------------------------------------------
   Small desktop and tablet landscape: 769px to 1024px
   ---------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --section-space: 74px;
    }

    .container {
        padding-right: 28px;
        padding-left: 28px;
    }

    .brand {
        font-size: 23px;
    }

    .brand__icon {
        width: 28px;
        height: 28px;
    }

    .desktop-nav {
        gap: 18px;
    }

    .nav-link {
        font-size: 12px;
    }

    .navbar__cta {
        min-height: 40px;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 10px;
    }

    .hero__content {
        grid-template-columns: minmax(335px, 0.9fr) minmax(360px, 1.1fr);
    }

    .hero__copy {
        max-width: 490px;
        padding-bottom: 82px;
    }

    .hero__eyebrow {
        font-size: 58px;
    }

    .hero__title {
        font-size: 96px;
    }

    .hero__with {
        font-size: 30px;
    }

    .hero__headline {
        font-size: 32px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__team-image {
        height: min(86vh, 690px);
        transform: translateX(-46%);
    }

    .hero__team-visual::before {
        top: 20%;
        left: -26%;
    }

    .scroll-indicator {
        left: 24%;
    }

    .floating-icon--brush {
        left: 5%;
    }

    .floating-icon--pen {
        right: 5%;
    }

    .floating-icon--wheel {
        left: 6%;
    }

    .floating-icon--bulb {
        right: 6%;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        gap: 35px;
    }

    .stats {
        gap: 8px;
    }

    .stat {
        padding-right: 8px;
        padding-left: 8px;
    }

    .monitor__screen {
        min-height: 225px;
        padding: 27px;
    }

    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 17px;
    }

    .team-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .team-card__photo {
        width: 170px;
        height: 170px;
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-card {
        min-height: 230px;
    }

    .testimonial-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
        gap: 25px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-card {
        display: flex;
        min-height: 0;
        padding: 19px;
        align-items: flex-start;
        gap: 16px;
    }

    .contact-card__icon {
        margin-bottom: 0;
        flex: 0 0 50px;
    }

    .contact-card__body p {
        min-height: 0;
    }

    .footer__grid {
        gap: 38px;
    }
}

/* ----------------------------------------------------------------
   Tablet and large mobile: 481px to 768px
   ---------------------------------------------------------------- */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --section-space: 68px;
        --nav-height: 72px;
    }

    .hero__eyebrow {
        font-size: 60px;
    }

    .hero__title {
        font-size: 90px;
    }

    .hero__with {
        font-size: 32px;
    }

    .hero__headline {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-card:last-child {
        width: calc(50% - 12px);
        grid-column: 1 / -1;
        justify-self: center;
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonial-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .contact-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ----------------------------------------------------------------
   Shared tablet/mobile rules: 768px and below
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .desktop-nav,
    .navbar__cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar.scrolled {
        height: 64px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: clamp(2.8rem, 10vw, 3.4rem);
    }

    .section-heading p {
        font-size: 16px;
    }

    .hero {
        min-height: 820px;
        padding-top: var(--nav-height);
        padding-bottom: 0;
    }

    .hero__content {
        display: flex;
        min-height: calc(820px - var(--nav-height));
        padding-right: 28px;
        padding-left: 28px;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
    }

    .hero__copy {
        z-index: 5;
        width: 100%;
        max-width: 620px;
        padding: 50px 0 250px;
    }

    .hero__team-visual {
        position: absolute;
        z-index: 2;
        right: 0;
        bottom: 0;
        left: 0;
        height: 64%;
    }

    .hero__team-visual::before {
        top: 8%;
        left: 10%;
        width: 80%;
        height: 80%;
        opacity: 0.55;
    }

    .hero__team-visual::after {
        opacity: 0.35;
    }

    .hero__team-image {
        left: 50%;
        height: 100%;
        opacity: 0.78;
        transform: translateX(-50%);
    }

    .hero__title {
        transform-origin: center;
    }

    .hero__with {
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .scroll-indicator {
        left: 50%;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .floating-icon {
        width: 55px;
        height: 55px;
        padding: 12px;
        opacity: 0.7;
    }

    .floating-icon--brush {
        top: 18%;
        left: 4%;
    }

    .floating-icon--pen {
        top: 17%;
        right: 4%;
    }

    .floating-icon--wheel {
        bottom: 14%;
        left: 4%;
    }

    .floating-icon--bulb {
        right: 4%;
        bottom: 15%;
    }

    .service-card {
        min-height: 264px;
    }

    .portfolio-item__overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-copy {
        text-align: center;
    }

    .about-copy > p {
        margin-right: auto;
        margin-left: auto;
    }

    .monitor-scene {
        width: min(490px, 100%);
        min-height: 360px;
        margin: 0 auto;
    }

    .team-block {
        padding-top: 75px;
    }

    .tools-row {
        gap: 32px 36px;
    }

    .why-card {
        min-height: 250px;
    }

    .testimonial-carousel {
        padding: 0;
    }

    .carousel-arrow {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-form-wrap {
        width: 100%;
    }

    .footer__grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 45px;
    }

    .footer__contact {
        grid-column: 1 / -1;
    }

    .lightbox {
        padding: 70px 58px 40px;
    }

    .lightbox__content {
        width: min(620px, 82vw);
    }

    .lightbox__arrow {
        width: 46px;
        height: 46px;
    }

    .lightbox__arrow--prev {
        left: 9px;
    }

    .lightbox__arrow--next {
        right: 9px;
    }
}

/* ----------------------------------------------------------------
   Small mobile: 480px and below
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    :root {
        --section-space: 60px;
        --nav-height: 68px;
    }

    .container {
        padding-right: 17px;
        padding-left: 17px;
    }

    .brand {
        gap: 7px;
        font-size: 22px;
    }

    .brand__icon {
        width: 27px;
        height: 27px;
    }

    .hamburger {
        width: 44px;
        height: 44px;
    }

    .mobile-menu__nav {
        gap: 5px;
    }

    .mobile-nav-link {
        font-size: 38px;
    }

    .section-kicker {
        font-size: 10px;
        letter-spacing: 1.9px;
    }

    .section-kicker::before,
    .section-kicker::after {
        width: 16px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2 {
        margin-bottom: 12px;
        font-size: 44px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .hero {
        min-height: 0;
        padding-top: var(--nav-height);
        padding-bottom: 72px;
    }

    .hero__content {
        min-height: 0;
        padding-right: 17px;
        padding-left: 17px;
        flex-direction: column;
        align-items: center;
    }

    .hero__copy {
        display: contents;
    }

    .hero__eyebrow,
    .hero__title,
    .hero__with,
    .hero__headline,
    .hero__subtitle {
        position: relative;
        z-index: 5;
        order: 1;
    }

    .hero__eyebrow,
    .hero__title,
    .hero__headline,
    .hero__subtitle {
        width: 100%;
        text-align: center;
    }

    .hero__eyebrow {
        margin-top: 42px;
    }

    .hero__team-visual {
        position: relative;
        z-index: 2;
        right: auto;
        bottom: auto;
        left: auto;
        order: 2;
        width: calc(100% + 34px);
        height: 330px;
        margin-top: 2px;
    }

    .hero__team-image {
        opacity: 0.96;
        transform: translateX(-50%);
    }

    .hero__actions {
        position: relative;
        z-index: 6;
        order: 3;
        margin-top: -16px;
    }

    .hero__eyebrow {
        font-size: 48px;
        letter-spacing: 1px;
    }

    .hero__title {
        font-size: 70px;
        letter-spacing: 3px;
    }

    .hero__with {
        margin-top: 16px;
        font-size: 27px;
        letter-spacing: 5px;
    }

    .hero__with::before,
    .hero__with::after {
        width: 30px;
    }

    .hero__headline {
        margin-top: 8px;
        margin-bottom: 15px;
        font-size: 34px;
        letter-spacing: 1px;
    }

    .hero__subtitle {
        max-width: 290px;
        margin-right: auto;
        margin-bottom: 25px;
        margin-left: auto;
        font-size: 14px;
        line-height: 1.65;
    }

    .hero__actions {
        width: 100%;
        flex-direction: column;
        gap: 11px;
    }

    .hero__actions .button {
        width: min(280px, 100%);
    }

    .floating-icon {
        display: none;
    }

    .hero-shape--one {
        left: -40px;
        width: 120px;
        height: 120px;
    }

    .hero-shape--two {
        right: -70px;
        width: 170px;
        height: 170px;
    }

    .dot-field {
        opacity: 0.12;
    }

    .scroll-indicator {
        bottom: 17px;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid,
    .why-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
        padding: 27px 23px;
    }

    .portfolio-filters {
        margin-bottom: 30px;
        gap: 8px;
    }

    .filter-button {
        min-height: 44px;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 10px;
    }

    .portfolio-grid {
        gap: 18px;
    }

    .portfolio-item__overlay {
        min-height: 48%;
        padding-right: 18px;
        padding-bottom: 18px;
        padding-left: 18px;
    }

    .about-copy h2 {
        font-size: 50px;
    }

    .about-copy > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        display: flex;
        padding: 16px 20px;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .stat strong {
        min-width: 75px;
        margin-bottom: 0;
        font-size: 35px;
        text-align: right;
    }

    .stat > span {
        width: 100px;
        text-align: left;
    }

    .monitor-scene {
        min-height: 305px;
    }

    .monitor {
        max-width: 330px;
        padding: 11px 11px 14px;
    }

    .monitor-glow {
        width: 330px;
        height: 330px;
    }

    .monitor__screen {
        min-height: 190px;
        padding: 24px;
    }

    .monitor__screen > span {
        font-size: 20px;
    }

    .monitor__screen > strong {
        font-size: 59px;
    }

    .monitor__screen > b {
        font-size: 50px;
    }

    .monitor__neck {
        height: 42px;
    }

    .monitor__base {
        width: 155px;
    }

    .team-card,
    .team-card:last-child {
        width: 100%;
        grid-column: auto;
    }

    .team-card {
        padding: 32px 23px;
    }

    .team-card__photo {
        width: 180px;
        height: 180px;
    }

    .tools-row {
        gap: 29px 20px;
    }

    .tool-item {
        width: 88px;
    }

    .tool-icon {
        width: 70px;
        height: 70px;
        border-radius: 18px;
        font-size: 27px;
    }

    .why-card {
        min-height: 0;
        padding: 30px 23px;
    }

    .testimonial-card {
        min-height: 310px;
        padding: 35px 24px 25px;
        flex-basis: 100%;
    }

    .testimonial-card > p {
        min-height: 0;
    }

    .cta {
        padding: 65px 0;
    }

    .cta h2 {
        font-size: 45px;
    }

    .cta__content > p {
        font-size: 15px;
    }

    .cta__phone {
        flex-wrap: wrap;
        font-size: 12px;
    }

    .contact-card {
        display: flex;
        min-height: 0;
        padding: 19px;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-card__icon {
        margin-bottom: 0;
        flex: 0 0 50px;
    }

    .contact-card__body p {
        min-height: 0;
    }

    .contact-form-wrap__intro {
        padding: 25px 22px;
    }

    .contact-form-wrap__intro h3 {
        font-size: 20px;
    }

    .contact-form {
        padding: 25px 20px 27px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-field,
    .form-field:nth-child(3),
    .form-field:nth-child(4),
    .contact-form__submit,
    .form-status,
    .contact-form__note {
        grid-column: 1;
    }

    .form-field input,
    .form-field select {
        min-height: 50px;
    }

    .footer__grid {
        padding-top: 55px;
        padding-bottom: 45px;
        grid-template-columns: 1fr;
        gap: 37px;
    }

    .footer__contact {
        grid-column: auto;
    }

    .footer__bottom .container {
        min-height: 90px;
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        text-align: center;
    }

    .whatsapp-float {
        right: 17px;
        bottom: 80px;
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .whatsapp-float > svg {
        width: 27px;
        height: 27px;
    }

    .whatsapp-float__tooltip {
        display: none;
    }

    .back-to-top {
        right: 19px;
        bottom: 20px;
        width: 46px;
        height: 46px;
    }

    .lightbox {
        padding: 80px 16px 90px;
    }

    .lightbox__content {
        width: min(520px, 92vw);
    }

    .lightbox__close {
        top: 17px;
        right: 17px;
        width: 46px;
        height: 46px;
    }

    .lightbox__arrow {
        top: auto;
        bottom: 20px;
        width: 48px;
        height: 48px;
        transform: none;
    }

    .lightbox__arrow--prev {
        left: calc(50% - 60px);
    }

    .lightbox__arrow--next {
        right: calc(50% - 60px);
    }
}

/* ----------------------------------------------------------------
   Coarse pointer and touch devices
   ---------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    a,
    button,
    .portfolio-item,
    input,
    select {
        min-height: 44px;
    }

    .portfolio-item__overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card:hover,
    .team-card:hover,
    .why-card:hover,
    .contact-card:hover {
        transform: none;
    }
}

/* ----------------------------------------------------------------
   Reduced motion accessibility
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* ----------------------------------------------------------------
   Print layout
   ---------------------------------------------------------------- */
@media print {
    :root {
        --section-space: 30px;
    }

    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }

    .navbar,
    .mobile-menu,
    .hero__background,
    .hero__team-visual,
    .floating-icon,
    .scroll-indicator,
    .portfolio-filters,
    .carousel-arrow,
    .carousel-dots,
    .cta,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .lightbox,
    .button,
    .contact-form {
        display: none !important;
    }

    main,
    section,
    .section-light,
    .section-dark,
    .portfolio,
    .tools,
    .testimonials {
        background: #fff !important;
        color: #000 !important;
    }

    .hero {
        min-height: auto;
        padding: 30px 0;
    }

    .hero__eyebrow,
    .hero__title,
    .hero__with,
    .hero__headline,
    .hero__subtitle,
    .section-heading h2,
    .section-heading p,
    .section-heading--light h2,
    .section-heading--light p {
        color: #000 !important;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card,
    .portfolio-item,
    .team-card,
    .why-card,
    .testimonial-card,
    .contact-card {
        break-inside: avoid;
        border: 1px solid #bbb !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }

    a[href^='http']::after,
    a[href^='mailto']::after,
    a[href^='tel']::after {
        content: ' (' attr(href) ')';
        font-size: 9pt;
    }
}
