/* ==========================================================================
   NISCALA EKSOTIKA — RESPONSIVE STYLESHEET
   Project : Single Landing Page
   Domain  : https://niscala.abpeworks.com

   Breakpoint strategy:
   - Base styles            : Desktop / large tablet
   - 1280px and below       : Compact desktop
   - 1100px and below       : Tablet landscape
   - 900px and below        : Tablet portrait / mobile navigation
   - 768px and below        : Mobile
   - 640px and below        : Small mobile
   - 480px and below        : Extra small mobile
   ========================================================================== */


/* ==========================================================================
   01. LARGE DESKTOP
   ========================================================================== */

@media (min-width: 1441px) {
  :root {
    --container-width: 1240px;
    --container-wide: 1420px;
  }

  .hero__container {
    min-height: 100svh;
  }

  .hero__visual {
    min-height: 680px;
  }

  .portfolio__grid {
    grid-auto-rows: 310px;
  }
}


/* ==========================================================================
   02. COMPACT DESKTOP — 1280px AND BELOW
   ========================================================================== */

@media (max-width: 1280px) {
  :root {
    --container-width: 1120px;
    --container-wide: 1220px;
    --space-28: 6.25rem;
    --space-32: 7rem;
  }

  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 40px), var(--container-wide));
  }

  .container,
  .container--wide {
    width: min(calc(100% - 40px), var(--container-width));
  }

  .hero__container {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .hero__visual {
    min-height: 580px;
  }

  .services__grid {
    gap: var(--space-5);
  }

  .service-card {
    min-height: 290px;
    padding: var(--space-6);
  }

  .advantages__layout {
    gap: clamp(3.5rem, 6vw, 6rem);
  }

  .portfolio__grid {
    grid-auto-rows: 260px;
  }

  .contact-cta__shell {
    padding: clamp(2.75rem, 5.5vw, 5rem);
  }
}


/* ==========================================================================
   03. TABLET LANDSCAPE — 1100px AND BELOW
   ========================================================================== */

@media (max-width: 1100px) {
  :root {
    --header-height: 78px;
    --space-24: 5rem;
    --space-28: 5.5rem;
  }

  .site-nav {
    gap: var(--space-5);
  }

  .site-nav__list {
    gap: var(--space-5);
  }

  .site-header__actions .btn {
    padding-inline: 1.1rem;
  }

  .hero__container {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 3rem;
  }

  .hero__visual {
    min-height: 540px;
  }

  .hero__floating-card {
    max-width: 190px;
    padding: var(--space-4);
  }

  .hero__floating-card--top {
    left: -2%;
  }

  .hero__floating-card--bottom {
    right: -1%;
  }

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

  .advantages__layout {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 3.75rem;
  }

  .advantages__visual {
    min-height: 570px;
  }

  .portfolio__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .portfolio-card:nth-child(4) {
    grid-column: 1 / -1;
  }

  .contact-cta__shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    gap: var(--space-8);
  }

  .site-footer__main {
    grid-template-columns: 1.3fr repeat(2, minmax(160px, 0.7fr));
  }

  .site-footer__column:last-child {
    grid-column: 2 / -1;
  }
}


/* ==========================================================================
   04. TABLET PORTRAIT / MOBILE NAVIGATION — 900px AND BELOW
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
    --space-20: 4.5rem;
    --space-24: 4.75rem;
    --space-28: 5rem;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + var(--space-3));
  }

  .container,
  .container--wide,
  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 36px), var(--container-width));
  }

  .site-header,
  .site-header.is-scrolled {
    height: var(--header-height);
  }

  .site-brand__logo,
  .site-header.is-scrolled .site-brand__logo {
    height: 42px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: block;
    max-height: calc(100svh - var(--header-height));
    padding: var(--space-5) 18px var(--space-8);
    overflow-y: auto;
    color: var(--color-heading);
    border-top: 1px solid var(--color-border);
    background: rgba(250, 250, 248, 0.98);
    box-shadow: 0 24px 60px rgba(8, 27, 58, 0.14);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition:
      opacity var(--transition-base),
      visibility var(--transition-base),
      transform var(--transition-base);
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    display: grid;
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__link {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    font-size: var(--font-size-base);
    opacity: 1;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link::before {
    order: 2;
    color: var(--color-primary);
    font-size: 1.1rem;
    content: "↗";
  }

  .site-nav .btn {
    width: 100%;
    margin-top: var(--space-5);
  }

  .site-header__actions > .btn {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header.nav-open .nav-toggle__line {
    background: transparent;
  }

  .site-header.nav-open .nav-toggle__line::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header.nav-open .nav-toggle__line::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    min-height: 100svh;
    padding-top: calc(var(--header-height) + var(--space-14));
    padding-bottom: var(--space-20);
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__title {
    max-width: 11ch;
  }

  .hero__visual {
    min-height: 560px;
  }

  .hero__visual-frame {
    inset: 0 7% 0 7%;
  }

  .hero__product {
    right: 12%;
    width: min(58%, 410px);
  }

  .hero__floating-card--top {
    top: 10%;
    left: 2%;
  }

  .hero__floating-card--bottom {
    right: 2%;
    bottom: 10%;
  }

  .hero__scroll {
    display: none;
  }

  .section__header {
    max-width: 680px;
  }

  .advantages__layout {
    grid-template-columns: 1fr;
    gap: var(--space-14);
  }

  .advantages__visual {
    min-height: 600px;
    order: 2;
  }

  .advantages__content {
    order: 1;
  }

  .advantages__image-shell {
    inset: 0 10% 6% 0;
  }

  .advantages__stat {
    width: min(48%, 290px);
  }

  .portfolio__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio__controls {
    align-self: flex-end;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }

  .portfolio-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 420px;
  }

  .portfolio-card:nth-child(4) {
    grid-column: auto;
  }

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

  .contact-cta__title {
    max-width: 14ch;
  }

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

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__column:last-child {
    grid-column: auto;
  }

  [data-parallax] {
    transform: translate3d(
      calc(var(--parallax-x) * 0.55),
      calc(var(--parallax-y) * 0.55),
      0
    );
  }
}


/* ==========================================================================
   05. MOBILE — 768px AND BELOW
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --font-size-lg: 1.0625rem;
    --space-16: 3.5rem;
    --space-20: 4rem;
    --space-24: 4.25rem;
    --space-28: 4.5rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
  }

  .container,
  .container--wide,
  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 32px), var(--container-width));
  }

  .section {
    padding-block: var(--space-20);
  }

  .section--compact {
    padding-block: var(--space-16);
  }

  .section__header {
    margin-bottom: var(--space-10);
  }

  .section__eyebrow {
    margin-bottom: var(--space-4);
  }

  .section__title {
    max-width: 16ch;
  }

  .section__description {
    font-size: var(--font-size-base);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 50px;
  }

  .btn--lg {
    min-height: 56px;
    padding-inline: 1.4rem;
  }

  .hero__container {
    gap: var(--space-8);
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-14));
    padding-bottom: var(--space-14);
  }

  .hero__badge {
    margin-bottom: var(--space-5);
  }

  .hero__title {
    max-width: 12ch;
    font-size: clamp(3.2rem, 14vw, 5.25rem);
  }

  .hero__description {
    margin-top: var(--space-5);
    font-size: var(--font-size-base);
    line-height: 1.75;
  }

  .hero__actions {
    margin-top: var(--space-6);
  }

  .hero__trust {
    gap: var(--space-3) var(--space-5);
    margin-top: var(--space-8);
  }

  .hero__visual {
    min-height: 500px;
  }

  .hero__visual-frame {
    inset: 0 4%;
    border-radius: 38% 38% var(--radius-xl) var(--radius-xl);
  }

  .hero__product {
    right: 8%;
    bottom: 1%;
    width: min(68%, 390px);
  }

  .hero__floating-card {
    max-width: 175px;
  }

  .hero__floating-card--top {
    top: 8%;
    left: 0;
  }

  .hero__floating-card--bottom {
    right: 0;
    bottom: 8%;
  }

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

  .service-card {
    min-height: auto;
    padding: var(--space-6);
  }

  .advantages__visual {
    min-height: 520px;
  }

  .advantages__image-shell {
    inset: 0 8% 7% 0;
  }

  .advantages__stat {
    width: min(62%, 270px);
    padding: var(--space-6);
  }

  .advantages__stat-value {
    font-size: 3.35rem;
  }

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

  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .portfolio-card,
  .portfolio-card--featured {
    grid-column: auto;
    min-height: 330px;
  }

  .portfolio-card--featured {
    min-height: 420px;
  }

  .portfolio__controls {
    align-self: flex-start;
  }

  .contact-cta__shell {
    gap: var(--space-8);
    padding: var(--space-10) var(--space-6);
  }

  .contact-cta__description {
    font-size: var(--font-size-base);
  }

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

  .contact-card {
    padding: var(--space-4);
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10) var(--space-6);
    padding-block: var(--space-16);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float {
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .whatsapp-float__text {
    display: none;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    min-height: 58px;
    justify-content: center;
    padding: 0;
  }

  .whatsapp-float__icon {
    width: 44px;
    height: 44px;
  }

  [data-parallax] {
    transform: translate3d(
      calc(var(--parallax-x) * 0.35),
      calc(var(--parallax-y) * 0.35),
      0
    );
  }
}


/* ==========================================================================
   06. SMALL MOBILE — 640px AND BELOW
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .site-brand__name {
    display: none;
  }

  .site-brand__logo,
  .site-header.is-scrolled .site-brand__logo {
    height: 40px;
  }

  .site-header__inner {
    gap: var(--space-4);
  }

  .hero::before {
    background-size: 52px 52px;
  }

  .hero__container {
    padding-top: calc(var(--header-height) + var(--space-12));
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 440px;
  }

  .hero__visual-frame {
    inset: 0;
  }

  .hero__product {
    right: 7%;
    width: min(72%, 340px);
  }

  .hero__floating-card {
    max-width: 150px;
    padding: var(--space-3);
    border-radius: var(--radius-md);
  }

  .hero__floating-label {
    font-size: 0.58rem;
  }

  .hero__floating-value {
    font-size: 0.84rem;
  }

  .hero__floating-card--top {
    top: 5%;
    left: -2%;
  }

  .hero__floating-card--bottom {
    right: -2%;
    bottom: 5%;
  }

  .section__title {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  .section__eyebrow::before {
    width: 24px;
  }

  .service-card__number {
    top: var(--space-5);
    right: var(--space-5);
  }

  .advantages__visual {
    min-height: 450px;
  }

  .advantages__image-shell {
    inset: 0 5% 8% 0;
  }

  .advantages__stat {
    width: min(70%, 250px);
    padding: var(--space-5);
  }

  .advantage-item {
    padding: var(--space-4);
  }

  .portfolio-card {
    min-height: 300px;
  }

  .portfolio-card--featured {
    min-height: 380px;
  }

  .portfolio-card__content {
    right: var(--space-5);
    bottom: var(--space-5);
    left: var(--space-5);
  }

  .contact-cta__shell {
    border-radius: var(--radius-xl);
  }

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

  .contact-cta__actions .btn {
    width: 100%;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }
}


/* ==========================================================================
   07. EXTRA SMALL MOBILE — 480px AND BELOW
   ========================================================================== */

@media (max-width: 480px) {
  :root {
    --font-size-base: 0.96rem;
    --space-20: 3.75rem;
    --space-24: 4rem;
  }

  .container,
  .container--wide,
  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 24px), var(--container-width));
  }

  .site-nav {
    padding-inline: 12px;
  }

  .hero__title {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }

  .hero__description {
    line-height: 1.7;
  }

  .hero__visual {
    min-height: 390px;
  }

  .hero__product {
    right: 5%;
    width: min(76%, 305px);
  }

  .hero__floating-card {
    max-width: 132px;
  }

  .hero__floating-card--top {
    top: 4%;
    left: -1%;
  }

  .hero__floating-card--bottom {
    right: -1%;
    bottom: 4%;
  }

  .card,
  .service-card,
  .portfolio-card,
  .contact-cta__shell {
    border-radius: 1.25rem;
  }

  .advantages__visual {
    min-height: 400px;
  }

  .advantages__stat {
    width: min(78%, 235px);
  }

  .advantages__stat-value {
    font-size: 3rem;
  }

  .portfolio-card {
    min-height: 280px;
  }

  .portfolio-card--featured {
    min-height: 340px;
  }

  .contact-card__value {
    overflow-wrap: anywhere;
  }

  .site-footer__socials {
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   08. SHORT VIEWPORT HEIGHT
   ========================================================================== */

@media (max-height: 720px) and (min-width: 901px) {
  .hero__container {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-10);
  }

  .hero__visual {
    min-height: 500px;
  }

  .hero__description {
    margin-top: var(--space-4);
  }

  .hero__actions {
    margin-top: var(--space-6);
  }

  .hero__trust {
    margin-top: var(--space-6);
  }
}


/* ==========================================================================
   09. LANDSCAPE MOBILE
   ========================================================================== */

@media (orientation: landscape) and (max-height: 560px) and (max-width: 900px) {
  .site-nav {
    max-height: calc(100dvh - var(--header-height));
  }

  .hero__container {
    min-height: auto;
  }

  .hero__visual {
    min-height: 420px;
  }

  .hero__floating-card {
    display: none;
  }
}


/* ==========================================================================
   10. TOUCH DEVICES
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .service-card:hover,
  .advantage-item:hover,
  .portfolio__control:hover,
  .site-footer__social:hover,
  .whatsapp-float:hover {
    transform: none;
  }

  .card:hover,
  .service-card:hover {
    box-shadow: var(--shadow-xs);
  }

  .portfolio-card:hover .portfolio-card__image {
    transform: none;
  }

  .btn:hover::before {
    transform: translateX(-120%);
  }
}


/* ==========================================================================
   11. HIGH RESOLUTION / RETINA TWEAKS
   ========================================================================== */

@media (min-resolution: 2dppx) {
  .hero::before,
  .u-surface-grid {
    background-position: 0.5px 0.5px;
  }
}


/* ==========================================================================
   12. PRINT FALLBACK
   ========================================================================== */

@media print {
  .site-header,
  .nav-toggle,
  .hero__scroll,
  .portfolio__controls,
  .whatsapp-float,
  .site-footer__socials {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  .hero,
  .portfolio,
  .contact-cta__shell,
  .site-footer {
    color: #000000;
    background: #ffffff !important;
    box-shadow: none;
  }

  .hero {
    min-height: auto;
  }

  .section,
  .hero__container,
  .site-footer__main {
    padding-block: 2rem;
  }

  .hero__container,
  .advantages__layout,
  .contact-cta__shell,
  .site-footer__main {
    display: block;
  }

  .hero__visual,
  .advantages__visual,
  .portfolio__grid {
    margin-top: 2rem;
  }

  a {
    text-decoration: underline;
  }
}


/* ==========================================================================
   END OF RESPONSIVE.CSS
   ========================================================================== */