/* ==========================================================================
   Phonesia — shared stylesheet
   Smartphone brand multi-page static site scaffold
   ========================================================================== */

:root {
  /* Brand palette */
  --primary: #6D28D9;
  --primary-2: #7C3AED;
  --dark: #4C1D95;
  --accent: #F59E0B;
  --accent-2: #FBBF24;
  --blue: #3B82F6;

  --grad: linear-gradient(135deg, #3B82F6 0%, #6D28D9 55%, #4C1D95 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(109, 40, 217, 0.14));

  /* Surfaces & text (light) */
  --bg: #f7f5ff;
  --bg-alt: #efeafb;
  --surface: #ffffff;
  --surface-2: #fbfaff;
  --text: #16122b;
  --text-soft: #4b4563;
  --muted: #7a7493;
  --border: rgba(109, 40, 217, 0.14);

  --shadow: 0 10px 30px rgba(76, 29, 149, 0.08);
  --shadow-lg: 0 24px 60px rgba(76, 29, 149, 0.16);
  --glow: 0 0 0 1px rgba(109, 40, 217, 0.06), 0 18px 48px rgba(109, 40, 217, 0.16);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --nav-height: 76px;
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0d0916;
  --bg-alt: #120d20;
  --surface: #161026;
  --surface-2: #1c1430;
  --text: #f4f1ff;
  --text-soft: #cbc4e4;
  --muted: #9d94bd;
  --border: rgba(245, 158, 11, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(109, 40, 217, 0.25), 0 18px 48px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 72px;
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head .section-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-lead {
  color: var(--text-soft);
  max-width: 640px;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--grad);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

.preloader-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Particles background
   -------------------------------------------------------------------------- */
.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particles-bg canvas {
  display: block;
}

main {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Custom cursor
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}

body.has-cursor {
  cursor: none;
}

body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select,
body.has-cursor .card {
  cursor: none;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--primary-2);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.cursor-ring.is-hovering {
  width: 58px;
  height: 58px;
  border-color: var(--accent);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --------------------------------------------------------------------------
   Navbar (glassmorphism)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(13, 9, 22, 0.72);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.logo-horizontal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.logo-horizontal .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-horizontal .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-horizontal .brand-tagline {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--grad-soft);
}

.nav-link.active {
  color: var(--primary);
  background: var(--grad-soft);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding-top: calc(var(--nav-height) + 26px);
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--muted);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.current {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb-sep {
  color: var(--border);
  user-select: none;
}

/* --------------------------------------------------------------------------
   Buttons & badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.32);
}

.btn-accent {
  background: var(--accent);
  color: #241500;
}

.btn-accent:hover {
  color: #241500;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.btn-whatsapp {
  background: #25D366;
  color: #04240f;
}

.btn-whatsapp:hover {
  color: #04240f;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.card-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grad-soft);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Homepage hero
   -------------------------------------------------------------------------- */
.home-hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.18), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(109, 40, 217, 0.22), transparent 45%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.home-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 22px 0 8px;
}

.home-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-desc {
  color: var(--text-soft);
  max-width: 520px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 40px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.home-hero-media {
  position: relative;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glow);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.hero-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  font-weight: 600;
  animation: floaty 5s ease-in-out infinite;
}

.hero-float.f1 { top: 28px; left: -18px; }
.hero-float.f2 { bottom: 34px; right: -14px; animation-delay: 1.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   Card grids (blog & category)
   -------------------------------------------------------------------------- */
.blog-grid,
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(109, 40, 217, 0.35);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-media .card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(22, 18, 43, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.3;
}

.card-title a {
  color: var(--text);
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-link {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 44px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(109, 40, 217, 0.16), transparent 50%),
    radial-gradient(circle at 10% 30%, rgba(245, 158, 11, 0.12), transparent 40%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
}

.page-header h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin: 16px 0 10px;
}

.page-header p {
  color: var(--text-soft);
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Article hero & body
   -------------------------------------------------------------------------- */
.article-hero {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(109, 40, 217, 0.2), transparent 55%);
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.article-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin: 18px 0 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}

.article-layout {
  max-width: 820px;
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 34px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  font-size: 1.06rem;
  color: var(--text);
}

.article-body p {
  margin-bottom: 22px;
  color: var(--text-soft);
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 38px 0 16px;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px 24px;
  color: var(--text-soft);
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
  box-shadow: var(--shadow);
}

.article-body img {
  border-radius: var(--radius);
  margin: 28px 0;
}

/* --------------------------------------------------------------------------
   Content / legal pages
   -------------------------------------------------------------------------- */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 34px 0 14px;
}

.prose p {
  color: var(--text-soft);
  margin-bottom: 18px;
}

.prose ul {
  list-style: disc;
  margin: 0 0 18px 24px;
  color: var(--text-soft);
}

.prose li {
  margin-bottom: 8px;
}

.prose .updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Forms (contact / advertise)
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px;
  max-width: 640px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}

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

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-info-item strong {
  display: block;
}

.contact-info-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.pagination button.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 90px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 64px 44px;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 18px;
  max-width: 300px;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.82rem;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.socials a:hover {
  transform: translateY(-3px);
  background: var(--grad);
  color: #fff;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Sitemap
   -------------------------------------------------------------------------- */
.sitemap-section {
  margin-bottom: 38px;
}

.sitemap-section h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}

.sitemap-grid a {
  color: var(--text-soft);
  padding: 6px 0;
}

.sitemap-grid a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Logo showcase (logo-horizontal.html)
   -------------------------------------------------------------------------- */
.logo-showcase {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
}

.logo-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  text-align: center;
}

.logo-scale-sm .brand-logo { width: 40px; height: 40px; }
.logo-scale-sm .brand-name { font-size: 1.15rem; }

.logo-scale-md .brand-logo { width: 56px; height: 56px; }
.logo-scale-md .brand-name { font-size: 1.6rem; }

.logo-scale-lg .brand-logo { width: 88px; height: 88px; }
.logo-scale-lg .brand-name { font-size: 2.6rem; }
.logo-scale-lg .brand-tagline { font-size: 0.85rem; }

.logo-files {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.logo-file {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.logo-file img {
  margin: 0 auto 12px;
}

.logo-file span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-frame img {
    height: 320px;
  }

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

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

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

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

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 14px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

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

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
  }

  .nav-link.active::after {
    left: auto;
    right: 14px;
    top: 50%;
    bottom: auto;
    width: 20px;
    height: 2px;
    transform: translateY(-50%);
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 620px) {
  .section {
    padding-block: 52px;
  }

  .blog-grid,
  .cat-grid,
  .footer-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-float {
    display: none;
  }

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

  .form-card {
    padding: 24px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Accessibility / motion
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: var(--accent);
  color: #241500;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
