/* ZentraLab — Design System (Apple-inspired clarity) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --color-primary: #0f4c81;
  --color-primary-dark: #0a3559;
  --color-primary-mid: #1565a8;
  --color-accent: #00a896;
  --color-accent-light: #02c39a;
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --radius: 14px;
  --radius-lg: 28px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-ta: "Noto Sans Tamil", "Outfit", system-ui, sans-serif;
  --max-width: 1120px;
  --header-height: 64px;
  --brand-hero: linear-gradient(180deg, #f5f5f7 0%, #e8eef5 45%, #dfeaf3 100%);
  --brand-overlay: linear-gradient(180deg, rgba(245, 245, 247, 0.92) 0%, rgba(245, 245, 247, 0.55) 45%, rgba(10, 53, 89, 0.55) 100%);
  --brand-photo-wash: linear-gradient(160deg, rgba(10, 53, 89, 0.2) 0%, rgba(0, 168, 150, 0.08) 55%, transparent 100%);
  --brand-pattern: none;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  letter-spacing: -0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-height);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 76, 129, 0.08);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo-name span {
  color: var(--color-accent);
}

.logo-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-brand .logo-img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.site-footer .logo-mark {
  background: rgba(255, 255, 255, 0.12);
}

.site-footer .logo-name {
  color: #fff;
}

.site-footer .logo-name span {
  color: var(--color-accent-light);
}

.site-footer .logo-sub {
  color: rgba(255, 255, 255, 0.7);
}

body.lang-ta {
  font-family: var(--font-ta);
}

.header-inner > nav {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  flex: 1 1 auto;
}

.lang-switcher-desktop {
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
}

.lang-switcher {
  display: inline-flex;
  gap: 0.15rem;
  background: var(--color-bg);
  border-radius: 8px;
  padding: 0.2rem;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.4rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.nav-mobile .lang-switcher {
  margin-bottom: 1rem;
  align-self: flex-start;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-desktop a.btn {
  flex-shrink: 0;
}

body.lang-ta .nav-desktop {
  gap: 0.55rem;
}

body.lang-ta .nav-desktop a:not(.btn) {
  font-size: 0.8rem;
}

body.lang-ta .nav-desktop a.btn {
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
}

.nav-desktop a.active,
.nav-desktop a:hover {
  color: var(--color-primary);
}

.nav-desktop a.active {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary,
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary.active,
.nav-desktop a.btn-primary,
.nav-desktop a.btn-primary:hover,
.nav-desktop a.btn-primary.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
a.btn-primary:hover {
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-accent,
a.btn-accent,
a.btn-accent:hover,
a.btn-accent:focus {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover,
a.btn-accent:hover {
  background: var(--color-accent-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover,
a.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-primary);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 53, 89, 0.45);
  z-index: 1090;
}

.menu-backdrop.open {
  display: block;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  padding: 0.75rem 1rem 1.25rem;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 1110;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 16px 32px rgba(15, 76, 129, 0.18);
  max-height: calc(100vh - var(--header-height) - 1rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 0.95rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.nav-mobile a:active,
.nav-mobile a.active {
  background: rgba(15, 76, 129, 0.08);
  color: var(--color-primary);
  border-color: rgba(15, 76, 129, 0.2);
}

.nav-mobile a[href="contact.html"] {
  margin-top: 0.35rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff !important;
  text-align: center;
  border-color: transparent;
}

.nav-mobile a[href="contact.html"].active,
.nav-mobile a[href="contact.html"]:active {
  background: var(--color-primary-dark);
  color: #fff !important;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .zl-chat-root {
  visibility: hidden;
  pointer-events: none;
}

/* Hero — light Apple-style composition */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-text);
  background:
    radial-gradient(900px 480px at 80% 20%, rgba(0, 168, 150, 0.14), transparent 60%),
    radial-gradient(700px 420px at 10% 80%, rgba(15, 76, 129, 0.12), transparent 55%),
    linear-gradient(180deg, #fbfbfd 0%, #f0f3f7 55%, #e8eef4 100%);
  padding: 4.5rem 0 0;
  min-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(251, 251, 253, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(15, 76, 129, 0.08), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-bottom: 2.5rem;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1.1;
}

.hero-brand span {
  color: var(--color-accent);
}

.hero-badge {
  display: block;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.25rem);
  line-height: 1.05;
  margin: 0 auto 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 16ch;
  color: var(--color-text);
}

.hero-copy > p:not(.hero-brand) {
  font-size: 1.2rem;
  opacity: 1;
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero-actions .btn-outline {
  border-color: rgba(29, 29, 31, 0.18);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.55);
}

.hero-actions .btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent-light);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.25rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  color: var(--color-text);
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.45;
}

.section-label {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(0, 168, 150, 0.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0;
}

.card.has-photo {
  position: relative;
  padding: 0 0 1.5rem;
}

.card.has-photo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(160deg, rgba(10, 53, 89, 0.28) 0%, rgba(15, 76, 129, 0.12) 50%, rgba(0, 168, 150, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.card.has-photo h3 {
  margin: 1.15rem 1.5rem 0.75rem;
  position: relative;
  z-index: 2;
}

.card.has-photo p {
  margin: 0 1.5rem 0.75rem;
  position: relative;
  z-index: 2;
}

.card.has-photo .card-link,
.card.has-photo .service-list {
  margin: 0.5rem 1.5rem 0;
  position: relative;
  z-index: 2;
}

.card.has-photo .service-list {
  margin-bottom: 0;
}

.card-with-phone::after {
  /* Same wash height/treatment as other photo cards */
  height: 180px;
}

.card-phone-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  min-height: 180px;
  padding: 0;
  margin: 0;
  background:
    radial-gradient(240px 140px at 50% 30%, rgba(186, 164, 220, 0.5), transparent 65%),
    linear-gradient(180deg, #f1e9f8 0%, #e6dcf2 100%);
  overflow: hidden;
}

.card-phone-media .iphone-frame {
  --iphone-w: 128px;
  margin: 0;
  transform: translateY(18px);
}

.card-phone-media .iphone-3d {
  transform: translateY(18px) rotateY(-10deg) rotateX(4deg);
}

.card-phone-media .iphone-bezel {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 28px rgba(74, 58, 122, 0.2);
}

.photo-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-md);
}

.photo-panel img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-photo-wash);
  pointer-events: none;
}

.photo-panel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(10, 53, 89, 0.92));
  color: white;
  z-index: 1;
}

.photo-panel-caption h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.photo-panel-caption p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.hero-photo {
  position: relative;
  width: 100%;
  margin-top: auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  min-height: 0;
  animation: hero-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-photo img {
  width: 100%;
  height: clamp(260px, 42vw, 480px);
  min-height: 0;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.55) 0%, transparent 28%),
    linear-gradient(0deg, rgba(15, 76, 129, 0.28) 0%, transparent 42%);
  pointer-events: none;
}

.hero .container:has(+ .hero-photo),
.hero .hero-copy {
  max-width: var(--max-width);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Industries strip */
.industries-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.industry-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(0, 168, 150, 0.22), transparent 55%),
    linear-gradient(180deg, #0a3559 0%, #071f35 100%);
  color: #f5f5f7;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  display: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.cta-band p {
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(245, 245, 247, 0.82);
}

/* Page hero (inner pages) — light Apple-style */
.page-hero {
  background:
    radial-gradient(700px 320px at 70% 0%, rgba(0, 168, 150, 0.1), transparent 60%),
    radial-gradient(600px 280px at 20% 100%, rgba(15, 76, 129, 0.08), transparent 55%),
    linear-gradient(180deg, #fbfbfd 0%, #f0f3f7 100%);
  color: var(--color-text);
  padding: 4.5rem 0 3.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  display: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--color-text);
}

.page-hero p {
  opacity: 1;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.page-hero.has-bg {
  padding: 5rem 0 4rem;
}

.page-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.page-hero.has-bg::after {
  display: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero.bg-industries::before { background-image: url("../images/industries/office.jpg"); }
.page-hero.bg-about::before { background-image: url("../images/about/workspace.jpg"); }
.page-hero.bg-contact::before { background-image: url("../images/contact/handshake.jpg"); }
.page-hero.bg-services::before { background-image: url("../images/services/managed-it.jpg"); }
.page-hero.bg-smart-salon::before { background-image: url("../images/industries/salon.jpg"); }

/* Smart Salon product spotlight (home) + demo cards */
.product-spotlight {
  padding: 5.5rem 0;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(0, 168, 150, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.product-spotlight-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.product-spotlight .product-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.product-spotlight h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.85rem;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.product-spotlight .product-lead {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.product-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-spotlight-panel {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(40, 32, 56, 0.1);
  background: #fff;
}

.product-spotlight-panel > img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.product-spotlight-panel .panel-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.product-spotlight-panel .panel-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.product-spotlight-panel .panel-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.demo-url {
  margin: 0.75rem 0 1rem;
}

.demo-url code {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(122, 90, 168, 0.08);
  color: var(--color-primary-dark, #4a3a7a);
  font-size: 0.85rem;
  word-break: break-all;
}

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

/* Latest iPhone frame — show full uploaded screenshots (no side-crop) */
.iphone-frame {
  --iphone-w: 250px;
  --iphone-screen-radius: 1.85rem;
  --iphone-bezel-pad: 0.45rem;
  width: var(--iphone-w);
  max-width: min(100%, 280px);
  margin: 0 auto;
  text-align: center;
}

.iphone-frame-sm {
  --iphone-w: 205px;
  --iphone-screen-radius: 1.55rem;
  --iphone-bezel-pad: 0.4rem;
}

.iphone-frame-xs {
  --iphone-w: 155px;
  --iphone-screen-radius: 1.2rem;
  --iphone-bezel-pad: 0.32rem;
}

.iphone-bezel {
  position: relative;
  width: 100%;
  padding: var(--iphone-bezel-pad);
  border-radius: calc(var(--iphone-screen-radius) + var(--iphone-bezel-pad) + 0.15rem);
  background:
    linear-gradient(155deg, #3a3a3e 0%, #111114 38%, #2c2c30 72%, #0a0a0c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 22px 50px rgba(20, 16, 28, 0.28),
    0 8px 18px rgba(20, 16, 28, 0.18);
  overflow: hidden;
  box-sizing: border-box;
}

/* Screenshots already include the real status bar / Dynamic Island */
.iphone-island {
  display: none;
}

/* Screenshots are already real iPhone captures (≈472×1024) — never crop them */
.iphone-screen {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 472 / 1024;
  object-fit: contain;
  object-position: top center;
  border-radius: var(--iphone-screen-radius);
  background: #0b0b0d;
}

/* 3D perspective iPhone mockups */
.iphone-3d {
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.iphone-3d .iphone-bezel {
  transform: rotateY(-22deg) rotateX(8deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    -18px 28px 50px rgba(10, 8, 20, 0.35),
    -6px 10px 18px rgba(10, 8, 20, 0.2),
    12px 8px 24px rgba(0, 0, 0, 0.12);
}

.iphone-3d-right .iphone-bezel {
  transform: rotateY(22deg) rotateX(8deg) rotateZ(2deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    18px 28px 50px rgba(10, 8, 20, 0.35),
    6px 10px 18px rgba(10, 8, 20, 0.2),
    -12px 8px 24px rgba(0, 0, 0, 0.12);
}

.iphone-3d-hero .iphone-bezel {
  transform: rotateY(-26deg) rotateX(10deg) rotateZ(-3deg);
  animation: iphone-3d-float 5.5s ease-in-out infinite;
}

.iphone-3d-hero.iphone-3d-right .iphone-bezel {
  transform: rotateY(26deg) rotateX(10deg) rotateZ(3deg);
  animation-name: iphone-3d-float-right;
}

.iphone-3d:hover .iphone-bezel {
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(-1deg);
}

.iphone-3d-right:hover .iphone-bezel,
.iphone-3d-hero.iphone-3d-right:hover .iphone-bezel {
  transform: rotateY(14deg) rotateX(4deg) rotateZ(1deg);
}

@keyframes iphone-3d-float {
  0%, 100% { transform: rotateY(-26deg) rotateX(10deg) rotateZ(-3deg) translateY(0); }
  50% { transform: rotateY(-22deg) rotateX(8deg) rotateZ(-2deg) translateY(-10px); }
}

@keyframes iphone-3d-float-right {
  0%, 100% { transform: rotateY(26deg) rotateX(10deg) rotateZ(3deg) translateY(0); }
  50% { transform: rotateY(22deg) rotateX(8deg) rotateZ(2deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .iphone-3d-hero .iphone-bezel,
  .iphone-3d-hero.iphone-3d-right .iphone-bezel {
    animation: none;
  }
}

.iphone-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.product-phone-section {
  padding: 4.5rem 0;
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(122, 90, 168, 0.1), transparent 55%),
    radial-gradient(640px 280px at 90% 20%, rgba(0, 168, 150, 0.08), transparent 50%),
    var(--color-surface, #f7f5f8);
}

.phone-app-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 2rem 2.5rem;
  align-items: center;
  margin-top: 2.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
}

.phone-app-block:first-of-type {
  border-top: 0;
  margin-top: 1rem;
}

.phone-app-block.reverse {
  grid-template-columns: 1.15fr minmax(220px, 0.85fr);
}

.phone-app-block.reverse .phone-app-copy { order: 2; }
.phone-app-block.reverse .phone-pair { order: 1; }

.phone-app-copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0.35rem 0 0.75rem;
}

.phone-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.5rem;
  padding: 0.75rem 1.25rem 1.5rem;
  overflow: visible;
}

.salon-hero-phone,
.salon-demo-loop-phone,
.about-phone-wrap {
  overflow: visible;
  padding: 1rem 1.5rem 1.5rem;
}

.demo-phone-card,
.feature-phone-card {
  text-align: center;
  padding-top: 1.5rem;
}

.demo-phone-card h3,
.feature-phone-card h3 {
  margin-top: 1.15rem;
}

.demo-phone-card p,
.feature-phone-card p,
.demo-phone-card .demo-url,
.demo-phone-card .card-link {
  text-align: left;
}

.product-spotlight-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 1.25rem 0;
  overflow: visible;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(122, 90, 168, 0.14), transparent 60%),
    linear-gradient(180deg, #1c1724 0%, #2a2234 55%, #f7f5f8 55%);
}

.product-spotlight-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem 1rem;
  width: 100%;
  padding: 0.5rem 0.75rem 1.25rem;
  overflow: visible;
}

.product-spotlight-phone .iphone-frame {
  --iphone-w: 168px;
  margin-bottom: 0;
}

.product-spotlight-phone .iphone-frame:first-child {
  --iphone-w: 190px;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.product-spotlight-phone .iphone-screen {
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.product-spotlight-phone .panel-body {
  width: 100%;
  background: #fff;
  border-radius: 0 0 1.2rem 1.2rem;
}

.about-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}


.product-feature-grid .card-image.product-shot,
.product-demo-grid .card-image.product-shot {
  height: 220px;
  object-position: top center;
}

.product-spotlight-panel img {
  object-position: top center;
}

@media (max-width: 900px) {
  .product-spotlight-inner {
    grid-template-columns: 1fr;
  }

  .product-demo-grid {
    grid-template-columns: 1fr;
  }

  .phone-app-block,
  .phone-app-block.reverse {
    grid-template-columns: 1fr;
  }

  .phone-app-block.reverse .phone-app-copy,
  .phone-app-block.reverse .phone-pair {
    order: initial;
  }

  .iphone-frame { --iphone-w: 220px; }
  .iphone-frame-sm { --iphone-w: 190px; }
}

/* Smart Salon marketing upgrades */
.salon-hero {
  text-align: left;
}

.salon-hero .salon-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.salon-hero-copy .hero-badge {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  padding: 0;
  font-weight: 500;
}

.salon-hero-copy h1 {
  max-width: 12ch;
}

.salon-hero-copy .hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.salon-hero-phone {
  display: flex;
  justify-content: center;
}

.salon-hero-phone .iphone-frame {
  --iphone-w: 250px;
  filter: drop-shadow(0 28px 50px rgba(15, 76, 129, 0.18));
}

.salon-demo-loop-section {
  padding: 4rem 0;
  background:
    radial-gradient(600px 280px at 80% 20%, rgba(0, 168, 150, 0.12), transparent 55%),
    #111827;
  color: #f5f5f7;
}

.salon-demo-loop-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.salon-demo-loop-copy .section-label { color: #c4b0d8; }
.salon-demo-loop-copy h2 { color: #fff; margin-bottom: 0.75rem; }
.salon-demo-loop-copy p { color: rgba(247, 244, 250, 0.78); }

.demo-loop-caption {
  margin-top: 1.25rem;
  font-weight: 600;
  color: #e8d9ff !important;
  min-height: 3rem;
}

.demo-loop-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1rem;
}

.demo-loop-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.demo-loop-dots span.is-active {
  background: #c4b0d8;
  transform: scale(1.15);
}

.salon-demo-loop-phone .iphone-frame {
  --iphone-w: 240px;
}

.salon-demo-loop-phone,
.salon-hero-phone {
  align-self: center;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.how-step {
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  position: relative;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-dark, #2a2434);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.how-step h3 { margin: 1rem 0 0.5rem; font-size: 1.15rem; }
.how-step p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

.salon-outcomes-section {
  padding: 4rem 0;
  background: var(--color-surface);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.outcome-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
}

.outcome-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.outcome-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.salon-qr-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 2rem;
}

.salon-qr-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background:
    radial-gradient(280px 160px at 50% 0%, rgba(122, 90, 168, 0.12), transparent 70%),
    #fff;
}

.salon-qr-card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 1rem;
  background: #fff;
  border-radius: 0.75rem;
}

.salon-qr-card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.salon-qr-card p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

.salon-ai-section {
  padding: 4rem 0;
  background: var(--color-surface);
}

.ai-compare-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

.ai-compare-block {
  text-align: center;
}

.ai-compare-label {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark, #4a3a7a);
}

.ai-compare {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
}

.ai-compare figure {
  margin: 0;
  width: min(42vw, 280px);
  flex: 0 1 280px;
  text-align: center;
}

@media (max-width: 600px) {
  .ai-compare {
    gap: 0.5rem 0.65rem;
  }

  .ai-compare figure {
    width: min(40vw, 160px);
    flex-basis: 160px;
  }

  .ai-compare-arrow {
    font-size: 1.25rem;
  }
}

.ai-compare img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
}

.ai-compare figcaption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.ai-compare-arrow {
  font-size: 1.75rem;
  color: var(--color-primary-dark, #4a3a7a);
  font-weight: 700;
}

.ai-compare-note {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--color-text-muted);
}

.salon-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 48rem;
}

.salon-feature-list li {
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.salon-feature-list strong {
  color: var(--color-text, #1c1624);
}

.roof-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.roof-feature-card {
  text-align: center;
  padding: 1.25rem 1rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 1rem);
  background: #fff;
}

.roof-feature-card .iphone-frame {
  margin-bottom: 0.85rem;
}

.roof-feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.roof-feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .roof-feature-grid {
    grid-template-columns: 1fr;
  }
}

.salon-pricing-section {
  padding: 4rem 0;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(0, 168, 150, 0.08), transparent 55%),
    var(--color-surface);
}

.salon-pricing-inner { text-align: center; }

.salon-pricing-inner > div:first-child {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  text-align: left;
  margin-bottom: 1.25rem;
}

.pricing-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: #fff;
}

.pricing-card-featured {
  border-color: rgba(122, 90, 168, 0.45);
  box-shadow: 0 16px 36px rgba(40, 32, 56, 0.1);
  background:
    linear-gradient(180deg, rgba(122, 90, 168, 0.08), transparent 55%),
    #fff;
}

.pricing-meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark, #4a3a7a);
  margin: 0.35rem 0 0.75rem;
}

.pricing-footnote {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.salon-proof-section { padding: 4rem 0; }

.salon-proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.salon-quote {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--color-primary, #7a5aa8);
  background: rgba(122, 90, 168, 0.06);
  font-size: 1.05rem;
  color: var(--color-text, #1c1624);
}

.salon-quote-attr {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.sticky-demo-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(22, 19, 28, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.sticky-demo-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #f7f4fa;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

body.has-sticky-demo { padding-bottom: 0; }

@media (max-width: 900px) {
  .salon-hero .salon-hero-grid,
  .salon-demo-loop-inner,
  .salon-qr-grid,
  .salon-proof-grid,
  .how-steps,
  .outcomes-grid,
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .salon-hero-phone { order: -1; }
  .salon-hero-phone .iphone-frame { --iphone-w: 220px; }

  .sticky-demo-bar { display: block; }
  body.has-sticky-demo { padding-bottom: 4.5rem; }
}

/* Services detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-content h3 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
  font-size: 0.95rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.service-detail-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(0, 168, 150, 0.12));
  box-shadow: var(--shadow-md);
}

.service-detail-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-detail:hover .service-detail-visual img {
  transform: scale(1.04);
}

.service-detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-photo-wash);
  pointer-events: none;
}

/* Web & mobile development service showcase */
.service-detail-dev {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem 2.5rem;
}

/* Keep content left / visual right even if this block is an even child */
.service-detail.service-detail-dev:nth-child(even) {
  direction: ltr;
}

.service-detail.service-detail-dev:nth-child(even) > * {
  direction: ltr;
}

.service-detail-dev .service-detail-content,
.service-detail-dev .service-dev-phones,
.service-detail-dev .service-web-visual {
  align-self: center;
}

.service-web-visual {
  padding: 0.85rem;
  background:
    radial-gradient(380px 200px at 50% 15%, rgba(45, 160, 160, 0.18), transparent 60%),
    linear-gradient(165deg, #1a2430 0%, #243447 100%);
}

.service-web-visual img {
  object-fit: cover;
  object-position: top center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.service-web-visual::after {
  display: none;
}

.service-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.service-dev-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
  padding: 0.5rem 0.25rem 0.75rem;
  overflow: visible;
  min-height: 0;
  background: transparent;
  box-shadow: none;
}

.service-dev-phones::after {
  display: none;
}

.service-dev-phones .iphone-frame {
  --iphone-w: 118px;
}

.service-dev-phones .iphone-frame figcaption {
  margin-top: 0.55rem;
  color: var(--color-text-muted);
}

.service-dev-demos {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 1.75rem 0 0.25rem;
  border-top: 1px solid var(--color-border);
}

.service-dev-demos-head {
  margin-bottom: 1.25rem;
}

.service-dev-demos-head h4 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.service-dev-demos-head p {
  margin: 0;
  color: var(--color-text-muted);
}

.dev-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

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

.dev-demo-grid-mobile .dev-demo-media {
  min-height: 220px;
  padding: 1.35rem 0.75rem 1.5rem;
  overflow: visible;
  background: transparent;
}

.dev-demo-grid-mobile .dev-demo-media .iphone-frame {
  --iphone-w: 118px;
}

.dev-demo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dev-demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(40, 32, 56, 0.1);
  color: inherit;
}

.dev-demo-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 1rem 0.75rem;
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(122, 90, 168, 0.12), transparent 65%),
    #16131c;
}

.dev-demo-media .iphone-frame {
  --iphone-w: 108px;
}

.dev-demo-media.browser-frame {
  padding: 0.85rem;
}

.dev-demo-media.browser-frame img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 0;
  max-height: none;
  transform: none !important;
}

.dev-demo-body {
  padding: 1rem 1.1rem 1.15rem;
}

.dev-demo-tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark, #4a3a7a);
}

.dev-demo-body h5 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.dev-demo-body p {
  margin: 0 0 0.65rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

@media (max-width: 1000px) {
  .dev-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .service-detail-dev {
    grid-template-columns: 1fr;
  }

  .dev-demo-grid,
  .dev-demo-grid-mobile {
    grid-template-columns: 1fr;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: white;
  text-align: center;
}

.about-visual .logo-mark {
  width: 80px;
  height: 80px;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
}

.about-visual.about-visual-photo {
  padding: 0;
  background: none;
  text-align: left;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.about-visual.about-visual-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.about-visual.about-visual-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-photo-wash);
  pointer-events: none;
}

.about-visual.about-visual-photo .about-visual-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(10, 53, 89, 0.94));
  color: white;
  text-align: center;
  z-index: 1;
}

.contact-side-photo {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.contact-side-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.contact-side-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-photo-wash);
  pointer-events: none;
}

.industry-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.industry-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.industry-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.industry-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0.2), rgba(10, 53, 89, 0.78));
  pointer-events: none;
}

.industry-preview span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.75rem;
  background: transparent;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

@media (max-width: 900px) {
  .industry-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.value-card .card-icon {
  margin: 0 auto 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info h3 {
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 76, 129, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-form {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

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

.form-success {
  display: none;
  background: rgba(0, 168, 150, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-primary-dark);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--color-bg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.2s;
  color: var(--color-accent);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Quote CTA */
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .service-detail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .hero {
    min-height: 0;
    padding-top: 3.25rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero-photo img {
    height: clamp(220px, 52vw, 340px);
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Phones only: hamburger menu */
@media (max-width: 767px) {
  .header-inner > nav {
    display: none !important;
  }

  .nav-desktop {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.45rem;
  }

  .logo-sub {
    display: none;
  }

  .logo-name {
    font-size: 1.05rem;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .lang-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }

  .nav-mobile .lang-switcher {
    display: none;
  }

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

/* Tablet & desktop: full tabs, no hamburger */
@media (min-width: 768px) {
  .header-inner > nav {
    display: flex !important;
  }

  .nav-desktop {
    display: flex !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  section {
    padding: 3.5rem 0;
  }
}

/* RoofLead product page — latest iPad Pro + screenshot drop slots */
.page-hero.bg-rooflead::before { background-image: url("../images/industries/trades.jpg"); }

.roof-hero-grid {
  align-items: center;
}

.roof-hero-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  min-height: 320px;
}

.roof-hero-devices .ipad-frame {
  --ipad-w: 320px;
  z-index: 1;
}

.roof-hero-devices .iphone-frame {
  --iphone-w: 168px;
  z-index: 2;
  margin-bottom: 0.35rem;
}

.roof-demo-loop-section {
  background:
    radial-gradient(600px 280px at 80% 20%, rgba(232, 112, 46, 0.18), transparent 55%),
    #1a1410;
}

.roof-demo-loop-section .salon-demo-loop-copy .section-label { color: #f3c4a4; }
.roof-demo-loop-section .demo-loop-caption { color: #ffd7bc !important; }
.roof-demo-loop-section .demo-loop-dots span.is-active { background: #e8702e; }

.product-spotlight-roof {
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(232, 112, 46, 0.1), transparent 55%),
    linear-gradient(180deg, #fffaf6 0%, var(--color-bg) 100%);
}

.product-spotlight-roof .product-kicker { color: #c45a1a; }

.product-spotlight-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem 1.1rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(232, 112, 46, 0.16), transparent 60%),
    linear-gradient(180deg, #2a1c14 0%, #3a2618 55%, #fffaf6 55%);
}

.product-spotlight-devices .ipad-frame { --ipad-w: 240px; }
.product-spotlight-devices .iphone-frame { --iphone-w: 118px; margin-bottom: 0.2rem; }

.ipad-frame {
  --ipad-w: 420px;
  --ipad-screen-radius: 0.55rem;
  --ipad-bezel-pad-y: 0.5rem;
  --ipad-bezel-pad-x: 0.5rem;
  --ipad-shell-radius: calc(var(--ipad-screen-radius) + 0.42rem);
  position: relative;
  width: var(--ipad-w);
  max-width: min(100%, 640px);
  margin: 0 auto;
  text-align: center;
}

.ipad-frame-sm {
  --ipad-w: 320px;
  --ipad-screen-radius: 0.48rem;
  --ipad-bezel-pad-y: 0.42rem;
  --ipad-bezel-pad-x: 0.42rem;
}

.ipad-frame-xs {
  --ipad-w: 220px;
  --ipad-screen-radius: 0.4rem;
  --ipad-bezel-pad-y: 0.34rem;
  --ipad-bezel-pad-x: 0.34rem;
}

.ipad-frame::before,
.ipad-frame::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, #efe4f6 0%, #c4a8d6 48%, #8a6aa8 100%);
  box-shadow:
    0 0 0 1px rgba(244, 232, 252, 0.5) inset,
    0 1px 2px rgba(56, 32, 80, 0.28);
}

.ipad-frame::before {
  top: -0.14rem;
  left: 18%;
  width: 1.35rem;
  height: 0.13rem;
  border-radius: 0.08rem;
  box-shadow:
    0 0 0 1px rgba(244, 232, 252, 0.5) inset,
    1.7rem 0 0 0 #c4a8d6,
    1.7rem 1px 2px rgba(56, 32, 80, 0.25);
}

.ipad-frame::after {
  top: 28%;
  right: -0.13rem;
  width: 0.13rem;
  height: 1.05rem;
  border-radius: 0.08rem;
}

.ipad-bezel {
  position: relative;
  width: 100%;
  padding: var(--ipad-bezel-pad-y) var(--ipad-bezel-pad-x);
  border-radius: var(--ipad-shell-radius);
  background:
    linear-gradient(148deg, #f7eefc 0%, #e4d0f0 14%, #c4a8d6 36%, #efe4f6 54%, #b090c8 72%, #8a6aa8 88%, #d8c0e8 100%);
  box-shadow:
    0 0 0 1px rgba(247, 238, 252, 0.8) inset,
    0 0 0 2px rgba(80, 48, 112, 0.16) inset,
    0 1px 0 rgba(244, 232, 252, 0.6);
  overflow: visible;
  box-sizing: border-box;
}

.ipad-bezel::before {
  content: "";
  position: absolute;
  inset: calc(var(--ipad-bezel-pad-y) - 0.07rem) calc(var(--ipad-bezel-pad-x) - 0.07rem);
  border-radius: calc(var(--ipad-screen-radius) + 0.08rem);
  background: #0b0b0d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.ipad-camera {
  position: absolute;
  top: 0.16rem;
  left: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 32% 28%, #c9d4e0 0 10%, #2a3138 34%, #0a0c0e 68%, #050506 100%);
  box-shadow:
    0 0 0 1.5px #e4d0f0,
    0 0 0 2.5px #b090c8,
    inset 0 1px 1px rgba(247, 238, 252, 0.45);
  z-index: 3;
}

.ipad-camera::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 28%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.ipad-screen {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: top center;
  border-radius: var(--ipad-screen-radius);
  background: #f4f1ec;
  vertical-align: top;
}

.shot-slot-tablet {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--ipad-screen-radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.shot-slot-tablet .ipad-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
}

.shot-slot-tablet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 28%, transparent 46%);
  pointer-events: none;
  z-index: 2;
}

.ipad-3d {
  perspective: 1600px;
  perspective-origin: 50% 40%;
}

.ipad-3d .ipad-bezel {
  transform: rotateY(-9deg) rotateX(4deg) rotateZ(-0.6deg);
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
  box-shadow:
    0 0 0 1px rgba(247, 238, 252, 0.8) inset,
    0 0 0 1px rgba(80, 48, 112, 0.14) inset,
    3px 2px 0 0 #d4bce4,
    4px 3px 0 0 #9a78b4,
    -8px 18px 28px rgba(56, 32, 80, 0.16),
    0 8px 16px rgba(56, 32, 80, 0.08);
}

.ipad-3d-right .ipad-bezel {
  transform: rotateY(9deg) rotateX(4deg) rotateZ(0.6deg);
  box-shadow:
    0 0 0 1px rgba(247, 238, 252, 0.8) inset,
    0 0 0 1px rgba(80, 48, 112, 0.14) inset,
    -3px 2px 0 0 #d4bce4,
    -4px 3px 0 0 #9a78b4,
    8px 18px 28px rgba(56, 32, 80, 0.16),
    0 8px 16px rgba(56, 32, 80, 0.08);
}

.ipad-3d-hero .ipad-bezel {
  transform: rotateY(-10deg) rotateX(5deg) rotateZ(-0.7deg);
  animation: ipad-3d-float 6s ease-in-out infinite;
}

.ipad-3d:hover .ipad-bezel {
  transform: rotateY(-6deg) rotateX(3deg);
}

.ipad-3d-right:hover .ipad-bezel,
.ipad-3d-hero.ipad-3d-right:hover .ipad-bezel {
  transform: rotateY(6deg) rotateX(3deg);
}

@keyframes ipad-3d-float {
  0%, 100% { transform: rotateY(-10deg) rotateX(5deg) rotateZ(-0.7deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(4deg) rotateZ(-0.4deg) translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .ipad-3d-hero .ipad-bezel { animation: none; }
}

.ipad-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tablet-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  align-items: start;
}

.tablet-pair .ipad-frame { --ipad-w: 100%; max-width: 100%; }

.shot-slot {
  position: relative;
  isolation: isolate;
}

.shot-slot img {
  position: relative;
  z-index: 1;
}

.shot-slot img.is-missing {
  display: none;
}

.shot-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1.25rem 0.85rem;
  text-align: center;
  color: #f7efe8;
  background:
    radial-gradient(180px 120px at 80% 0%, rgba(232, 112, 46, 0.35), transparent 60%),
    linear-gradient(180deg, #2c1c14 0%, #1a120e 100%);
}

.shot-slot-phone .shot-fallback {
  aspect-ratio: 472 / 1024;
  border-radius: var(--iphone-screen-radius);
}

.shot-slot-tablet .shot-fallback {
  aspect-ratio: 4 / 3;
  border-radius: var(--ipad-screen-radius);
}

.shot-slot:has(img.is-missing) .shot-fallback,
.shot-slot:has(img:not([src])) .shot-fallback {
  display: flex;
}

.shot-fallback .shot-app {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8702e;
}

.shot-fallback strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.shot-fallback em {
  font-size: 0.72rem;
  font-style: normal;
  color: rgba(247, 239, 232, 0.62);
}

.roof-proof-devices .ipad-frame { --ipad-w: 300px; }

@media (max-width: 900px) {
  .roof-hero-devices {
    flex-wrap: wrap;
  }

  .roof-hero-devices .ipad-frame { --ipad-w: min(100%, 320px); }
  .roof-hero-devices .iphone-frame { --iphone-w: 150px; }

  .tablet-pair {
    grid-template-columns: 1fr;
  }

  .ipad-frame { --ipad-w: min(100%, 360px); }

  .ipad-frame-xs::before,
  .ipad-frame-xs::after {
    display: none;
  }
}
