/* ═══════════════════════════════════════════════════════════════
   IRON SHEPHERD GROUP — Premium Dark-Mode Site
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Type Scale (fluid clamp) */
  --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.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* 4px Spacing System */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ISG Brand Palette — Dark Only */
  --color-bg:          #0A1628;
  --color-surface:     #0F1E35;
  --color-surface-2:   #132742;
  --color-accent:      #C9A84C;
  --color-accent-light:#E8C97A;
  --color-text:        #F5F0E8;
  --color-text-muted:  #8A8A8A;
  --color-border:      rgba(201, 168, 76, 0.2);
  --color-border-subtle: rgba(201, 168, 76, 0.08);

  /* Typography */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;

  /* Radius (angular feel — minimal radius) */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows (dark-mode adapted) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;
}

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.1;
  font-family: var(--font-display);
}

p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

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

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

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

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out),
              background 0.4s var(--ease-out),
              padding 0.3s var(--ease-out);
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(10, 22, 40, 0.95);
}

.nav__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav__inner { padding: var(--space-5) var(--space-8); }
}

.nav--scrolled .nav__inner {
  padding-block: var(--space-3);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.nav__logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  /* logo has white background — blend it into the dark nav */
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 1px rgba(201,168,76,0.3));
}

.nav__logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.2;
}

@media (max-width: 420px) {
  .nav__logo-text { display: none; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  text-decoration: none;
  padding: var(--space-2) var(--space-5);
  display: inline-block;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive);
}

.nav__cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

.nav__cta:active {
  transform: translateY(0);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-16) var(--space-8);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--color-border);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--text-lg);
    color: var(--color-text);
  }

  .nav__cta {
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-6);
    margin-top: var(--space-4);
  }
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.3) 40%, rgba(10,22,40,0.75) 100%),
    linear-gradient(to right, rgba(10,22,40,0.5) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-32) var(--space-6) var(--space-16);
  width: 100%;
}

@media (min-width: 768px) {
  .hero__content {
    padding: var(--space-32) var(--space-8);
  }
}

.hero__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.hero__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: 0.95;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-10);
  line-height: 1.5;
}

/* Scroll Indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-4) var(--space-8);
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.btn--gold {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
}

.btn--gold:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.25);
}

.btn--gold:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

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

.section__header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
}

/* ── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border-subtle);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-bg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  position: relative;
  transition: background var(--transition-interactive);
}

.service-card:hover {
  background: var(--color-surface);
}

.service-card__number {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-6);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── CREDENTIALS GRID ───────────────────────────────────────── */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .credentials-grid { grid-template-columns: repeat(4, 1fr); }
}

.credential-card {
  padding: var(--space-6) var(--space-6);
  border: 1px solid var(--color-border);
  position: relative;
  transition: border-color var(--transition-interactive);
}

.credential-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), transparent);
}

.credential-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
}

.credential-card__client {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.credential-card__scope {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ── PARTNERS ROW ───────────────────────────────────────────── */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.partner-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.partner-divider {
  width: 1px;
  height: 16px;
  background: var(--color-border);
}

@media (max-width: 767px) {
  .partners-row {
    gap: var(--space-4) var(--space-5);
  }
  .partner-divider { display: none; }
  .partner-name { font-size: var(--text-xs); }
}

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.about-text p:last-child {
  margin-bottom: 0;
  color: var(--color-text);
  font-weight: 500;
}

.founders-grid {
  display: grid;
  gap: var(--space-4);
}

.founder-card {
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.founder-card__inner {
  padding: var(--space-6) var(--space-6);
}

.founder-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.founder-card__role {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.founder-card__focus {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
  .form-group--full { grid-column: 1 / -1; }
  .btn--submit { grid-column: 1 / -1; justify-self: start; }
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-group .optional {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 138, 138, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn--submit {
  margin-top: var(--space-2);
  border: none;
}

/* Contact Info Sidebar */
.contact-info {
  padding-top: var(--space-4);
}

.contact-info__block {
  margin-bottom: var(--space-8);
}

.contact-info__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.contact-info__value {
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
}

a.contact-info__value:hover {
  color: var(--color-accent-light);
}

.contact-info__legal {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer__logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 1px rgba(201,168,76,0.3));
}

.footer__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__company {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__url {
  letter-spacing: 0.1em;
}

/* ── SCROLL ANIMATIONS ──────────────────────────────────────── */
.fade-in {
  opacity: 1;
}

.fade-in.hidden {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transition: opacity 0.8s var(--ease-out);
}

/* ── FORM SUCCESS STATE ─────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: var(--space-10);
}

.form-success__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.form-success__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ── GOLD RULE ACCENTS ──────────────────────────────────────── */
.section__header::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  margin-top: var(--space-6);
}

/* ── RESPONSIVE FINE-TUNING ─────────────────────────────────── */
@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(2.5rem, 0.5rem + 10vw, 4rem);
  }

  .credentials-grid {
    gap: var(--space-3);
  }
}

/* Smooth page load */
body {
  animation: page-load 0.6s var(--ease-out);
}

@keyframes page-load {
  from { opacity: 0; }
  to { opacity: 1; }
}
