/* HUMBLE Consulting - Brand Styles */

:root {
  --color-dark: #3D3A4B;
  --color-light: #F7F6F4;
  --color-white: #FFFFFF;
  --color-text: #2D2A36;
  --color-text-muted: #6B6879;
  --color-accent: #5C5869;
  --color-border: #E8E6E3;

  --font-primary: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: Cambria, Georgia, 'Times New Roman', serif;

  --max-width: 1200px;
  --content-width: 800px;
  --spacing-unit: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

p {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

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

a {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 4);
}

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

/* Header */
header {
  padding: calc(var(--spacing-unit) * 4) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-light);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
  border-bottom-color: var(--color-border);
  background-color: rgba(247, 246, 244, 0.95);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--color-dark);
}

.logo:hover {
  opacity: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 4);
}

nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-dark);
  opacity: 1;
}

.lang-switch {
  font-size: 0.85rem;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: transparent;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
  opacity: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--spacing-unit) * 20) 0 calc(var(--spacing-unit) * 16);
}

.hero-content {
  max-width: 900px;
}

.hero-tagline {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: calc(var(--spacing-unit) * 4);
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: calc(var(--spacing-unit) * 5);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  line-height: 1.8;
}

/* Sections */
section {
  padding: calc(var(--spacing-unit) * 16) 0;
}

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

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

.section-dark p {
  color: rgba(247, 246, 244, 0.85);
}

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

/* Services Grid */
.services-intro {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-unit) * 8);
  max-width: 700px;
}

.services-list {
  display: grid;
  gap: calc(var(--spacing-unit) * 5);
  margin-top: calc(var(--spacing-unit) * 8);
}

.service-item {
  padding: calc(var(--spacing-unit) * 4) 0;
  border-bottom: 1px solid var(--color-border);
}

.section-dark .service-item {
  border-bottom-color: rgba(247, 246, 244, 0.15);
}

.service-item:last-child {
  border-bottom: none;
}

.service-item h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.service-item p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.section-dark .service-item p {
  color: rgba(247, 246, 244, 0.7);
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 6);
  margin-top: calc(var(--spacing-unit) * 8);
}

.principle {
  padding: calc(var(--spacing-unit) * 4);
  background-color: var(--color-white);
  border-radius: 8px;
}

.principle-letter {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-accent);
  margin-bottom: calc(var(--spacing-unit) * 2);
  opacity: 0.5;
}

.principle h3 {
  font-size: 1.125rem;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.principle p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Core Belief */
.belief {
  margin-top: calc(var(--spacing-unit) * 10);
  padding: calc(var(--spacing-unit) * 6);
  background-color: var(--color-white);
  border-left: 3px solid var(--color-dark);
  border-radius: 0 8px 8px 0;
}

.belief-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.belief blockquote {
  font-size: 1.375rem;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.6;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.belief p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: calc(var(--spacing-unit) * 10);
  align-items: start;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 6);
  }
}

.profile-image {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(20%);
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.about-role {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.about-text p {
  font-size: 1rem;
}

.clients {
  margin-top: calc(var(--spacing-unit) * 5);
  padding-top: calc(var(--spacing-unit) * 5);
  border-top: 1px solid var(--color-border);
}

.clients-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.clients p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* How I Work */
.how-section {
  margin-top: calc(var(--spacing-unit) * 12);
  padding-top: calc(var(--spacing-unit) * 8);
  border-top: 1px solid var(--color-border);
}

.how-section h2 {
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.highlight-box {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: calc(var(--spacing-unit) * 5);
  border-radius: 8px;
  margin-top: calc(var(--spacing-unit) * 5);
}

.highlight-box p {
  font-size: 1.125rem;
  color: rgba(247, 246, 244, 0.9);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  text-align: center;
  padding: calc(var(--spacing-unit) * 20) 0;
}

.contact h2 {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.contact-intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.contact-email {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.7;
}

.contact-links {
  margin-top: calc(var(--spacing-unit) * 6);
  display: flex;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 4);
}

.contact-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Footer */
footer {
  padding: calc(var(--spacing-unit) * 6) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: calc(var(--spacing-unit) * 1);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 101;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-light);
    flex-direction: column;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 5);
    transition: right 0.3s ease;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 1.25rem;
  }

  .hero {
    padding-top: calc(var(--spacing-unit) * 16);
  }

  section {
    padding: calc(var(--spacing-unit) * 10) 0;
  }

  .container {
    padding: 0 calc(var(--spacing-unit) * 3);
  }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Styles */
@media print {
  header, footer, .lang-switch {
    display: none;
  }

  section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  .section-dark {
    background-color: #fff;
    color: #000;
  }
}

/* ===========================================
   ACCESSIBILITY (WCAG 2.1 AA)
   =========================================== */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-size: 0.95rem;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Focus visible states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-dark a:focus-visible,
.section-dark button:focus-visible {
  outline-color: var(--color-white);
}

nav a:focus-visible {
  outline-offset: 6px;
}

.contact-email:focus-visible {
  outline-offset: 6px;
}

.lang-switch:focus-visible {
  outline-offset: 2px;
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 3px;
}

/* Screen reader only utility */
.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;
}

/* ===========================================
   EASTER EGGS
   =========================================== */

/* Footer HUMBLE text easter egg */
.humble-text {
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.humble-text:hover {
  color: var(--color-dark);
}

.humble-text.icons-mode {
  gap: 4px;
}

.humble-text.icons-mode svg {
  animation: iconPop 0.3s ease forwards;
  color: var(--color-dark);
}

.humble-text.icons-mode svg:nth-child(1) { animation-delay: 0s; }
.humble-text.icons-mode svg:nth-child(2) { animation-delay: 0.05s; }
.humble-text.icons-mode svg:nth-child(3) { animation-delay: 0.1s; }
.humble-text.icons-mode svg:nth-child(4) { animation-delay: 0.15s; }
.humble-text.icons-mode svg:nth-child(5) { animation-delay: 0.2s; }
.humble-text.icons-mode svg:nth-child(6) { animation-delay: 0.25s; }

@keyframes iconPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* 404 Page Styles */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--spacing-unit) * 4);
}

.page-404-content {
  max-width: 600px;
}

.page-404 h1 {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 300;
  color: var(--color-border);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.page-404 h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.page-404 p {
  color: var(--color-text-muted);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.page-404 .btn {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  background-color: var(--color-dark);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.page-404 .btn:hover {
  opacity: 0.85;
}

.page-404 .btn:focus-visible {
  outline: 3px solid var(--color-dark);
  outline-offset: 3px;
}
