/* ==========================================================================
   UTKAL ATELIERS — RESPONSIVE STYLESHEET (MASTER MOBILE-FIRST LUXURY EDITION)
   Flawless cross-device experience: Desktop, Laptop, Tablet, and Mobile (down to 320px)
   Strictly engineered for iOS Safari, Android Chrome, and touch interfaces.
   ========================================================================== */

/* --- Compact Desktops / Small Laptops (max-width: 1360px) --- */
@media (max-width: 1360px) {
  .brand-logo-img {
    height: 54px;
  }

  .nav-list {
    gap: 1.05rem;
  }

  .nav-link {
    font-size: 0.74rem;
    letter-spacing: 0.11em;
  }

  .nav-cta {
    padding: 0.65rem 1.15rem;
    font-size: 0.7rem;
  }

  .header-util-link {
    font-size: 0.68rem;
  }
}

/* --- Laptops & Mid Desktops (max-width: 1200px) --- */
@media (max-width: 1200px) {
  :root {
    --fs-hero: clamp(2rem, 3.8vw, 3.45rem);
    --space-2xl: 80px;
    --space-3xl: 110px;
  }

  .material-library-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }
}

/* --- Collapse Desktop Header to Hamburger below 1140px --- */
@media (max-width: 1140px) {
  .nav-desktop {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }
}

/* --- Tablets & Landscape Phones (max-width: 992px) --- */
@media (max-width: 992px) {
  :root {
    --fs-hero: clamp(1.9rem, 4.4vw, 3rem);
    --fs-h1: clamp(2rem, 4vw, 3.2rem);
    --fs-h2: clamp(1.65rem, 3vw, 2.4rem);
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
  }

  .brand-logo-img {
    height: 50px;
    max-width: 210px;
  }

  .footer-logo-img {
    height: 60px;
    max-width: 240px;
  }

  .careers-culture-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .career-roles-list {
    grid-template-columns: 1fr;
  }

  /* Intro Section */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-content {
    padding-right: 0;
  }

  .intro-media-frame img {
    aspect-ratio: 16/10;
  }

  /* Philosophy */
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  /* Material Library */
  .material-library-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Selected Works / Portfolio Asymmetric Grid */
  .grid-col-7,
  .grid-col-5,
  .grid-col-6,
  .grid-col-4,
  .grid-col-8 {
    grid-column: span 12;
  }

  .portfolio-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Process Timeline (Continuous Vertical on Tablets/Mobile) */
  .process-timeline {
    margin-top: 3.5rem;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    position: relative;
    padding-left: 3.75rem;
  }

  .process-steps-grid::before {
    top: 10px;
    left: 20px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: var(--accent);
    opacity: 0.4;
  }

  .process-step-item {
    position: relative;
  }

  .process-step-circle {
    position: absolute;
    left: -3.75rem;
    top: 0;
    margin-bottom: 0;
    width: 42px;
    height: 42px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 6px var(--bg-primary);
  }

  /* Testimonials */
  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* About Page */
  .about-narrative-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .about-narrative-grid[style*="direction: rtl"] {
    direction: ltr !important;
  }

  .about-narrative-grid[style*="direction: rtl"] > * {
    direction: ltr !important;
  }

  .about-craft-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  /* Services detail page */
  .service-detail-row {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 3.5rem 0 !important;
  }

  .service-detail-row.reverse {
    direction: ltr !important;
  }

  .service-detail-row.reverse > * {
    direction: ltr !important;
  }

  /* Journal page */
  .journal-hero-article {
    grid-template-columns: 1fr;
  }

  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Contact page */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  /* Modal Container */
  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand-col {
    grid-column: span 2;
    padding-right: 0;
  }
}

/* --- Mobile Phones (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --fs-hero: clamp(1.75rem, 6.4vw, 2.25rem);
    --fs-h1: clamp(1.9rem, 6vw, 2.3rem);
    --fs-h2: clamp(1.55rem, 4.8vw, 1.95rem);
    --fs-h3: clamp(1.2rem, 3.8vw, 1.45rem);
    --fs-lead: 0.98rem;
    --gutter: 1.25rem;
    --space-xl: 36px;
    --space-2xl: 52px;
    --space-3xl: 68px;
  }

  /* Zero Horizontal Overflow Enforced */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container,
  .container-wide,
  .container-narrow {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
    box-sizing: border-box !important;
  }

  /* Fixed Navigation Header */
  .site-header {
    padding: max(0.65rem, env(safe-area-inset-top)) 0 0.65rem;
  }

  .header-inner {
    gap: 1rem;
    width: 100%;
  }

  .brand-logo-img {
    height: 44px; /* Perfectly sized for mobile viewports without crowding header */
    max-width: 185px;
    object-fit: contain;
    object-position: left center;
  }

  .footer-logo-img {
    height: 54px;
    max-width: 220px;
  }

  .hamburger-btn {
    width: 44px;
    height: 44px;
    padding: 8px;
    display: flex !important;
  }

  /* Native Mobile Navigation Overlay / Drawer */
  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: #22221F;
    z-index: 2100; /* Stacks cleanly above everything */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.5rem max(1.75rem, env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(247, 245, 240, 0.12);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
  }

  .mobile-nav-logo {
    height: 44px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
  }

  .mobile-nav-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-nav-close-btn:hover,
  .mobile-nav-close-btn:active {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
  }

  .mobile-nav-top {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  .mobile-nav-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5.2vw, 1.95rem);
    font-weight: 300;
    color: var(--text-light);
    display: inline-block;
    line-height: 1.2;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--accent);
    transform: translateX(8px);
  }

  .mobile-nav-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(247, 245, 240, 0.12);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .mobile-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }

  .mobile-quick-btn {
    flex: 1;
    min-height: 46px;
    font-size: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
  }

  /* Hero Section (Cinematic Multi-Slide Home Hero) */
  .hero-cinema {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: max(5.5rem, calc(env(safe-area-inset-top) + 4rem));
    padding-bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title,
  .hero-content h1 {
    font-size: var(--fs-hero) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.15rem !important;
    letter-spacing: -0.01em !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7) !important;
  }

  .hero-title .serif-italic {
    color: #FFFFFF !important;
  }

  .hero-statement {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.75rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5) !important;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    text-align: center;
    justify-content: center;
  }

  /* Integrated Hero Controls */
  .hero-controls {
    position: absolute;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    left: var(--gutter);
    right: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 5;
  }

  .hero-indicators,
  .hero-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-dot {
    width: 26px;
    height: 3px;
  }

  .hero-dot.active {
    width: 40px;
  }

  .hero-counter,
  .hero-slide-counter {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .scroll-indicator {
    display: none !important;
  }

  /* Page Heroes (Subpages) */
  .page-hero {
    padding-top: max(6rem, calc(env(safe-area-inset-top) + 4.5rem));
    padding-bottom: 2.25rem;
  }

  .page-hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  .page-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Intro Section */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .intro-heading {
    font-size: clamp(1.85rem, 6vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }

  .intro-lead {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .intro-stats-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .stat-col {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .stat-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .section-header-row .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* Philosophy */
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .philosophy-card {
    padding: 1.85rem 1.25rem;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .card-text {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  /* Material Library */
  .material-library-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .material-card {
    padding: 1.6rem 1.25rem;
  }

  .material-name {
    font-size: 1.35rem;
  }

  .material-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Selected Works (Asymmetric Portfolio Grid -> Strict 1-Column Mobile Layout) */
  .asymmetric-portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .asymmetric-portfolio-grid > div,
  .grid-col-7,
  .grid-col-5,
  .grid-col-6,
  .grid-col-4,
  .grid-col-8 {
    grid-column: span 1 !important;
    width: 100% !important;
  }

  .project-media-wrapper,
  .aspect-landscape,
  .aspect-portrait {
    aspect-ratio: 16/10 !important;
    width: 100%;
  }

  .project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-badge-float {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.68rem;
  }

  .project-info {
    padding: 1.15rem 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .project-title {
    font-size: 1.35rem;
  }

  .project-location-year {
    text-align: left;
    font-size: 0.78rem;
  }

  /* Services Overview Grid (index.html) */
  .services-editorial-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .service-grid-card {
    min-height: auto;
    padding: 1.85rem 1.25rem;
  }

  .service-index {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .service-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Visual Statement Banner */
  .visual-statement {
    min-height: 48vh;
    padding: 4rem var(--gutter);
  }

  .statement-quote {
    font-size: clamp(1.35rem, 4.5vw, 1.85rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
  }

  /* Process Timeline (Mobile Continuous Vertical) */
  .process-timeline {
    margin-top: 2.75rem;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-left: 3.25rem;
    position: relative;
  }

  .process-steps-grid::before {
    top: 10px;
    left: 18px;
    width: 2px;
    height: calc(100% - 20px);
  }

  .process-step-circle {
    left: -3.25rem;
    width: 38px;
    height: 38px;
    font-size: 0.92rem;
    box-shadow: 0 0 0 5px var(--bg-primary);
  }

  .process-step-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .process-step-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Testimonials */
  .testimonials-slider {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.85rem 1.25rem;
  }

  .testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 4rem var(--gutter);
  }

  .cta-title {
    font-size: clamp(1.85rem, 6.2vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #FFFFFF !important;
  }

  .cta-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }

  .cta-banner-inner .btn {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
    justify-content: center;
  }

  /* --- ABOUT PAGE (about.html) --- */
  .about-narrative-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    direction: ltr !important;
  }

  .about-narrative-grid[style*="direction: rtl"] {
    direction: ltr !important;
  }

  .about-narrative-grid[style*="direction: rtl"] > * {
    direction: ltr !important;
  }

  .about-narrative-media img {
    aspect-ratio: 16/10;
    width: 100%;
  }

  .about-craft-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2rem;
  }

  .craft-item {
    padding-left: 1.25rem;
  }

  .craft-title {
    font-size: 1.35rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
  }

  .team-photo-wrap {
    aspect-ratio: 4/3;
  }

  /* --- SERVICES PAGE (services.html) --- */
  .service-detail-row {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding: 2.75rem 0 !important;
    direction: ltr !important;
  }

  .service-detail-row.reverse {
    direction: ltr !important;
  }

  .service-detail-row.reverse > * {
    direction: ltr !important;
  }

  .service-detail-media img {
    aspect-ratio: 16/10;
    width: 100%;
  }

  .service-deliverables-list {
    margin: 1.25rem 0;
  }

  .service-deliverables-list li {
    font-size: 0.88rem;
  }

  /* --- PROJECTS / PORTFOLIO PAGE (projects.html) --- */
  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.6rem 1.15rem;
    font-size: 0.76rem;
    min-height: 44px;
  }

  .portfolio-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* --- JOURNAL PAGE (journal.html) --- */
  .journal-hero-article {
    grid-template-columns: 1fr;
    margin-bottom: 2.25rem;
  }

  .journal-hero-media {
    aspect-ratio: 16/10;
    max-height: 250px;
  }

  .journal-hero-body {
    padding: 1.75rem 1.25rem;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .journal-card-media {
    aspect-ratio: 16/10;
  }

  .journal-card-body {
    padding: 1.5rem 1.25rem;
  }

  .journal-card-title {
    font-size: 1.25rem;
  }

  .journal-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* --- CONTACT PAGE (contact.html) --- */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .contact-info-panel {
    gap: 2rem;
  }

  .contact-form-wrap {
    padding: 2rem 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .form-group-full {
    grid-column: span 1;
  }

  /* CRITICAL FOR iOS SAFARI: font-size 16px prevents awkward zoom-in on tap */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
    padding: 0.85rem 1rem;
    border-radius: 2px;
  }

  .social-icon-link {
    width: 44px;
    height: 44px;
  }

  /* --- MODAL DIALOGS (Projects & Journal Reader) --- */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: none;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  .modal-backdrop.open .modal-container {
    transform: translateY(0);
  }

  .modal-close-btn {
    position: sticky;
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0.75rem;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(247, 245, 240, 0.96);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 20;
  }

  .modal-body {
    padding: 1.5rem 1.25rem max(2rem, env(safe-area-inset-bottom));
  }

  .modal-hero-img-wrap {
    max-height: 250px;
  }

  .modal-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .modal-specs-box {
    padding: 1.5rem 1.25rem;
  }

  /* --- FOOTER --- */
  .site-footer {
    padding-top: 3.5rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .footer-brand-col {
    grid-column: span 1;
    padding-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .back-to-top {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }

  .floating-whatsapp {
    top: auto;
    bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 4.25rem));
    right: 1.25rem;
    transform: none;
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  .floating-whatsapp:hover {
    transform: scale(1.06);
  }

  .whatsapp-tooltip {
    display: none;
  }

  .login-modal-container {
    padding: 3.5rem 1.25rem 2rem;
    max-width: 100%;
  }

  .career-role-card {
    padding: 1.75rem 1.25rem;
  }
}

/* --- Compact Mobile Devices (max-width: 480px) --- */
@media (max-width: 480px) {
  :root {
    --gutter: 1rem;
    --fs-hero: 1.8rem;
    --fs-h1: 1.85rem;
    --fs-h2: 1.5rem;
  }

  .brand-logo-img {
    height: 40px;
    max-width: 165px;
  }

  .hero-cinema {
    padding-top: max(5rem, calc(env(safe-area-inset-top) + 3.5rem));
    padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4rem));
  }

  .hero-title,
  .hero-content h1 {
    font-size: 1.8rem !important;
  }

  .hero-statement {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-controls {
    gap: 0.75rem;
  }

  .hero-counter {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.85rem 1.35rem;
    font-size: 0.76rem;
  }

  .process-steps-grid {
    padding-left: 2.85rem;
  }

  .process-step-circle {
    left: -2.85rem;
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  .process-steps-grid::before {
    left: 16px;
  }
}

/* --- Ultra-Narrow Mobile Phones (max-width: 360px) --- */
@media (max-width: 360px) {
  :root {
    --gutter: 0.85rem;
    --fs-hero: 1.6rem;
    --fs-h1: 1.7rem;
    --fs-h2: 1.35rem;
  }

  .brand-logo-img {
    height: 36px;
    max-width: 145px;
  }

  .hamburger-btn {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  .hero-title,
  .hero-content h1 {
    font-size: 1.6rem !important;
  }

  .hero-statement {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
  }

  .btn {
    font-size: 0.72rem;
    padding: 0.75rem 1rem;
    letter-spacing: 0.08em;
  }
}

/* --- Mobile Landscape Support (max-height: 520px and orientation: landscape) --- */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header {
    padding: 0.4rem 0;
  }

  .brand-logo-img {
    height: 36px;
  }

  .hero-cinema {
    min-height: 100vh;
    padding-top: 4.5rem;
    padding-bottom: 4rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .hero-actions .btn {
    width: auto;
    min-height: 42px;
  }

  .mobile-nav-overlay {
    padding: 1rem 1.5rem;
  }

  .mobile-nav-list {
    gap: 0.6rem;
  }

  .mobile-nav-link {
    font-size: 1.25rem;
  }
}
