/* ============================================================
   Design System — Luke Sniewski
   Fonts: Poppins (headings), Lato (body)
   Brand colours extracted from original site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --clr-brand:        #1f6581;   /* deep teal-blue */
  --clr-brand-light:  #499ac8;   /* sky blue */
  --clr-accent:       #29c4a9;   /* mint teal CTA */
  --clr-accent-dark:  #1fa08a;
  --clr-muted-bg:     #adc2c1;   /* soft sage */
  --clr-bg:           #f7f8fa;
  --clr-bg-alt:       #eef2f3;
  --clr-surface:      #ffffff;
  --clr-text:         #2d3940;
  --clr-text-mid:     #4e4e4e;
  --clr-text-muted:   #666666;
  --clr-border:       #e2e2e2;

  --ff-heading: 'Poppins', sans-serif;
  --ff-body:    'Lato', sans-serif;

  --radius:   8px;
  --radius-lg: 12px;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);

  --container: 1100px;
  --gutter:    clamp(1rem, 4vw, 2rem);
  --header-h:  72px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-surface);
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--clr-text);
}

p { color: var(--clr-text-mid); }

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75em 1.75em;
  border-radius: 4px;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-brand {
  background: var(--clr-brand);
  color: #fff;
}
.btn-brand:hover { background: #175267; }

/* ── ===================================================== ──
   HEADER / NAV
── ===================================================== ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(31,101,129,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.site-logo img {
  height: 40px;
  width: auto;
}
.site-logo-text {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(255,255,255,0.92);
  font-family: var(--ff-heading);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(31,101,129,0.98);
  padding: 1.5rem var(--gutter) 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.92);
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--clr-accent); }

/* ── ===================================================== ──
   HERO SECTION
── ===================================================== ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/DSCF1702-1.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31,101,129,0.82) 0%,
    rgba(41,196,169,0.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── ===================================================== ──
   WORK WITH ME
── ===================================================== ── */
.work-with-me {
  background: var(--clr-surface);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: var(--clr-brand);
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.card-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-brand);
}

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

.card .btn {
  margin-top: auto;
}

/* ── ===================================================== ──
   ABOUT ME
── ===================================================== ── */
.about-me {
  background: var(--clr-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--clr-brand);
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--clr-text-mid);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text p:last-of-type { margin-bottom: 1.5rem; }

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* ── ===================================================== ──
   HOW CAN I HELP
── ===================================================== ── */
.help-section {
  background: var(--clr-surface);
}

.help-section .section-intro h2 {
  color: var(--clr-brand);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.help-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--clr-bg);
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.help-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.help-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-brand);
  margin-bottom: 0.5rem;
}

.help-card-body p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ── ===================================================== ──
   CTA BANNER
── ===================================================== ── */
.cta-banner {
  background: var(--clr-brand);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

/* ── ===================================================== ──
   FOOTER
── ===================================================== ── */
.site-footer {
  background: var(--clr-text);
  color: rgba(255,255,255,0.6);
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--clr-accent); }

/* ── ===================================================== ──
   RESPONSIVE
── ===================================================== ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

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

  .about-photo {
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
}
