/* ==========================================================================
   SorbiTech Carbon — Main Stylesheet
   Author: SorbiTech Group
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   1. CSS RESET & VARIABLES
   ========================================================================== */
:root {
  /* Brand Colors */
  --blue: #3399ff;
  --blue-dark: #2680e6;
  --blue-darker: #1e6bc7;
  --blue-light: #e6f2ff;
  --blue-soft: #f0f7ff;

  /* Neutrals */
  --ink: #333333;
  --ink-light: #4a4a4a;
  --ink-lighter: #5a5a5a;
  --grey: #999999;
  --grey-light: #cccccc;
  --grey-soft: #e8e8e8;
  --grey-bg: #f5f5f5;
  --white: #ffffff;
  --off-white: #fafafa;
  --line: #e5e5e5;
  --success: #22c55e;
  --error: #ef4444;

  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 120px;

  /* Typography */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(51, 51, 51, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(51, 51, 51, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(51, 51, 51, 0.15);
  --shadow-blue: 0 4px 14px -4px rgba(51, 153, 255, 0.4);
  --shadow-blue-hover: 0 6px 20px -4px rgba(51, 153, 255, 0.55);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.7, 0, 0.3, 1);

  /* Layout */
  --container-max: 1320px;
  --container-wide: 1440px;
  --header-height: 78px;
  --top-strip-height: 36px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

/* ==========================================================================
   2. UTILITY CLASSES
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.no-scroll { overflow: hidden; }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-hover);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(51, 153, 255, 0.05);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-large {
  padding: 16px 32px;
  font-size: 15px;
}

/* ==========================================================================
   4. SECTION DEFAULTS
   ========================================================================== */
section {
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  font-weight: 500;
  background: var(--blue-soft);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.section-title strong {
  font-weight: 700;
  color: var(--blue);
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 600px;
}

/* ==========================================================================
   5. ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) backwards;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   FULL RESPONSIVE AUDIT — GLOBAL — ALL SCREENS
   ========================================================================== */

/* Large screens 1440px+ */
@media (min-width: 1440px) {
  .section-title { font-size: 64px; }
  .section-subtitle { font-size: 19px; max-width: 700px; }
}

/* Tablet portrait 768px */
@media (max-width: 768px) {
  .section-title { font-size: clamp(28px, 6vw, 44px); margin-bottom: 16px; }
  .section-subtitle { font-size: 15px; }
  .section-tag { font-size: 10px; padding: 6px 12px; }
  .btn { padding: 12px 20px; font-size: 13px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
}

/* Mobile 640px */
@media (max-width: 640px) {
  .section-title { font-size: clamp(24px, 7vw, 36px); }
  .section-subtitle { font-size: 14px; line-height: 1.65; }
  .btn { padding: 11px 18px; font-size: 13px; }
}

/* Small mobile 375px */
@media (max-width: 375px) {
  .section-title { font-size: 24px; }
  .section-tag { font-size: 9px; letter-spacing: 0.12em; }
}

/* ==========================================================================
   GENERIC PAGE TEMPLATE (page.php)
   ========================================================================== */

/* ── Hero ── */
.page-hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 80px var(--space-lg) 100px;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero .section-tag {
  background: rgba(51,153,255,0.12);
  color: var(--blue);
  margin-bottom: 20px;
}

.page-hero .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.page-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
}

/* ── Body layout ── */
.page-body {
  background: var(--white);
  padding: 80px var(--space-lg);
}

.page-body-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

/* ── Page content (prose) ── */
.page-content {
  min-width: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-light);
}

.page-content h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-top: 8px;
  border-top: 2px solid var(--line);
}

.page-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.page-content h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.page-content p { margin-bottom: 20px; }
.page-content p:last-child { margin-bottom: 0; }
.page-content strong { color: var(--ink); font-weight: 600; }
.page-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 20px; }
.page-content li { margin-bottom: 8px; }

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  display: block;
}

.page-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  padding: 20px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-content blockquote p {
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}

/* ── Sidebar ── */
.page-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Full inquiry section ── */
.page-inquiry-section {
  background: var(--grey-bg);
  padding: 100px var(--space-lg);
}

.page-inquiry-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Related posts section ── */
.page-related-posts {
  background: var(--white);
  padding: 100px var(--space-lg);
}

.page-related-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-body { padding: 60px var(--space-md); }
  .page-body-inner { grid-template-columns: 1fr; gap: 40px; }
  .page-sidebar { position: static; }
  .page-inquiry-section,
  .page-related-posts { padding: 80px var(--space-md); }
}

@media (max-width: 768px) {
  .page-hero { padding: 60px 20px 80px; }
  .page-body { padding: 48px 20px; }
  .page-inquiry-section,
  .page-related-posts { padding: 60px 20px; }
  .page-content h2 { font-size: 22px; }
  .page-content p, .page-content li { font-size: 16px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 48px 16px 64px; }
  .page-body { padding: 40px 16px; }
  .page-inquiry-section,
  .page-related-posts { padding: 48px 16px; }
}

@media (max-width: 375px) {
  .page-hero { padding: 40px 12px 56px; }
  .page-body { padding: 32px 12px; }
}

/* ==========================================================================
   GLOBAL TEXT JUSTIFICATION
   Justifies all paragraph and list content site-wide.
   Headings, buttons, and labels keep their default alignment.
   ========================================================================== */
p,
li,
.post-content p,
.post-content li,
.pg-content p,
.pg-content li,
.product-free-content-body p,
.product-free-content-body li,
.about-text,
.slide-desc,
.section-subtitle {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Don't justify centered subtitles or short labels — center them and widen */
.section-header .section-subtitle,
.section-subtitle,
.au-cap-sub,
.au-group-lead,
.au-principles-sub,
.au-ind-sub,
.au-divisions-sub,
.au-position-lead,
.au-statement-body,
.cu-offices-sub,
.cu-faq-sub,
.cu-form-sub,
.au-hero-lead,
.cu-hero-lead,
.blog-hero-excerpt,
.pg-hero-excerpt,
[style*="text-align:center"] p,
[style*="text-align: center"] p,
.text-center p,
.text-center li {
  text-align: center !important;
  max-width: 880px;
  margin-left: auto !important;
  margin-right: auto !important;
}