/* ============================================================
   Michael Stucki · IT Services · main.css
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --ms-accent:        #185FA5;
  --ms-accent-dark:   #0f4a84;
  --ms-accent-light:  #e8f0fa;
  --ms-font-head:     Georgia, serif;
  --ms-font-body:     'DM Mono', 'Courier New', monospace;
  --ms-radius:        4px;
  --ms-section-py:    5rem;
}

/* --- Site frame (narrow, centered) ------------------------ */
.site-bg {
  background: #f0f0ec;
  min-height: 100vh;
}

.site-frame {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(0,0,0,.08);
  overflow: hidden;
  border-top: 2px solid var(--ms-accent);
}

/* --- Base -------------------------------------------------- */
body {
  font-family: var(--ms-font-body);
  font-size: 0.9rem;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ms-font-head);
  letter-spacing: -0.01em;
}

.py-6 { padding-top: var(--ms-section-py); padding-bottom: var(--ms-section-py); }

/* --- Colour utilities ------------------------------------- */
.text-accent         { color: var(--ms-accent) !important; }
.bg-accent           { background-color: var(--ms-accent) !important; }
.bg-accent-light     { background-color: var(--ms-accent-light) !important; }
.text-white-75       { color: rgba(255,255,255,.75); }
.text-white-50       { color: rgba(255,255,255,.5) !important; }
.bg-white-10         { background-color: rgba(255,255,255,.1); }
.border-white-20     { border-color: rgba(255,255,255,.2) !important; }
.placeholder-white-50::placeholder { color: rgba(255,255,255,.5); }

/* --- Eyebrow label ---------------------------------------- */
.eyebrow-label {
  font-family: var(--ms-font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-accent);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.navbar-brand {
  text-decoration: none;
  font-family: var(--ms-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #1a1a1a !important;
  gap: 0.6rem !important;
}

.brand-name {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.brand-sub {
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  border-left: 1px solid #ddd;
  padding-left: 0.6rem;
}

.navbar-brand .brand-logo {
  height: 32px;
  width: auto;
}

.nav-link {
  font-family: var(--ms-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #333 !important;
  padding: 0.4rem 0.75rem !important;
  transition: color .15s;
}
.nav-link:hover { color: var(--ms-accent) !important; }

.btn-nav-cta {
  border: 1.5px solid var(--ms-accent);
  border-radius: var(--ms-radius);
  color: var(--ms-accent) !important;
  padding: 0.35rem 1rem !important;
  transition: background .15s, color .15s;
}
.btn-nav-cta:hover {
  background: var(--ms-accent);
  color: #fff !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  display: flex;
  position: relative;
  background: var(--ms-accent);
}

.hero-left-col {
  background: #fff;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 2;
}
.hero-section .row { min-height: auto; }

/* Left column */
.hero-text {
  max-width: 600px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-headline {
  font-family: var(--ms-font-head);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-headline__main  { color: #1a1a1a; }
.hero-headline__accent { color: var(--ms-accent); }

.hero-subtext {
  font-family: var(--ms-font-body);
  font-size: 0.92rem;
  line-height: 1.8;
  color: #555;
  max-width: 480px;
}

/* Buttons */
.btn-hero-primary {
  font-family: var(--ms-font-body);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  color: #1a1a1a;
  background: transparent;
  border: 1.5px solid #aaa;
  border-radius: var(--ms-radius);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-hero-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

@media (max-width: 991.98px) {
  .btn-hero-primary {
    font-size: 1.4rem;
    white-space: normal;
    text-align: center;
    padding: 1rem 1.5rem;
    word-spacing: 9999px;
    line-height: 1.3;
    border-radius: 8px;
  }
}

.btn-hero-secondary {
  font-family: var(--ms-font-body);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ms-accent);
  background: transparent;
  border: none;
  padding: 0.75rem 0.25rem;
  text-decoration: none;
  transition: opacity .15s;
}
.btn-hero-secondary:hover { opacity: .7; color: var(--ms-accent); }

/* Right stats panel */
.hero-stats-panel {
  background: var(--ms-accent);
  color: #fff;
  min-height: 100%;
}

.stats-eyebrow {
  font-family: var(--ms-font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 0;
}

.stat-row {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.25rem 0;
}
.stat-row:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.stat-row:hover .stat-value {
  letter-spacing: -0.01em;
  transition: letter-spacing .2s ease;
}

.stat-value {
  font-family: var(--ms-font-head);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: #fff;
}

.stat-label {
  font-family: var(--ms-font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 0.3rem;
}

@media (min-width: 992px) {
  .w-lg-auto { width: auto !important; }
}

/* Mobile stats row */
.hero-stats-mobile {
  background: var(--ms-accent-light);
  border-top: 1px solid rgba(24, 95, 165, 0.15);
}

.hero-stat-mobile {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid rgba(24, 95, 165, 0.2);
}
.hero-stat-mobile:last-child {
  border-right: none;
}

.hero-stat-mobile__value {
  font-family: var(--ms-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--ms-accent);
}

.hero-stat-mobile__label {
  font-family: var(--ms-font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-top: 0.25rem;
}

/* Reference tags on blue bg */
.badge-tag--light {
  border-color: rgba(255,255,255,.5) !important;
  color: #fff !important;
}

/* ============================================================
   BADGE / TAG
   ============================================================ */
.badge-tag {
  display: inline-block;
  font-family: var(--ms-font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.25em 0.65em;
  border: 1.5px solid var(--ms-accent);
  border-radius: 2px;
  color: var(--ms-accent);
  background: var(--ms-accent-light);
  text-transform: uppercase;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  border-top: 3px solid var(--ms-accent);
}
.service-card {
  border: none;
  border-bottom: 1px solid #e8e8e8;
  border-left: 2px solid transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding-top: 1.5rem !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(24, 95, 165, .08);
  border-left-color: var(--ms-accent);
}
.service-card::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--ms-accent);
  margin-bottom: 1rem;
  transition: width .2s;
}
.service-card:hover::before {
  width: 3rem;
}

.service-card__number {
  font-family: var(--ms-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ms-accent);
  margin-bottom: 0.75rem;
}

.service-card__title {
  font-family: var(--ms-font-head);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.service-card__desc {
  font-family: var(--ms-font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #555;
  flex-grow: 1;
  margin-bottom: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-photo-wrap {
  width: 280px;
  height: 280px;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-body p {
  font-family: var(--ms-font-body);
  font-size: 0.92rem;
  line-height: 1.9;
  color: #444;
}

.about-fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-family: var(--ms-font-body);
  color: #555;
}
.about-fact__icon { color: var(--ms-accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-form .form-control {
  font-family: var(--ms-font-body);
  font-size: 0.88rem;
  border-radius: var(--ms-radius);
}
.contact-form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { font-family: var(--ms-font-body); }
.hover-white:hover { color: #fff !important; }

/* ============================================================
   PROSE (content pages)
   ============================================================ */
.prose p, .prose li {
  font-family: var(--ms-font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: #333;
}
.prose h2, .prose h3 {
  font-family: var(--ms-font-head);
  font-style: italic;
  margin-top: 2rem;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { max-width: 560px; }

.section-header-row {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.section-header-line {
  flex: 1;
  height: 1px;
  background: #e8e8e8;
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-family: var(--ms-font-head);
  font-style: italic;
}

/* ============================================================
   MOTION & ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-text .eyebrow-label {
  animation: fade-up .5s ease both;
}
.hero-text .hero-headline {
  animation: fade-up .5s .1s ease both;
}
.hero-text .hero-subtext {
  animation: fade-up .5s .2s ease both;
}
.hero-text .d-flex.gap-3 {
  animation: fade-up .5s .3s ease both;
}
.hero-text .hero-stats-mobile {
  animation: fade-in .4s .4s ease both;
}
.hero-stats-panel {
  animation: fade-in .6s .15s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-text .eyebrow-label,
  .hero-text .hero-headline,
  .hero-text .hero-subtext,
  .hero-text .d-flex.gap-3,
  .hero-text .hero-stats-mobile,
  .hero-stats-panel {
    animation: none;
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-section,
  .hero-section .row {
    min-height: auto;
  }
  .hero-text {
    padding-top: 3rem;
    padding-bottom: 3rem;
    max-width: 100%;
  }
  .hero-stats-panel {
    padding: 3rem 2.5rem;
  }
  .stat-value { font-size: 2.5rem; }
}
