/* ============================================================
   HTK Group — Global Styles
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --black:       #000000;
  --black-mid:   #111111;
  --black-light: #1a1a1a;
  --silver-dark: #888888;
  --silver:      #b0b0b0;
  --silver-mid:  #cccccc;
  --silver-light:#e8e8e8;
  --white:       #f5f5f5;

  --gradient-silver: linear-gradient(135deg, #888 0%, #e8e8e8 50%, #888 100%);
  --gradient-silver-h: linear-gradient(90deg, #888 0%, #e8e8e8 50%, #888 100%);
  --gradient-card: linear-gradient(160deg, #161616 0%, #0d0d0d 100%);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;

  --nav-height: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 4px 32px rgba(0,0,0,0.6);
  --shadow-silver: 0 0 24px rgba(180,180,180,0.12);
}

/* Brighter metallics when the OS prefers dark (mobile often washes out clipped gradient text) */
@media (prefers-color-scheme: dark) {
  :root {
    --gradient-silver: linear-gradient(135deg, #9a9a9a 0%, #fafafa 50%, #9a9a9a 100%);
    --gradient-silver-h: linear-gradient(90deg, #9a9a9a 0%, #fafafa 50%, #9a9a9a 100%);
  }
}

@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root {
    --gradient-silver: linear-gradient(135deg, #b0b0b0 0%, #ffffff 50%, #b0b0b0 100%);
    --gradient-silver-h: linear-gradient(90deg, #b0b0b0 0%, #ffffff 50%, #b0b0b0 100%);
  }
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--black);
  color: var(--silver-light);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p {
  color: var(--silver-mid);
  font-size: 1rem;
  font-weight: 300;
  max-width: 65ch;
  overflow-wrap: break-word;
}

/* ── Utility Classes ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(2rem, env(safe-area-inset-left, 0px));
  padding-right: max(2rem, env(safe-area-inset-right, 0px));
  min-width: 0;
  box-sizing: border-box;
}

.section {
  padding: 100px 0;
}

.section--sm {
  padding: 60px 0;
}

.text-center { text-align: center; }
.text-silver { color: var(--silver); }
.text-gradient {
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--gradient-silver-h);
  margin: 1.5rem auto;
  border: none;
}

.divider--left {
  margin-left: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-silver);
  color: var(--black);
  border: 1px solid transparent;
}

.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,200,200,0.2);
}

.btn--outline {
  background: transparent;
  color: var(--silver-light);
  border: 1px solid var(--silver-dark);
}

.btn--outline:hover {
  border-color: var(--silver-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,200,200,0.1);
}

/* ── Page Hero Banner (inner pages) ────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(160,160,160,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}

.page-hero__title {
  margin-bottom: 1.25rem;
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: var(--silver);
  max-width: 55ch;
  margin: 0 auto;
}

/* ── Service Cards Grid ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid rgba(160,160,160,0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-silver-h);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(160,160,160,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-silver);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--silver);
}

.service-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.service-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition), gap var(--transition);
}

.service-card__link:hover {
  color: var(--white);
  gap: 0.7rem;
}

/* ── Service Detail Page ────────────────────────────────── */
.service-detail {
  padding: 80px 0;
}

.service-detail__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.service-detail__intro > * {
  min-width: 0;
}

.service-detail__lead {
  font-size: 1.15rem;
  color: var(--silver-light);
  font-weight: 300;
  line-height: 1.8;
  max-width: 100%;
}

.deliverables {
  background: var(--gradient-card);
  border: 1px solid rgba(160,160,160,0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.deliverables h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.deliverables ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.deliverables ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--silver-mid);
  line-height: 1.5;
}

.deliverables ul li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-silver);
  flex-shrink: 0;
  margin-top: 0.45em;
}

/* ── CTA Band ───────────────────────────────────────────── */
.cta-band {
  background: var(--black-light);
  border-top: 1px solid rgba(160,160,160,0.1);
  border-bottom: 1px solid rgba(160,160,160,0.1);
  padding: 80px 0;
  text-align: center;
}

.cta-band__title {
  margin-bottom: 1rem;
}

.cta-band__sub {
  margin: 0 auto 2.5rem;
  color: var(--silver);
}

.cta-band__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--black-mid);
  border-top: 1px solid rgba(160,160,160,0.1);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  min-width: 0;
}

.footer__grid > * {
  min-width: 0;
}

.footer__logo {
  width: 120px;
  margin-bottom: 1.25rem;
  filter: brightness(0.85);
}

.footer__tagline {
  font-size: 0.88rem;
  color: var(--silver-dark);
  max-width: 30ch;
  line-height: 1.7;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--silver-dark);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--silver-light);
}

.footer__bottom {
  border-top: 1px solid rgba(160,160,160,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--silver-dark);
  max-width: 100%;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .service-detail__intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .container {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

