/* Phone / tablet layout — desktop stays as-is above 980px */

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer-foot {
  display: none;
}

.nav-backdrop {
  display: none;
}

.phone-bar {
  display: none;
}

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  :root,
  html[data-theme="light"] {
    --accent: #c9a24a;
    --btn: #c9a24a;
    --btn-ink: #1a1408;
    --btn-hover: #b8923a;
    --accent-ink: #1a1408;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  .shell {
    width: min(1180px, calc(100% - 1.75rem));
  }

  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 3.75rem;
    padding-block: 0.35rem;
    padding-top: calc(0.35rem + env(safe-area-inset-top));
    gap: 0.5rem;
  }

  .brand {
    gap: 0.55rem;
    min-width: 0;
  }

  .brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    mix-blend-mode: normal;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  }

  .brand-text strong,
  .brand-text .brand-top {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gold);
  }

  .brand-text .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.78);
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle span {
    background: #fff;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(10, 10, 10, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .nav-backdrop.is-on {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 55;
    width: min(22rem, 88vw);
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    margin: 0;
    padding: calc(4.6rem + env(safe-area-inset-top)) 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    background: var(--bg-elevated);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(110%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.35rem 0.15rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a.is-active::after {
    display: none;
  }

  .nav a.is-active {
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 0.65rem;
  }

  .nav-drawer-foot {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.25rem;
  }

  .nav-drawer-foot .btn {
    width: 100%;
    min-height: 3rem;
  }

  .nav-drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 0 !important;
  }

  body.nav-lock {
    overflow: hidden;
  }

  .hero {
    padding: 0;
    margin: 0;
  }

  .hero > .shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hero-grid {
    position: relative;
    display: block;
    height: auto;
    min-height: 72vh;
    min-height: 72svh;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    order: unset;
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
    box-shadow: none;
    z-index: 0;
  }

  .hero-media img,
  .hero-media .hero-slide {
    min-height: 100%;
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 35%;
    transform: scale(1.06);
    animation: none;
    filter: saturate(1.05) contrast(1.08) brightness(0.78);
  }

  .hero-media .hero-slide.is-on {
    animation: none;
  }

  .hero-media::before {
    display: block;
    width: 100%;
    height: 100%;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 32%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.88) 100%);
  }

  .hero-media::after {
    opacity: 0.55;
  }

  .hero .hero-location,
  .hero .hero-badge,
  .hero-media .hero-location,
  .hero-media .hero-badge,
  .project-card .project-tag {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    max-width: none;
    margin: 0;
    padding: calc(4.4rem + env(safe-area-inset-top)) 1.15rem 1.35rem;
    min-height: 72vh;
    min-height: 72svh;
    box-sizing: border-box;
  }

  .hero h1 {
    order: unset;
    margin: 0;
    font-size: inherit;
    line-height: 1.05;
    letter-spacing: 0;
    color: #fff;
  }

  .hero-brand {
    font-size: clamp(2rem, 8.2vw, 2.55rem);
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  }

  .hero-sub {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--gold);
  }

  .hero-lead {
    order: unset;
    margin-top: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 22rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .hero-actions {
    order: unset;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1.15rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 3.05rem;
    font-size: 0.98rem;
    border-radius: 0.7rem;
  }

  .hero-actions .btn-ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
  }

  .hero-pager {
    display: none;
  }

  .features {
    margin-top: -1.35rem;
    position: relative;
    z-index: 6;
    padding: 0 0.85rem 0.35rem;
  }

  .features > .shell {
    width: 100%;
    margin: 0;
    padding: 1rem 0.85rem 0.95rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.06);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  }

  .features-kicker {
    display: block;
    margin: 0 0 0.85rem;
    text-align: center;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .features-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .feature:nth-child(n + 4) {
    display: none;
  }

  .feature {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    aspect-ratio: auto;
    min-height: 0;
    padding: 0.35rem 0.4rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
    cursor: default;
  }

  .feature:not(:last-child)::after,
  .feature:nth-child(1)::after,
  .feature:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 18%;
    right: 0;
    bottom: 18%;
    width: 1px;
    background: rgba(26, 26, 26, 0.1);
  }

  .feature:nth-child(3)::after {
    display: none;
  }

  .feature-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
  }

  .feature-icon-wrap {
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--gold);
  }

  .feature-icon {
    grid-row: auto;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border-radius: 0;
    border: 0;
    color: var(--gold);
  }

  .feature-open {
    display: none !important;
  }

  .feature strong {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .feature-detail {
    display: none !important;
  }

  .feature.is-open .feature-detail {
    display: none !important;
  }

  .services-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 1rem 0.7rem;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .service-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
  }

  .service-item span {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 0.65rem;
    border: 1.5px solid var(--accent);
  }

  .service-item strong {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .service-detail {
    display: none;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: left;
  }

  .service-face + .service-detail {
    margin-left: 0;
  }

  .service-item.is-open {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    align-items: flex-start;
    text-align: left;
    padding: 1.1rem 1rem 1.15rem;
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  }

  .service-item.is-open .service-face {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .service-item.is-open .service-detail {
    display: block;
    width: 100%;
    margin-top: 0.15rem;
    padding-left: calc(2.4rem + 0.75rem);
  }

  .service-item::after {
    content: "+";
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1;
  }

  .service-item.is-open::after {
    content: "–";
    color: var(--accent);
  }

  .section {
    padding: 2.15rem 0;
  }

  .section-title {
    font-size: 1.38rem;
    line-height: 1.22;
  }

  .section-head {
    gap: 0.75rem;
    margin-bottom: 1.1rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .about-stats .stat:last-child {
    grid-column: 1 / -1;
  }

  .project-card {
    gap: 0.55rem;
  }

  .project-card figure {
    aspect-ratio: 16 / 11;
    border-radius: 1rem;
  }

  .project-card h3 {
    font-size: 1.05rem;
  }

  .review {
    padding: 1.15rem 1.05rem;
    border-radius: 1rem;
  }

  /* Phone: only first review */
  .reviews-grid .review:nth-child(n + 2),
  .rev-list .review:nth-child(n + 2) {
    display: none;
  }

  .process-list {
    gap: 0.55rem;
  }

  .process-list li {
    grid-template-columns: 2.6rem 1fr;
    gap: 0.75rem;
    padding: 0.95rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
  }

  .process-list li:not(:last-child)::before {
    display: none;
  }

  .process-list li:last-child {
    padding-bottom: 0.95rem;
  }

  .process-num {
    width: 2.2rem;
    height: 2.2rem;
  }

  .lead {
    padding: 1.75rem 0 calc(2rem + 4.5rem);
    scroll-margin-top: 4.5rem;
  }

  .shell.lead-inner,
  .lead-inner.shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.05rem;
    width: min(1180px, calc(100% - 1.75rem));
    margin-inline: auto;
    box-sizing: border-box;
  }

  .lead h2 {
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
    max-width: none;
  }

  .lead > .shell > div > p,
  .lead-inner > div > p {
    margin-top: 0.5rem;
    font-size: 0.94rem;
    line-height: 1.45;
    max-width: none;
    color: rgba(255, 255, 255, 0.85);
  }

  /* Phone form: solid white card, clear labels */
  .lead-form {
    gap: 0.9rem;
    padding: 1.15rem 1.05rem 1.2rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 0;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    color: #1a1a1a;
    backdrop-filter: none;
  }

  .lead-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .lead-field {
    display: grid;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #333;
  }

  .lead-field > span {
    display: block;
  }

  .lead-form input[type="text"],
  .lead-form input[type="tel"] {
    min-height: 3.25rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.95rem;
    border-radius: 0.75rem;
    border: 1.5px solid #d8d8d8;
    background: #f7f7f7;
    color: #1a1a1a;
    font-size: 1.02rem;
    font-weight: 600;
  }

  .lead-form input:focus {
    background: #fff;
    border-color: var(--accent);
    outline: none;
  }

  .lead-form .btn {
    min-height: 3.25rem;
    width: 100%;
    border-radius: 0.75rem;
    font-size: 1.02rem;
    font-weight: 700;
  }

  .lead-agree {
    font-size: 0.82rem;
    line-height: 1.45;
    gap: 0.7rem;
    align-items: flex-start;
    color: #555;
  }

  .lead-agree a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .lead-agree input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    flex: 0 0 auto;
    accent-color: var(--accent);
  }

  /* Contact page form — light card, same clarity */
  .contact-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.2rem 1.05rem;
    border-radius: 1.15rem;
    gap: 0.95rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  }

  .contact-card > a,
  .contact-card > .row {
    padding: 0.85rem 0.9rem;
    border-radius: 0.8rem;
    background: color-mix(in srgb, var(--bg) 70%, var(--line));
    border: 1px solid var(--line);
    font-size: 0.98rem;
  }

  .contact-card .lead-form {
    background: transparent;
    border: 0;
    padding: 0.35rem 0 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .contact-card .lead-field {
    color: var(--ink);
  }

  .contact-card .lead-field > span {
    display: block;
  }

  .contact-card .lead-form input[type="text"],
  .contact-card .lead-form input[type="tel"] {
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
  }

  .contact-card .lead-agree {
    color: var(--muted);
  }

  .contact-card .lead-agree a {
    color: var(--accent);
  }

  .footer-brand .brand-mark {
    width: 3.1rem;
    height: 3.1rem;
  }

  .footer-col h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    margin: 0;
    padding: 0.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
  }

  .footer-col h3::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
  }

  .footer-col.is-open h3::after {
    content: "–";
  }

  .footer-col ul,
  .footer-col .footer-contacts {
    display: none;
    padding-bottom: 0.65rem;
  }

  .footer-col.is-open ul,
  .footer-col.is-open .footer-contacts {
    display: grid;
  }

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

  .page-hero {
    min-height: 16.5rem;
  }

  .page-hero h1 {
    max-width: none;
    font-size: 1.7rem;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .contact-map {
    min-height: 240px;
  }

  .btn {
    min-height: 2.95rem;
  }

  .phone-bar {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: none;
  }

  .phone-bar-call,
  .phone-bar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.05rem;
    border-radius: 0.7rem;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .phone-bar-call {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    background: transparent;
  }

  .phone-bar-cta {
    width: 100%;
    background: #c9a24a;
    color: #1a1408;
  }

  body {
    padding-bottom: calc(4.85rem + env(safe-area-inset-bottom));
  }

  /* Theme/lang switches stay hidden on mobile too */
  .nav-drawer-foot .site-switches,
  body > .site-switches,
  .site-switches {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav-drawer-foot .site-switches .switch-group {
    flex-direction: row !important;
  }
}

  /* Luxury phone drawer (main site) */
  .nav {
    background: #121212 !important;
    border-left: 1px solid rgba(201, 162, 74, 0.28) !important;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45) !important;
  }
  .nav a {
    color: rgba(255, 255, 255, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  }
  .nav a.is-active {
    color: #c9a24a !important;
    box-shadow: inset 3px 0 0 #c9a24a !important;
  }
  .nav-drawer-phone {
    color: #fff !important;
  }
  .nav-drawer-foot .btn-accent {
    background: #c9a24a !important;
    color: #1a1408 !important;
  }
  .nav-backdrop {
    background: rgba(0, 0, 0, 0.55) !important;
  }

@media (max-width: 640px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-stats .stat:last-child {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .brand-text strong {
    font-size: 0.88rem;
  }
}
