/* Dan Zigmond - Executive Coaching Website
   Clean, warm, professional design */

/* ==================== CSS Variables ==================== */
:root {
  /* Colors - warm and professional */
  --color-primary: #2d5a5a;      /* Deep teal - professional but warm */
  --color-primary-light: #3d7a7a;
  --color-primary-dark: #1d4a4a;
  --color-accent: #c9a959;        /* Warm gold accent */
  --color-text: #2c3e40;          /* Dark warm gray */
  --color-text-light: #4f6163;    /* Medium gray for secondary text - improved contrast */
  --color-background: #fdfcfa;    /* Warm off-white */
  --color-background-alt: #f5f3ef; /* Slightly darker for sections */
  --color-white: #ffffff;
  --color-border: #e5e2dc;

  /* Typography - responsive scale */
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-h1: clamp(2.3rem, 4vw, 3.25rem);
  --fs-h2: clamp(1.7rem, 2.5vw, 2.1rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.55rem);
  --fs-body: 1.125rem;
  --lh-body: 1.75;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Container */
  --container-max: 1100px;
  --container-narrow: 750px;

  /* Radius and shadow tokens */
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-sm: 0 6px 20px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.10);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-background);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

a:hover {
  color: var(--color-primary-light);
}

/* Link affordance in content areas */
main a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45, 90, 90, 0.35);
}

main a:not(.btn):hover {
  text-decoration-color: currentColor;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==================== Typography ==================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;  /* Increased for calm authority */
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
  max-width: 65ch;  /* Constrain for readability */
}

.hero p, .card p {
  max-width: none;
}

.lead {
  font-size: 1.375rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section-alt {
  background-color: var(--color-background-alt);
}

/* ==================== Header & Navigation ==================== */
header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);  /* Subtle separation */
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;  /* Increased for calm authority */
  color: var(--color-text);
  letter-spacing: 0.02em;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

nav a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  padding: var(--spacing-xs) 0;
  position: relative;
}

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

nav a.active {
  font-weight: 600;  /* Strengthen active state visibility */
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

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

/* ==================== Section Spacing Variants ==================== */
.section-tight {
  padding: var(--spacing-lg) 0;
}

.section-hero {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

/* Section title accent bar */
.section-title {
  position: relative;
  padding-left: 1.25rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 1.2em;
  background: var(--color-accent);
}

/* ==================== Hero Section ==================== */
.hero {
  padding: var(--spacing-xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, var(--color-white), var(--color-background));
  border-bottom: 1px solid var(--color-border);
}

.hero-content {
  max-width: 700px;
}

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

.hero .lead {
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-with-image {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;  /* Override content link styles */
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(45,90,90,0.25);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45,90,90,0.30);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* ==================== Cards & Features ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background-color: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

/* ==================== Credentials / Logos ==================== */
.credentials {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.credentials p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md) var(--spacing-lg);
  opacity: 1;  /* Avoid 'disabled' feel */
}

.logo-row span {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-light);
  opacity: 0.85;
}

/* ==================== Testimonials ==================== */
.testimonial {
  background-color: var(--color-white);
  padding: var(--spacing-md);
  border-left: 4px solid var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.testimonial cite {
  font-style: normal;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ==================== About / Bio ==================== */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.bio-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bio-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-background-alt);
  border: 2px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--spacing-sm);
}

/* ==================== Services List ==================== */
.services-list {
  list-style: none;
}

.services-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

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

.services-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--color-accent);
  flex: 0 0 8px;
}

/* ==================== Books ==================== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.book-item {
  display: flex;
  flex-direction: column;
}

.book-cover {
  background-color: var(--color-background-alt);
  height: 300px;
  margin-bottom: var(--spacing-sm);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.book-cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.book-cover img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.book-item h3 {
  margin-bottom: var(--spacing-xs);
}

.book-item .publisher {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ==================== Contact ==================== */
.contact-info {
  font-size: 1.125rem;
}

.contact-info a {
  color: var(--color-primary);
}

.contact-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.contact-links a {
  color: var(--color-text-light);
}

.contact-links a:hover {
  color: var(--color-primary);
}

/* ==================== Footer ==================== */
footer {
  background-color: var(--color-text);
  color: var(--color-background-alt);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
}

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

footer p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.8;
}

footer a {
  color: var(--color-background-alt);
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
}

/* ==================== Responsive ==================== */
@media (max-width: 420px) {
  .container, .container-narrow {
    padding: 0 var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.15rem;
  }

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

  .hero {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  section {
    padding: var(--spacing-lg) 0;
  }

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

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: 0;
  }

  nav li {
    border-bottom: 1px solid var(--color-border);
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 0.9rem 0;  /* Increased tap target */
  }

  .bio-section {
    grid-template-columns: 1fr;
  }

  .bio-image {
    max-width: 280px;
    margin: 0 auto var(--spacing-md);
  }

  .bio-image img {
    aspect-ratio: auto;
  }

  .hero-with-image {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    max-width: 280px;
    margin: 0 auto var(--spacing-md);
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero .btn {
    margin: 0 auto;
  }

  .contact-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  footer .container {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ==================== Utility Classes ==================== */

/* Response time note under CTAs */
.response-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* 3-step process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.process-step {
  text-align: center;
  padding: var(--spacing-md);
}

.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.process-step h3 {
  margin-bottom: var(--spacing-xs);
}

.process-step p {
  max-width: none;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Consistent bottom CTA section (legacy) */
.bottom-cta {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.bottom-cta h2 {
  margin-bottom: var(--spacing-xs);
}

.bottom-cta p {
  max-width: none;
  margin-bottom: var(--spacing-md);
}

/* ==================== CTA Block (new) ==================== */
.cta-section {
  padding: var(--spacing-xl) 0;
}

.cta-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: calc(var(--spacing-md) + 0.5rem);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.cta-title {
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: 1.25rem;
}

.cta-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 1.2em;
  background-color: var(--color-accent);
}

.cta-lead {
  color: var(--color-text-light);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  max-width: 65ch;
}

.cta-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.cta-meta {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.98rem;
}

.cta-card a:focus-visible,
.cta-card button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .cta-card {
    padding: var(--spacing-md);
  }

  .cta-actions .btn {
    width: 100%;
  }

  .cta-lead {
    font-size: 1.1rem;
  }
}
