/* ============================================================
   Kick Technic — Global Stylesheet
   Professional consultancy site. Clean, authoritative, modern.
   ============================================================ */

/* --- Self-hosted brand display font (Fontspring licence) --- */
@font-face {
  font-family: 'Audiowide Pro';
  src: url('fonts/audiowidepro_regular_macroman/audiowide_pro-webfont.woff2') format('woff2'),
       url('fonts/audiowidepro_regular_macroman/audiowide_pro-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Variables --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f8f7f4;
  --color-white: #ffffff;
  --color-surface: #efeee9;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-heading: #1a1a1a;
  --color-accent: #0062cc;
  --color-accent-dark: #004a99;
  --color-accent-light: #e8f0fb;
  --color-border: #ddd9d0;
  --color-footer-bg: #1a1a1a;
  --color-footer-text: #c8c8c8;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-display-brand: 'Audiowide Pro', 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --max-width: 1120px;
  --section-pad-y: 4.5rem;
  --section-pad-x: 2rem;
  --radius: 6px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s var(--ease);
  --transition-med: 0.4s var(--ease);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display-brand);
  color: var(--color-heading);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p + p { margin-top: 1rem; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.35em; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

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

/* --- Header --- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.35rem;
  white-space: nowrap;
}

.site-logo img {
  height: 40px;
  width: auto;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
}

.main-nav li,
.main-nav li + li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--color-text);
  font-family: var(--font-display-brand);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* --- Page Banner --- */
.page-banner {
  background: linear-gradient(135deg, #003366 0%, #005baa 60%, #0074d9 100%);
  color: var(--color-white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--color-white);
  font-family: var(--font-display-brand);
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

/* --- Hero (Home page) --- */
.hero {
  background: linear-gradient(135deg, #003366 0%, #005baa 50%, #0074d9 100%);
  color: var(--color-white);
  padding: 5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-wordmark {
  font-family: var(--font-display-brand);
  font-size: clamp(2.6rem, 9vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--color-white);
  text-align: center;
  margin: 0 auto 2rem;
  white-space: nowrap;
}

.hero h1 {
  color: var(--color-white);
  font-family: var(--font-display-brand);
  font-size: 2.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
}

.hero p + p {
  margin-top: 0.8rem;
}

.hero-tagline {
  font-size: 1.25rem !important;
  max-width: 760px !important;
  margin: 1.4rem auto 0 !important;
  color: rgba(255,255,255,0.95) !important;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 1.8rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  max-width: 820px;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hero-stats li {
  margin: 0;
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
}

.hero-stats li + li { margin-top: 0; }

.hero-stats strong {
  font-family: var(--font-display-brand);
  font-weight: 400;
  margin-right: 0.25rem;
  color: var(--color-white);
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-display-brand);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-accent);
}

.btn-primary:hover {
  background: #f0f0f0;
  color: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
}

/* --- Content Sections --- */
.content-section {
  padding: 3.5rem 0;
}

.content-section:nth-child(even) {
  background: var(--color-white);
}

.content-section h2 {
  margin-bottom: 1.2rem;
}

.content-section h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--color-accent-dark);
}

.content-section p {
  max-width: 800px;
}

.content-section ul {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1.2rem !important;
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.4rem;
  max-width: 800px;
}

.pain-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.6rem;
  border-bottom: 1px solid var(--color-surface);
}

.pain-list li:last-child { border-bottom: none; }

.pain-list li + li { margin-top: 0; }

.pain-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.cta-final {
  text-align: center;
  background: var(--color-accent-light) !important;
}

.cta-final p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

/* --- Visible placeholder tag (remove .placeholder class once filled in) --- */
.placeholder {
  display: inline-block;
  background: #d32f2f;
  color: #ffffff;
  padding: 0.1em 0.55em;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9em;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.4;
}

/* --- Project meta block (label/value pairs) --- */
.project-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.55rem 1.1rem;
  margin-top: 1rem;
  padding: 0;
}

.project-meta dt {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.project-meta dd {
  margin: 0;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .project-meta {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .project-meta dt {
    margin-top: 0.6rem;
  }
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition-med), transform var(--transition-med);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--color-accent-dark);
  font-size: 1.25rem;
}

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

.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.card .card-link::after {
  content: ' →';
}

/* --- About Page: Profile --- */
.profile-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.profile-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.profile-details h2 {
  margin-bottom: 0.3rem;
}

.profile-details .subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Certifications columns */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-block h4 {
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-block ul {
  list-style: none;
  padding: 0;
}

.cert-block li {
  padding: 0.25rem 0;
  font-size: 0.93rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-surface);
}

.cert-block li:last-child {
  border-bottom: none;
}

/* --- History: Project Cards --- */
.project-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition-med);
}

.project-card:hover {
  box-shadow: var(--shadow-md);
}

.project-card .project-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  width: 100%;
}

.project-card .project-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--transition-med);
}

.project-card .project-image:hover img,
.project-card .project-image:focus img {
  transform: scale(1.08);
}

.project-card img {
  width: 100%;
  border-radius: var(--radius);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

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

/* Image placeholder for projects without images */
.project-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* --- Privacy Policy --- */
.privacy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.privacy-content h3 {
  margin-top: 1.8rem;
  font-size: 1.2rem;
  color: var(--color-heading);
}

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}

.privacy-content th,
.privacy-content td {
  border: 1px solid var(--color-border);
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
}

.privacy-content th {
  background: var(--color-surface);
  font-weight: 700;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

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

.site-footer a {
  color: var(--color-footer-text);
}

.site-footer a:hover {
  color: var(--color-white);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .profile-section {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 250px;
    margin: 0 auto;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card img,
  .project-img-placeholder {
    max-width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 3rem;
    --section-pad-x: 1.2rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-logo { max-width: 200px; }

  .page-banner { padding: 2.5rem 0; }
  .page-banner h1 { font-size: 1.8rem; }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-surface);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; letter-spacing: 0; }
  h3 { font-size: 1.15rem; }

  .page-banner h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }

  .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

  /* Hero wordmark — allow wrap, drop the min size */
  .hero-wordmark {
    white-space: normal;
    font-size: clamp(2rem, 11vw, 3.5rem);
    letter-spacing: 0.02em;
    margin-bottom: 1.4rem;
  }

  /* Stack the dual hero CTAs vertically */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta .btn { text-align: center; }

  /* Tighten the hero stat pills */
  .hero-stats {
    gap: 0.4rem 0.6rem;
    font-size: 0.85rem;
    margin-top: 1.4rem;
  }
  .hero-stats li {
    padding: 0.25rem 0.7rem;
  }

  /* Long subtitle line on About profile */
  .profile-details .subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Red placeholder tags wrap rather than overflow */
  .placeholder {
    white-space: normal;
    word-break: break-word;
  }
}
