/* ============================================
   Grafix Studio -- Global Styles 2026
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-primary: #16498E;
  --color-secondary: #062C62;
  --color-accent: #004B82;
  --color-white: #ffffff;
  --color-off-white: #F7F8FA;
  --color-light-gray: #E8ECF1;
  --color-mid-gray: #6B7280;
  --color-dark: #0A1628;
  --color-text: #1A1A2E;
  --color-text-light: #4A5568;

  /* Typography */
  --font-heading: 'Pathway Extreme', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-smooth: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 16px 50px rgba(10, 22, 40, 0.16);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section {
  padding: var(--space-section) 0;
}

.section--dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section--accent {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
  color: var(--color-white);
}

.section--accent h1,
.section--accent h2,
.section--accent h3,
.section--accent h4,
.section--accent h5,
.section--accent h6 {
  color: var(--color-white);
}

.section--accent p {
  color: rgba(255, 255, 255, 0.7);
}

.section--accent .section-label {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
}

.section--accent .btn-primary,
.section--accent .btn-outline,
.section--accent .btn {
  color: rgba(255, 255, 255, 0.85);
}

.section--accent .btn-primary:hover,
.section--accent .btn-outline:hover,
.section--accent .btn:hover {
  color: var(--color-white);
}

.section--light {
  background-color: var(--color-off-white);
}

/* --- Buttons (text + arrow links) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--color-dark);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  color: var(--color-primary);
}

.btn .btn-arrow {
  display: inline-block;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Dark text variants (default) */
.btn-primary,
.btn--primary {
  color: var(--color-dark);
}

.btn-primary::after,
.btn--primary::after {
  display: none;
}

.btn-primary:hover,
.btn--primary:hover {
  color: var(--color-primary);
}

.btn--outline,
.btn-outline {
  color: var(--color-dark);
}

.btn--outline::before,
.btn-outline::before {
  display: none;
}

.btn--outline:hover,
.btn-outline:hover {
  color: var(--color-primary);
}

/* White text variant (on dark backgrounds) */
.btn--white,
.btn-white {
  color: rgba(255, 255, 255, 0.85);
}

.btn--white::before,
.btn-white::before {
  display: none;
}

.btn--white:hover,
.btn-white:hover {
  color: var(--color-white);
}

.btn--large {
  font-size: var(--text-base);
}

.btn--small {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.section--dark .section-label {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.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;
}

/* --- GSAP Animation Base Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* --- Site CTA --- */
.site-cta {
  background-color: var(--color-secondary);
  padding: var(--space-section) 0;
}

.site-cta .container {
  text-align: center;
}

.site-cta__content {
  max-width: 640px;
  margin: 0 auto;
}

.site-cta__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-lg);
}

.site-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.site-cta__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.site-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
