/* ==========================================================================
   GetHosted.MY — Design System & Stylesheet
   Fonts (Sora + Inter) are loaded via <link> tags in each page's <head>,
   not @import here — @import blocks CSS parsing until the remote
   stylesheet downloads, delaying first paint. See the HTML head for the
   preconnect + stylesheet link tags.
   ========================================================================== */

:root {
  /* Color system */
  --primary: #2554F5;
  --primary-dark: #1638B8;
  --primary-light: #E8EDFF;
  --secondary: #0A1128;
  --secondary-light: #131C36;
  --accent: #14B8A6;
  --accent-warm: #F59E0B;
  --background: #F6F8FC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #5B6478;
  --text-on-dark: #E7ECFB;
  --text-muted-on-dark: #9AA6C4;
  --border: #E3E8F2;
  --border-dark: #23304F;
  --success: #16A34A;

  /* Typography */
  --font-heading: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Misc */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
  --container: 1200px;
  --transition: 180ms ease;
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 var(--space-3); color: var(--text); }
p { margin: 0 0 var(--space-4); }
button { font-family: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------- */
/* Typography utilities                                                   */
/* ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.section-heading { max-width: 680px; margin-bottom: var(--space-7); }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-heading p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: var(--text-on-dark); border-color: rgba(231, 236, 251, 0.35); }
.btn-ghost-light:hover { background: rgba(231, 236, 251, 0.1); border-color: var(--text-on-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6em 1.2em; font-size: 0.875rem; }

/* ---------------------------------------------------------------------- */
/* Top utility bar                                                        */
/* ---------------------------------------------------------------------- */
.topbar {
  background: var(--secondary);
  color: var(--text-muted-on-dark);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  gap: var(--space-4);
}
.topbar-right { display: flex; align-items: center; gap: var(--space-4); }
.topbar-right a { color: var(--text-muted-on-dark); transition: color var(--transition); }
.topbar-right a:hover { color: var(--text-on-dark); }
.topbar-right .divider { color: var(--border-dark); }

/* ---------------------------------------------------------------------- */
/* Header / Navigation                                                    */
/* ---------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  gap: var(--space-5);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  flex-shrink: 0;
}

.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; align-items: center; gap: var(--space-5); }
.nav-list > li { position: relative; }
.nav-list a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-list a.nav-link:hover,
.nav-list a.nav-link[aria-current="page"] { color: var(--primary); border-color: var(--primary); }
.nav-list .chevron { transition: transform var(--transition); }
.has-dropdown:hover .chevron,
.has-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}
.dropdown a:hover { background: var(--primary-light); color: var(--primary-dark); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--secondary);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,17,40,0.72) 0%, rgba(10,17,40,0.94) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.hero-home::before { background-image: url('../images/hero-datacenter.jpg'); }
.hero-page { padding: var(--space-8) 0; }
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.hero-page .hero-inner { max-width: 720px; position: relative; z-index: 2; }
.hero-page h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.hero-page p.lead { color: var(--text-muted-on-dark); font-size: 1.1rem; max-width: 640px; }
.breadcrumb { display: flex; gap: var(--space-2); align-items: center; font-size: 0.85rem; color: var(--text-muted-on-dark); margin-bottom: var(--space-5); }
.breadcrumb a { color: var(--text-muted-on-dark); }
.breadcrumb a:hover { color: var(--text-on-dark); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

.hero-home { padding: var(--space-9) 0 var(--space-8); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: var(--space-5); }
.hero-copy p.lead { font-size: 1.15rem; color: var(--text-muted-on-dark); max-width: 560px; margin-bottom: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-badges { display: flex; gap: var(--space-5); margin-top: var(--space-7); flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: var(--space-2); font-size: 0.85rem; color: var(--text-muted-on-dark); }
.hero-badge svg { color: var(--accent); flex-shrink: 0; }

.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(231,236,251,0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(6px);
}
.hero-panel img { border-radius: var(--radius-md); margin-bottom: var(--space-5); }
.hero-panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.hero-panel-stat strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; color: #fff; }
.hero-panel-stat span { font-size: 0.8rem; color: var(--text-muted-on-dark); }

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--secondary); color: var(--text-on-dark); }
.section-dark .section-heading p { color: var(--text-muted-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */
.card-grid { display: grid; gap: var(--space-6); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-light); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: var(--space-5);
}
.card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); margin-bottom: var(--space-4); font-size: 0.95rem; }
.card ul.feature-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.card ul.feature-list li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.card ul.feature-list li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }
.card-link { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }

/* Service cards on homepage (product highlight) */
.service-card { display: flex; flex-direction: column; }
.service-card .badge-top {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(20,184,166,0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* ---------------------------------------------------------------------- */
/* Stats band                                                              */
/* ---------------------------------------------------------------------- */
.stats-band { background: var(--secondary); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); text-align: center; }
.stat-item strong { display: block; font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--accent); }
.stat-item span { color: var(--text-muted-on-dark); font-size: 0.9rem; }

/* ---------------------------------------------------------------------- */
/* Pricing                                                                  */
/* ---------------------------------------------------------------------- */
.pricing-tabs { display: flex; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-7); }
.pricing-tab-btn {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.pricing-tab-btn[aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pricing-panel[hidden] { display: none; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); align-items: stretch; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.price-card.popular { border-color: var(--primary); box-shadow: var(--shadow-md); }
.price-card .popular-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-warm);
  color: #1c1300;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}
.price-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: var(--space-4); }
.price-value { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--space-1); }
.price-value .amount { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; color: var(--text); }
.price-value .currency { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); }
.price-period { color: var(--text-muted); font-size: 0.85rem; margin-bottom: var(--space-5); }
.price-features { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); flex-grow: 1; }
.price-features li { display: flex; gap: var(--space-2); font-size: 0.9rem; align-items: flex-start; }
.price-features li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ---------------------------------------------------------------------- */
/* Stat progress (why need SSD section)                                    */
/* ---------------------------------------------------------------------- */
.progress-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.progress-stat { text-align: center; }
.progress-ring { position: relative; width: 130px; height: 130px; margin: 0 auto var(--space-4); }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 10; }
.progress-ring .track { stroke: var(--border); }
.progress-ring .fill { stroke: var(--primary); stroke-linecap: round; }
.progress-ring .value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--text);
}
.progress-stat p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Portfolio (web design page)                                             */
/* ---------------------------------------------------------------------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.portfolio-thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.05); }
.portfolio-name { padding: var(--space-4); font-weight: 600; font-size: 0.95rem; text-align: center; }

/* ---------------------------------------------------------------------- */
/* CTA band                                                                */
/* ---------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto var(--space-6); }
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.cta-band .btn-secondary { background: #fff; border-color: #fff; }
.cta-band .btn-ghost-light { border-color: rgba(255,255,255,0.5); }

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: var(--space-2); }
.field .req { color: #DC2626; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-status { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status.visible { display: block; }
.form-status.success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.form-status.error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.form-status.sending { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-light); }

/* Honeypot field — invisible to real visitors, most bots still fill it */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

/* Newsletter (footer) */
.newsletter-form { display: flex; gap: var(--space-2); }
.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: var(--secondary-light);
  color: var(--text-on-dark);
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: var(--text-muted-on-dark); }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Contact page layout                                                     */
/* ---------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-6); }
.contact-info-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-info-item .card-icon { margin-bottom: 0; }
.contact-info-item h3 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------- */
/* Legal / terms content                                                   */
/* ---------------------------------------------------------------------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); align-items: start; }
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.legal-toc h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--space-4); }
.legal-toc ul { display: flex; flex-direction: column; gap: var(--space-2); }
.legal-toc a { font-size: 0.88rem; color: var(--text); display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.legal-toc a:hover { background: var(--primary-light); color: var(--primary-dark); }
.legal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7); }
.legal-content h2 { font-size: 1.4rem; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p { color: var(--text-muted); font-size: 0.95rem; }
.legal-content ul { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-4) 0; }
.legal-content ul li { color: var(--text-muted); font-size: 0.95rem; padding-left: var(--space-5); position: relative; }
.legal-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.legal-content .updated-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: var(--space-6); }
.legal-content li ul { margin: var(--space-3) 0 0 var(--space-5); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--secondary); color: var(--text-muted-on-dark); padding-top: var(--space-8); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid var(--border-dark); }
.footer-brand .logo { color: #fff; margin-bottom: var(--space-4); }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-5); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: var(--space-5) 0; font-size: 0.82rem; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom a { color: var(--text-muted-on-dark); }
.footer-bottom a:hover { color: #fff; }

.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* Home-only sections                                                      */
/* ---------------------------------------------------------------------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.intro-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-copy .section-heading { margin-bottom: var(--space-5); }
.intro-list { display: flex; flex-direction: column; gap: var(--space-4); margin: var(--space-6) 0; }
.intro-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.95rem; }
.intro-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 480px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 860px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar .topbar-right .divider:nth-of-type(1) { display: none; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-7) var(--space-5);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    gap: var(--space-6);
    z-index: 96;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .nav-list > li { width: 100%; }
  .nav-list a.nav-link { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); width: 100%; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height var(--transition);
  }
  .has-dropdown.open .dropdown { max-height: 300px; padding: var(--space-2) 0 var(--space-2) var(--space-4); }
  .nav-toggle { display: flex; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(10,17,40,0.5);
    opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
    z-index: 95;
  }
  .nav-overlay.visible { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: var(--space-7) 0; }
  .hero-home { padding: var(--space-7) 0 var(--space-6); }
  .cta-band { padding: var(--space-6) var(--space-5); }
  .newsletter-form { flex-direction: column; }
  .topbar .container { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-panel { padding: var(--space-5); }
  .legal-content { padding: var(--space-5); }
}
