/* ===================================================================
   KAISER DIGITAL — STYLES

   This file is organized top to bottom:
     1.  Variables (colors, spacing, fonts) — change these to retune
         the look of the whole site in one place
     2.  Reset & base styles
     3.  Layout helpers (container)
     4.  Typography utilities (eyebrow, section title)
     5.  Buttons
     6.  Nav
     7.  Hero
     8.  Services / "What I do"
     9.  Portfolio
     10. Why Kaiser Digital
     11. Contact + form
     12. Footer
     13. Responsive / mobile adjustments
   =================================================================== */


/* -------------------------------------------------------------------
   1. VARIABLES
   These are the design tokens. Change a value here and it updates
   everywhere it's used.
   ------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg:            #0A0A0A;   /* Page background — near black, warmer than pure #000 */
  --bg-elev:       #141414;   /* Slightly lighter background for cards/images */
  --text:          #F5F1EA;   /* Main text — warm off-white (easier on the eye than pure white) */
  --text-muted:    #8A8580;   /* Secondary text — for subtitles and supporting copy */
  --text-dim:      #4A4A4A;   /* Very dim — used for form borders */
  --accent:        #E8B547;   /* The one sharp accent — warm gold. Used SPARINGLY. */
  --accent-hover:  #F0C460;
  --line:          #1F1F1F;   /* Subtle horizontal dividers between sections */

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale — used to keep whitespace consistent throughout */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-xxl: 12rem;
}


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

html {
  scroll-behavior: smooth;          /* Smoothly animates jumps to #sections */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}


/* -------------------------------------------------------------------
   3. LAYOUT
   .container caps width and adds side padding. Use it inside sections.
   ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

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


/* -------------------------------------------------------------------
   4. TYPOGRAPHY UTILITIES
   ------------------------------------------------------------------- */

/* Small uppercase label that sits above each section's heading */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

/* Section heading style — used in Work, Why, and Contact sections */
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);  /* fluid sizing: shrinks on small screens */
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  max-width: 22ch;
}


/* -------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Primary button: gold background, dark text. Our main CTA style. */
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-1px);
}

/* Larger size for hero/section CTAs */
.btn--lg {
  padding: 1.125rem 2.25rem;
  font-size: 0.95rem;
}


/* -------------------------------------------------------------------
   6. NAV
   ------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }


/* -------------------------------------------------------------------
   7. HERO
   Tightened so the headline sits near the top with intentional
   breathing room — not floating in the middle of an empty screen.
   ------------------------------------------------------------------- */
.hero {
  padding: var(--space-md) 0 var(--space-xl);
}

/* The big main headline. Uses clamp() so it scales smoothly with screen size. */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  max-width: 20ch;
}

/* The italic phrase ("doesn't match") is highlighted in the accent color */
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}


/* -------------------------------------------------------------------
   8. SERVICES / "WHAT I DO"
   Tighter vertical padding than the default section rule so the
   three points sit closer together and feel deliberate.
   ------------------------------------------------------------------- */
.services {
  border-top: 1px solid var(--line);
  padding: var(--space-lg) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  /*
    Reserve two lines of space so all three titles take up equal
    vertical room. Without this, a shorter title (one line) would
    pull its body copy up higher than the other two, making the
    third card look shorter. Reset to auto on mobile (below).
  */
  min-height: 2.5em;
}

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


/* -------------------------------------------------------------------
   9. WHY KAISER DIGITAL
   Tighter vertical padding than the default section rule so the
   heading and three points feel anchored together, not spread out.
   ------------------------------------------------------------------- */
.why {
  border-top: 1px solid var(--line);
  padding: var(--space-lg) 0;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
}

.why__right {
  display: flex;
  flex-direction: column;
}

/* Each "Why" item has a thin divider above it for a clean editorial feel */
.why__item {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line);
}
.why__item:last-child { padding-bottom: 0; }

.why__item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.why__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 52ch;
}


/* -------------------------------------------------------------------
   11. CONTACT
   ------------------------------------------------------------------- */
.contact { border-top: 1px solid var(--line); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__sub {
  color: var(--text-muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/*
  Form inputs use bottom borders only — no boxed/rounded inputs.
  This keeps the form looking editorial and minimal, not template-y.
*/
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-dim);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0;
  width: 100%;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.contact__form .btn {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

.form__status {
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.5em;
}


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

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}


/* -------------------------------------------------------------------
   13. RESPONSIVE — MOBILE
   The site is designed desktop-first but degrades cleanly.
   Below 900px we hide the nav links (the site is short — visitors
   can scroll) and stack all grid sections into single columns.
   ------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --space-xl:  5rem;
    --space-xxl: 6rem;
    --space-lg:  3rem;
  }

  .container { padding: 0 1.5rem; }

  .nav__links { display: none; }
  .nav__cta {
    padding: 0.7rem 1.25rem;
    font-size: 0.8rem;
  }

  .services__grid,
  .why__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Single-column on mobile, so no need to reserve two heading lines */
  .service__title { min-height: auto; }

  .why__inner { gap: var(--space-lg); }
  .contact__inner { gap: var(--space-lg); }

  .hero {
    padding: var(--space-sm) 0 var(--space-lg);
  }
}

@media (max-width: 500px) {
  .container { padding: 0 1.25rem; }
  .nav__inner { padding-top: 1rem; padding-bottom: 1rem; }
  .nav__logo { font-size: 1.1rem; }

  .hero__sub { font-size: 1.05rem; }
}
