/* Dave Peters Digital — site styles */
:root {
  --color-primary: #363470;
  --color-primary-hover: #2a2858;
  /* Body and headings: brand purple (no black/grey body copy) */
  --color-text: #363470;
  --color-text-muted: #5e5c85;
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-border: #e8e6e1;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(54, 52, 112, 0.08);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.header-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.header-top {
  position: relative;
  width: 100%;
}

.header-logo-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.header-nav-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.35rem;
}

.header-subnav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.header-areas {
  margin: 0;
  font-size: clamp(0.8125rem, 1.85vw + 0.35rem, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.35;
}

.header-cta.btn-primary {
  color: #fff;
}

.header-cta.btn-primary:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .header-nav-bar {
    padding-top: 0.45rem;
  }

  .header-subnav {
    gap: 0.55rem;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-link:hover {
  color: inherit;
}

/* Logo frame 2560×1440 (16:9); 20% smaller than prior size (width × 0.8 ⇒ height × 0.8) */
.logo-mark-crop {
  flex-shrink: 0;
  width: min(100%, clamp(176px, 57.6vw, 416px));
  aspect-ratio: 2560 / 1440;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.logo-img-cropped {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

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

.btn-outline:hover {
  background: rgba(54, 52, 112, 0.06);
  color: var(--color-primary-hover);
}

/* Hero */
.hero {
  padding: 2.25rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .hero {
    padding: 2.75rem 1.5rem 3rem;
  }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-tagline-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  text-align: center;
}

.hero-headline {
  margin: 0;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.25vw + 0.45rem, 1.0625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  display: block;
}

.hero-subheading {
  margin: 0.25rem 0 0;
  display: block;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.25vw + 0.45rem, 1.0625rem);
  line-height: 1.25;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section--tight {
  padding-top: 2.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section-lead-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin: 0 0 2.5rem;
}

.section-lead--nowrap {
  display: inline-block;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(0.62rem, 1.05vw + 0.42rem, 1.0625rem);
  letter-spacing: -0.01em;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  border-color: rgba(54, 52, 112, 0.2);
  box-shadow: 0 8px 32px rgba(54, 52, 112, 0.1);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(54, 52, 112, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Areas */
.areas-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.areas-list li {
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(54, 52, 112, 0.08);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 280px 1fr;
    align-items: center;
  }
}

.about-photo {
  margin: 0 auto;
  max-width: 280px;
}

.about-photo-frame {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-border), rgba(54, 52, 112, 0.12));
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-placeholder {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

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

/* Contact */
.contact-section {
  background: linear-gradient(165deg, var(--color-primary) 0%, #2a2858 100%);
  color: #fff;
}

.contact-section .section-title,
.contact-section .section-lead {
  color: #fff;
}

.contact-section .section-lead {
  opacity: 0.9;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 32rem;
}

.contact-card p {
  margin: 0 0 1.25rem;
  opacity: 0.95;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-details a {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  margin: 0.35rem 0;
}
