/* ===== CSS Variables ===== */
:root {
  --color-bg: #EBE9E2;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent: #FD4023;
  --color-border: #d5d3cc;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Courier New', monospace;
  --max-width: 720px;
  --spacing-unit: 1rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 1.5);
}

/* ===== Header & Navigation ===== */
header {
  padding: calc(var(--spacing-unit) * 2) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-accent);
}

nav {
  display: flex;
  gap: calc(var(--spacing-unit) * 1.5);
}

nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Main Content ===== */
main {
  padding: calc(var(--spacing-unit) * 4) 0;
  min-height: calc(100vh - 200px);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-unit);
  margin-top: calc(var(--spacing-unit) * 3);
}

h3 {
  font-size: 1.125rem;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

p {
  margin-bottom: var(--spacing-unit);
  color: var(--color-text-muted);
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ===== Links ===== */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* ===== Hero Section ===== */
.hero {
  padding: calc(var(--spacing-unit) * 2) 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-unit);
}

.hero .lead {
  max-width: 540px;
}

/* ===== Page Links / Cards ===== */
.page-links {
  display: grid;
  gap: var(--spacing-unit);
  margin-top: calc(var(--spacing-unit) * 3);
}

.page-link {
  display: block;
  padding: calc(var(--spacing-unit) * 1.5);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-link:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
  opacity: 1;
}

.page-link h3 {
  margin-bottom: 0.25rem;
}

.page-link p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ===== Lists ===== */
.item-list {
  list-style: none;
  margin-top: calc(var(--spacing-unit) * 1.5);
}

.item-list li {
  padding: calc(var(--spacing-unit) * 1.25) 0;
  border-bottom: 1px solid var(--color-border);
}

.item-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.item-list .meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ===== Services ===== */
.service {
  padding: calc(var(--spacing-unit) * 2) 0;
  border-bottom: 1px solid var(--color-border);
}

.service:last-child {
  border-bottom: none;
}

.service h3 {
  font-size: 1.25rem;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.service ul {
  margin-left: 1.25rem;
  margin-top: var(--spacing-unit);
  color: var(--color-text-muted);
}

.service li {
  margin-bottom: 0.5rem;
}

/* ===== Contact ===== */
.contact-links {
  margin-top: calc(var(--spacing-unit) * 2);
}

.contact-links a {
  display: inline-block;
  margin-right: calc(var(--spacing-unit) * 1.5);
  margin-bottom: var(--spacing-unit);
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.25);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
}

.contact-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  opacity: 1;
}

/* ===== Footer ===== */
footer {
  padding: calc(var(--spacing-unit) * 2) 0;
  border-top: 1px solid var(--color-border);
}

footer p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

footer .footer-contact {
  margin-top: 0.5rem;
}

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

footer .footer-contact a:hover {
  color: var(--color-accent);
}

/* ===== Profile Image ===== */
.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  filter: grayscale(100%);
}

/* ===== Testimonials ===== */
.testimonial {
  padding: calc(var(--spacing-unit) * 1.5) 0;
  border-bottom: 1px solid var(--color-border);
}

.testimonial:last-child {
  border-bottom: none;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial .attribution {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.testimonial .context {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* ===== Client Logos ===== */
.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 1.5);
  margin-top: var(--spacing-unit);
}

.client-list span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ===== Newsletter Section ===== */
.newsletter-section {
  margin-top: calc(var(--spacing-unit) * 3);
  padding: calc(var(--spacing-unit) * 2);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: transparent;
}

/* ===== Simple List ===== */
.simple-list {
  list-style: none;
  margin-top: var(--spacing-unit);
}

.simple-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.simple-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.simple-list .meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.newsletter-section h2 {
  margin-top: 0;
}

.newsletter-section iframe {
  margin-top: var(--spacing-unit);
  max-width: 100%;
}

/* ===== Accent Elements ===== */
.accent {
  color: var(--color-accent);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--color-border);
  border-radius: 3px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: var(--spacing-unit);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: calc(var(--spacing-unit) * 0.75) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .contact-links a {
    display: block;
    margin-right: 0;
    text-align: center;
  }
}
