/* ==========================================================================
   Hphensquare Consulting Services — Premium Corporate Styles
   ========================================================================== */

:root {
  /* Hphensquare brand — matched from official logo */
  --brand-red: #C80000;
  --brand-red-bright: #D42020;
  --brand-dark-red: #A31F1F;
  --brand-deep: #6B2428;
  --brand-deepest: #4A1A1E;
  --white: #ffffff;
  --surface: #fffcf8;
  --surface-alt: #f7f2ef;
  --surface-elevated: #fffefb;
  --text-primary: #2a1818;
  --text-secondary: #6b5656;
  --text-muted: #8a7474;
  --border: #e8ddd8;

  /* Mapped aliases for existing selectors */
  --color-primary: var(--brand-deep);
  --color-primary-dark: var(--brand-deepest);
  --color-primary-light: var(--brand-dark-red);
  --color-accent: var(--brand-red);
  --color-accent-light: #1c1010;
  --color-dark: #3D1E20;
  --color-dark-soft: #5C2A2E;
  --color-text: var(--text-primary);
  --color-text-muted: var(--text-secondary);
  --color-text-light: var(--text-muted);
  --color-bg: var(--surface);
  --color-bg-alt: var(--surface-alt);
  --color-bg-elevated: var(--surface-elevated);
  --color-bg-dark: #5C2428;
  --color-border: var(--border);
  --color-success: #059669;
  --color-success-bg: #f0faf5;
  --color-error: #b91c1c;
  --color-error-bg: #fef2f2;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(48, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(48, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(48, 0, 0, 0.1);
  --shadow-xl: 0 24px 64px rgba(48, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-height: 76px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-dark-red);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-bg-dark);
  color: #e2e8f0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.eyebrow-light {
  color: #FFC4C4;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-title-light {
  color: #f1f5f9;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-subtitle-light {
  color: var(--color-text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 2px 8px rgba(200, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--brand-dark-red);
  border-color: var(--brand-dark-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(200, 0, 0, 0.28);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}

.btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 254, 251, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled .logo-icon {
  display: none;
}

.site-header.is-scrolled .logo-full {
  display: block;
}

.site-header.is-scrolled .nav-link {
  color: var(--color-text);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--brand-red);
  background: rgba(200, 0, 0, 0.06);
}

.site-header.is-scrolled .nav-toggle-bar {
  background: var(--brand-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo {
  height: auto;
  width: auto;
  object-fit: contain;
}

.logo-full {
  display: none;
  height: 40px;
  width: auto;
  max-width: 200px;
}

.logo-icon {
  display: block;
  height: 40px;
  width: 40px;
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Hero header — warm light background, dark readable text */
.site-header:not(.is-scrolled) {
  background: rgba(255, 249, 247, 0.88);
  backdrop-filter: blur(10px);
}

.site-header:not(.is-scrolled) .logo-icon {
  display: none;
  box-shadow: none;
}

.site-header:not(.is-scrolled) .logo-full {
  display: block;
}

.site-header:not(.is-scrolled) .nav-link {
  color: var(--text-primary);
}

.site-header:not(.is-scrolled) .nav-link:hover,
.site-header:not(.is-scrolled) .nav-link.is-active {
  color: var(--brand-red);
  background: rgba(200, 0, 0, 0.08);
}

.site-header:not(.is-scrolled) .nav-link.is-active::after {
  background: var(--brand-red);
}

.site-header:not(.is-scrolled) .nav-toggle-bar {
  background: var(--brand-deep);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(200, 0, 0, 0.25);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--brand-red-bright);
  border-radius: 1px;
}

.nav-cta {
  background: var(--brand-red);
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--brand-dark-red);
}

.nav-cta.is-active::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-bg-elevated);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #FFF9F7 0%, #FAF0EC 32%, #F5E4DF 68%, #EFD8D3 100%);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(200, 0, 0, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(200, 0, 0, 0.05) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C80000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  padding: 80px 24px;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--brand-red);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero .eyebrow {
  color: var(--brand-red);
}

.hero .btn-outline {
  color: var(--brand-deep);
  border-color: var(--brand-red);
  background: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  min-width: 200px;
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about-highlights {
  margin-top: 28px;
}

.about-highlights li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--color-text);
  font-weight: 500;
}

.about-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.about-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-red), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 2px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 0, 0, 0.28);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--brand-red);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.card:hover .card-icon {
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.solution-item {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all var(--transition);
}

.solution-item:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.solution-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
}

.solution-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.solution-item p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--brand-red);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 3px 0 0 3px;
}

.service-card:hover {
  border-color: rgba(200, 0, 0, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.service-card > p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card ul li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.service-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* Process */
.process-timeline {
  max-width: 720px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-red), rgba(200, 0, 0, 0.15));
}

.process-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(200, 0, 0, 0.12);
}

.process-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
  padding-top: 10px;
}

.process-content p {
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Outsourcing */
.outsourcing-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.outsourcing-list {
  margin-top: 28px;
}

.outsourcing-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.outsourcing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #F07070;
  font-weight: 700;
}

.outsourcing-models {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.model-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.model-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 0, 0, 0.35);
}

.model-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.model-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #6B282E 0%, #9B3A40 48%, #C04A4A 100%);
  padding: 80px 0;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-inner .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-inner .btn-primary:hover {
  background: var(--surface);
  color: var(--brand-red);
  border-color: #fff;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details li {
  margin-bottom: 20px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.0625rem;
  color: var(--color-dark);
  font-weight: 500;
}

.contact-value a {
  color: var(--brand-deep);
}

.contact-value a:hover {
  color: var(--brand-red);
}

.contact-form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.required {
  color: var(--color-error);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-dark);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200, 0, 0, 0.12);
}

.contact-form input.is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: 4px;
  min-height: 0;
}

.field-error:not(:empty) {
  min-height: 1.25em;
}

/* Honeypot — hidden from users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Form states */
.form-success,
.form-failure {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.form-success.is-visible {
  display: block;
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.form-failure.is-visible {
  display: block;
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-failure a {
  color: var(--color-error);
  font-weight: 600;
  text-decoration: underline;
}

.form-failure a:hover {
  color: #b91c1c;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-light);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: none;
}

.footer-logo-full {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f1e8e8;
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.footer-links a:hover {
  color: #F07070;
}

.footer-contact p {
  font-size: 0.9375rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-contact a {
  color: var(--color-text-light);
}

.footer-contact a:hover {
  color: #F07070;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 140px;
  }

  .about-grid,
  .outsourcing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 254, 251, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    color: var(--color-text);
    padding: 12px 16px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    color: var(--brand-red);
    background: rgba(200, 0, 0, 0.06);
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    color: #fff !important;
  }

  .nav-cta:hover {
    color: #fff !important;
    background: var(--brand-dark-red);
  }

  /* Prefer full logo once header is light / scrolled; keep icon over hero */
  .site-header.is-scrolled .logo-full {
    height: 36px;
    max-width: 160px;
  }

  .logo-icon {
    height: 36px;
    width: 36px;
  }

  .card-grid,
  .solutions-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .logo-full {
    max-width: 140px;
    height: 32px;
  }

  .site-header.is-scrolled .logo-full {
    display: none;
  }

  .site-header.is-scrolled .logo-icon {
    display: block;
    box-shadow: none;
  }

  .footer-logo-full {
    max-width: 150px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn.is-loading::after {
    animation: none;
  }
}
