/*-----------------------------------*\
  Graphic Hub — Digital Agency Website
\*-----------------------------------*/

:root {
  --brand-navy: hsl(220, 30%, 18%);
  --brand-tan: hsl(35, 28%, 72%);
  --brand-tan-dark: hsl(35, 22%, 55%);
  --brand-accent: hsl(24, 74%, 58%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);

  --ff-heading: "Playfair Display", Georgia, serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-logo: "Saira Stencil One", sans-serif;

  --fs-hero: clamp(2rem, 4vw + 1rem, 3.25rem);
  --fs-title: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  --fs-sub: 1.05rem;

  --transition: 0.25s ease;
  --radius: 12px;
  --radius-lg: 20px;
  --section-pad: 90px;
  --container: 1140px;
}

body.dark_theme {
  --bg-primary: hsl(220, 18%, 10%);
  --bg-secondary: hsl(220, 16%, 14%);
  --bg-card: hsl(220, 14%, 17%);
  --text-primary: hsl(0, 0%, 96%);
  --text-secondary: hsl(220, 8%, 68%);
  --border: hsl(220, 10%, 22%);
  --shadow: 0 12px 40px hsla(0, 0%, 0%, 0.35);
  --input-bg: hsl(220, 14%, 16%);
}

body.light_theme {
  --bg-primary: hsl(40, 20%, 97%);
  --bg-secondary: var(--white);
  --bg-card: var(--white);
  --text-primary: hsl(220, 25%, 14%);
  --text-secondary: hsl(220, 10%, 42%);
  --border: hsl(35, 18%, 85%);
  --shadow: 0 12px 40px hsla(220, 20%, 20%, 0.08);
  --input-bg: hsl(40, 15%, 95%);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--ff-body);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

.header,
.footer,
.stats,
.services,
.process,
.cta-banner,
.service-card,
.why-card,
.contact-form,
.portfolio-overview-card,
.theme-btn {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

body.active { overflow: hidden; }

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

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

ul { list-style: none; }

address { font-style: normal; }

ion-icon { display: block; pointer-events: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
}

button { cursor: pointer; }

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

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

.section-label {
  color: var(--brand-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-title);
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 18px;
}

.section-text {
  color: var(--text-secondary);
  font-size: var(--fs-sub);
  max-width: 620px;
}

.center { text-align: center; }

.center-text {
  margin-inline: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-full { width: 100%; }

.btn-primary {
  background: var(--brand-accent);
  color: var(--white);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.btn-light {
  background: var(--white);
  color: var(--brand-navy);
}

.btn-light:hover { background: var(--brand-tan); }

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-block: 16px;
  transition: var(--transition);
}

.header.active {
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
  padding-block: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--ff-logo);
  font-size: 1.65rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo span {
  display: inline;
  color: var(--brand-accent);
}

.footer-logo-text {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.navbar-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.navbar-link:hover { color: var(--brand-accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta { display: none; }

.theme-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 62px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 6px;
  flex-shrink: 0;
}

.theme-icon {
  font-size: 14px;
  z-index: 1;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.theme-icon-moon { color: var(--brand-accent); opacity: 1; }
.theme-icon-sun { color: var(--text-secondary); opacity: 0.45; }

.theme-btn.active .theme-icon-moon { opacity: 0.45; color: var(--text-secondary); }
.theme-btn.active .theme-icon-sun { opacity: 1; color: var(--brand-accent); }

.theme-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.2);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}

.theme-btn.active .theme-thumb {
  transform: translateX(30px);
  background: var(--brand-tan);
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.nav-toggle-btn.active .one { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle-btn.active .two { opacity: 0; }
.nav-toggle-btn.active .three { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, hsla(35, 28%, 72%, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, hsla(24, 74%, 58%, 0.08) 0%, transparent 50%),
    var(--bg-primary);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-block: 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--brand-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-visual-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-wordmark {
  font-family: var(--ff-logo);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--text-primary);
  text-align: center;
  animation: float 4s ease-in-out infinite;
}

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

.hero-wordmark-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
}

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

/* Stats */

.stats {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
  padding-block: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  color: var(--brand-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-wordmark {
  font-family: var(--ff-logo);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  text-align: center;
}

.about-wordmark span {
  display: inline;
  color: var(--brand-accent);
}

.about-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-features ion-icon {
  color: var(--brand-accent);
  font-size: 22px;
  flex-shrink: 0;
}

/* Services */

.services { background: var(--bg-secondary); }

.section-header { margin-bottom: 50px; }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-accent);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: hsla(24, 74%, 58%, 0.12);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-icon-wrap ion-icon {
  font-size: 26px;
  color: var(--brand-accent);
}

.service-title {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Why */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.why-card ion-icon {
  font-size: 36px;
  color: var(--brand-accent);
  margin: 0 auto 16px;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Portfolio Overview */

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

.portfolio-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.portfolio-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-accent);
}

.portfolio-overview-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.portfolio-overview-icon ion-icon {
  font-size: 28px;
  color: var(--white);
}

.portfolio-overview-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.portfolio-overview-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}

.portfolio-overview-link {
  color: var(--brand-accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.portfolio-overview-cta {
  background: linear-gradient(135deg, var(--brand-navy), hsl(220, 25%, 25%));
  border-color: transparent;
}

.portfolio-overview-cta h3,
.portfolio-overview-cta .portfolio-overview-link {
  color: var(--white);
}

.portfolio-overview-cta p {
  color: hsla(0, 0%, 100%, 0.75);
}

.portfolio-note {
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.portfolio-note a {
  color: var(--brand-accent);
  font-weight: 600;
}

.portfolio-note a:hover { text-decoration: underline; }

/* Legacy category styles (kept for gradients) */

.portfolio-group {
  margin-bottom: 60px;
}

.portfolio-group:last-child {
  margin-bottom: 0;
}

.portfolio-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.portfolio-group-header > ion-icon {
  font-size: 32px;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.portfolio-group-title {
  font-family: var(--ff-heading);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.portfolio-group-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

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

.category-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-img img {
  transform: scale(1.05);
}

.category-body {
  padding: 20px;
}

.category-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.category-body p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.category-card-app .category-body {
  padding: 22px 20px 24px;
}

.category-icon-head {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.category-icon-head ion-icon {
  font-size: 52px;
  color: var(--white);
}

.app-health { background: linear-gradient(135deg, hsl(168, 65%, 38%), hsl(168, 55%, 28%)); }
.app-taxi { background: linear-gradient(135deg, hsl(210, 70%, 45%), hsl(220, 60%, 32%)); }
.app-ecommerce { background: linear-gradient(135deg, hsl(24, 74%, 58%), hsl(18, 65%, 42%)); }
.app-ai { background: linear-gradient(135deg, hsl(270, 55%, 52%), hsl(260, 45%, 38%)); }
.app-admin { background: linear-gradient(135deg, hsl(220, 30%, 28%), hsl(220, 25%, 18%)); }
.app-web { background: linear-gradient(135deg, hsl(195, 70%, 42%), hsl(200, 55%, 30%)); }
.app-custom { background: linear-gradient(135deg, hsl(35, 55%, 48%), hsl(30, 45%, 35%)); }

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-tags li {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

.category-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-navy), hsl(220, 25%, 25%));
  border-color: transparent;
}

.category-cta-inner {
  text-align: center;
  padding: 32px 24px;
}

.category-cta-inner ion-icon {
  font-size: 40px;
  color: var(--brand-tan);
  margin: 0 auto 16px;
}

.category-cta-inner h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.category-cta-inner p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* Process */

.process { background: var(--bg-secondary); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2rem;
  color: var(--brand-accent);
  opacity: 0.5;
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* CTA Banner */

.cta-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, hsl(220, 28%, 28%) 100%);
  padding-block: 60px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--white);
  margin-bottom: 8px;
}

.cta-inner p {
  color: hsla(0, 0%, 100%, 0.75);
  font-size: 1rem;
}

/* Contact */

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

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-details li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-details ion-icon {
  font-size: 24px;
  color: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-details strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-details a,
.contact-details address {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.contact-details a:hover { color: var(--brand-accent); }

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.contact-socials a {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.contact-socials a:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--white);
}

.contact-socials ion-icon { font-size: 20px; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
}

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

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.consent-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-box label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
}

.consent-box a {
  display: inline;
  color: var(--brand-accent);
  font-weight: 600;
}

.consent-box a:hover { text-decoration: underline; }

/* Footer */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  align-items: start;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 340px;
  line-height: 1.7;
}

.footer-agency-note {
  margin-top: 12px;
  font-size: 0.8rem !important;
  font-style: italic;
  opacity: 0.85;
}

.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--brand-accent);
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--brand-accent); }

.footer-contact li {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-brand-link {
  display: inline;
  font-family: var(--ff-logo);
  color: var(--text-primary);
}

.footer-brand-link span {
  display: inline;
  color: var(--brand-accent);
}

.footer-legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal-inline a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-legal-inline a:hover {
  color: var(--brand-accent);
}

/* Legal Pages */

.legal-page {
  padding-top: 110px;
  padding-bottom: 60px;
}

.legal-content {
  max-width: 780px;
  margin-inline: auto;
}

.legal-content h1 {
  font-family: var(--ff-heading);
  font-size: var(--fs-title);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content a {
  display: inline;
  color: var(--brand-accent);
  font-weight: 600;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Go to top */

.go-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--brand-accent);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 50;
}

.go-top.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 1024px) {
  .services-grid,
  .categories-grid,
  .portfolio-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  .header-cta { display: none; }

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

  .navbar {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg-secondary);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: -1;
  }

  .navbar.active {
    opacity: 1;
    visibility: visible;
  }

  .navbar-list {
    flex-direction: column;
    gap: 24px;
  }

  .navbar-link {
    font-size: 1.4rem;
    font-family: var(--ff-heading);
  }

  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { order: -1; }

  .hero-title { font-size: 2rem; }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-legal-inline {
    justify-content: center;
  }

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

@media (max-width: 540px) {
  :root { --section-pad: 60px; }

  .services-grid,
  .categories-grid,
  .portfolio-overview-grid,
  .why-grid,
  .process-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .contact-form {
    padding: 24px 20px;
  }
}

@media (min-width: 769px) {
  .header-cta { display: inline-flex; }
}
