/* === Variables === */
:root {
  --blue:       #4878A8;
  --green:      #3C6B4E;
  --terracotta: #C44E38;
  --cream:      #F7F4F0;
  --white:      #FFFFFF;
  --text:       #2B2520;
  --muted:      #7A6E67;
  --border:     #E8E2DA;

  --nav-height:   64px;
  --section-pad:  96px;
  --inner-max:    960px;

  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Nav === */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 244, 240, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(43, 37, 32, 0.07);
}

.nav-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-logo {
  height: 30px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  color: var(--terracotta) !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  color: #ad4130 !important;
}

/* === Hero === */
#hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: calc(var(--nav-height) + 48px) 24px 180px;
  text-align: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 36px;
  mix-blend-mode: multiply;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--terracotta);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn:hover {
  background: #ad4130;
  border-color: #ad4130;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 78, 56, 0.28);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
}

/* === Section shared === */
.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.2;
}

/* === About === */
#about {
  background: var(--white);
}

.about-text {
  max-width: 640px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 300;
  font-size: 17px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text a {
  color: var(--blue);
  font-weight: 400;
}

/* === Services === */
#services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px 36px;
  border-top: 3px solid var(--accent, var(--blue));
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(43, 37, 32, 0.09);
}

.service-num {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, var(--blue));
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* === Contact === */
#contact {
  background: var(--white);
}

.contact-inner {
  text-align: center;
}

.contact-sub {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 32px;
  font-size: 17px;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 7px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn-linkedin:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  text-decoration: none;
}

/* === Footer === */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.45);
  padding: 28px 24px;
}

.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.35);
}

.footer-linkedin {
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-linkedin:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
    --nav-height:  56px;
  }

  .nav-links {
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }


  .hero-logo {
    width: 110px;
    margin-bottom: 28px;
  }

  #hero {
    padding-bottom: 120px;
  }

  #hero h1 br,
  .hero-sub br {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 56px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  /* Hide text label, keep logo — saves ~100px on small nav */
  .nav-name {
    display: none;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 14px;
  }

  #hero {
    padding-bottom: 80px;
  }

  .section-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-logo {
    width: 90px;
  }

  .service-card {
    padding: 26px 22px 30px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}