/* =========================================
   Atom Tech — Global Styles
   Two themes: [data-theme="dark"] & [data-theme="light"]
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Nova+Mono&family=Inter:wght@300;400;500;600&display=swap');

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; transition: color 0.2s ease; }

/* =========================================
   Design Tokens — Dark Theme (default)
   ========================================= */
:root,
[data-theme="dark"] {
  --bg:           #1c1917;   /* warm charcoal, not pure black */
  --bg-raised:    #292524;   /* cards, nav */
  --bg-sunken:    #141210;   /* subtle inset */
  --border:       #3d3835;
  --border-light: #6b6460;

  --orange:       #bf5700;
  --orange-text:  #ff8a3d;   /* brighter orange for small text on dark bg (AA) */
  --orange-btn:   #bf5700;   /* button bg on dark theme */
  --orange-hover: #d96a00;
  --orange-muted: rgba(191,87,0,0.12);
  --orange-glow:  rgba(191,87,0,0.20);

  --text-primary:  #f5f0eb;
  --text-secondary:#c9c0b9;
  --text-muted:    #9a8f88;
  --border-field:  #6b6460;   /* visible field boundary on dark inputs */

  --font:      'Nova Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 16px rgba(0,0,0,0.35);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.3);
  --transition: 0.22s ease;

  /* Noise texture — SVG data URI grain */
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* =========================================
   Design Tokens — Light Theme
   ========================================= */
[data-theme="light"] {
  --bg:           #faf7f2;   /* warm cream */
  --bg-raised:    #ffffff;
  --bg-sunken:    #f0ebe3;

  --border:       #e2d9ce;
  --border-light: #cfc6bb;
  --border-field: #8a7d70;   /* AA-visible field boundary (~3:1 on inputs) */

  --orange:       #bf5700;   /* brand orange — large text / accents / icons only */
  --orange-text:  #9a4600;   /* AA-compliant orange for small text & links (~5.9:1 on white) */
  --orange-btn:   #9a4600;   /* AA button bg: white text ~5.9:1 */
  --orange-hover: #7d3900;
  --orange-muted: rgba(191,87,0,0.08);
  --orange-glow:  rgba(191,87,0,0.15);

  --text-primary:  #1c1917;
  --text-secondary:#4a3f38;
  --text-muted:    #5f554e;   /* darkened for AA on cream & sunken backgrounds (~6.5:1) */

  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.07);

  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* =========================================
   Base
   ========================================= */
/* All headings → Nova Mono */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
}

/* Everything else → Inter */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: var(--texture);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section-label,
.btn,
.nav-links a,
.pillars-list li,
.service-price,
.project-type,
.pullquote-attr,
.service-checklist-label,
.footer-nav a,
.hero-eyebrow,
.why-label,
.stat-card .label,
.theme-toggle {
  font-family: var(--font);
}


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

/* =========================================
   Focus visibility (WCAG 2.4.7)
   ========================================= */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Ensure the offset ring shows against dark surfaces too */
[data-theme="dark"] :focus-visible {
  outline-color: var(--orange-text);
}

/* =========================================
   Skip to content link (WCAG 2.4.1)
   ========================================= */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--orange-btn);
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

section { padding: 80px 0; }

/* =========================================
   Theme Toggle
   ========================================= */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange-text);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-raised);
  background-image: var(--texture);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

/* Hero wordmark — big brand mark at top */
.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  text-decoration: none;
}

.hero-wordmark {
  height: 180px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
}

[data-theme="light"] .hero-wordmark {
  mix-blend-mode: multiply;
}

[data-theme="dark"] .hero-wordmark {
  mix-blend-mode: lighten;
}

@media (max-width: 768px) {
  .hero-wordmark { height: 120px; }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-text);
}

/* ── Orange nav bar in dark mode ── */
[data-theme="dark"] .navbar {
  background: var(--orange);
  background-image: var(--texture);
  border-bottom-color: var(--orange-hover);
}

[data-theme="dark"] .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #fff;
}

/* Logo reads on orange: keep the mark visible */
[data-theme="dark"] .nav-logo-img {
  mix-blend-mode: normal;
}

[data-theme="dark"] .nav-toggle span {
  background: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
/* =========================================
   Hero — Option D: oversized type + location strip
   ========================================= */
.hero {
  padding-top: 110px;
  padding-bottom: 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Dot-grid background accent */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-light) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 0%, transparent 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 0;
  color: var(--text-primary);
}

.hero h1 .accent {
  color: var(--orange);
}

/* Quirky underline squiggle on hero removed */

/* Sub-row: description left, CTAs right */
.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.8;
  margin: 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

/* Location strip */
.hero-location-strip {
  position: relative;
  z-index: 1;
  background: var(--bg-sunken);
  background-image: var(--texture);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  gap: 8px 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.hero-location-strip span {
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-location-strip .loc-dot {
  color: var(--orange);
  font-size: 0.45rem;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .hero-sub-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero h1 { letter-spacing: -1px; }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--orange-text);
  border-color: var(--orange-text);
}

.btn-outline:hover {
  background: var(--orange-btn);
  color: #fff;
  border-color: var(--orange-btn);
}

/* =========================================
   Pillars strip
   ========================================= */
.pillars {
  background: var(--bg-sunken);
  background-image: var(--texture);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.pillars-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  list-style: none;
}

.pillars-list li {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillars-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* =========================================
   Section headings
   ========================================= */
.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.section-header { margin-bottom: 52px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* =========================================
   Cards
   ========================================= */
.service-card {
  background: var(--bg-raised);
  background-image: var(--texture);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--orange-glow);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--orange);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.service-price {
  margin-top: 18px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--orange-text);
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* =========================================
   Who We Serve
   ========================================= */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.who-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.who-image img {
  width: 100%;
  height: auto;
  display: block;
}

.client-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 28px;
}

.client-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.client-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* =========================================
   Recent Projects
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-raised);
  background-image: var(--texture);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--orange-glow);
  color: inherit;
}

.project-logo {
  height: 48px;
  display: flex;
  align-items: center;
}

.project-logo img {
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

[data-theme="dark"] .project-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

[data-theme="light"] .project-logo img {
  filter: none;
  opacity: 0.9;
}

.project-card:hover .project-logo img { opacity: 1; }

.project-logo-text span {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-secondary);
  letter-spacing: -0.5px;
}

.project-logo-text span em {
  font-style: normal;
  color: var(--orange);
}

.project-type {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 6px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-text);
}

/* =========================================
   Why Atom Tech
   ========================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.why-card {
  background: var(--bg-raised);
  background-image: var(--texture);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.why-number {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 8px;
}

.why-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.why-photo { display: none; }

/* =========================================
   About page
   ========================================= */
.page-header {
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-light) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 0%, transparent 100%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-header h1 span { color: var(--orange); }

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.8;
}

/* About main grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-text h2 span { color: var(--orange); }

.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-raised);
  background-image: var(--texture);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-card .number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}



/* Pullquote with photo */
.pullquote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pullquote-image {
  overflow: hidden;
}

.pullquote-image img {
  width: 100%;
  height: auto;
  display: block;
}

.pullquote-text {
  background: var(--bg-raised);
  background-image: var(--texture);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pullquote-text blockquote {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.pullquote-attr {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange-text);
}

/* =========================================
   Contact page
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.contact-info h2 span { color: var(--orange); }

.contact-info > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item span,
.contact-item a { color: var(--text-secondary); font-size: 0.95rem; }

.contact-item a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-item a:hover { color: var(--orange-text); }

/* Contact form */
.contact-form {
  background: var(--bg-raised);
  background-image: var(--texture);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-sunken);
  border: 1px solid var(--border-field);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  outline: none;
}

.form-group select option { background: var(--bg-raised); }

.form-group textarea { height: 130px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Contact bottom photo row */
.contact-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-photo-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-photo-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background: var(--bg-sunken);
  background-image: var(--texture);
  border-top: 1px solid var(--border);
  padding: 52px 0;
  text-align: center;
}

.footer-logo {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.footer-logo-img {
  height: auto;
  width: 100%;
  max-width: 360px;
  display: block;
  mix-blend-mode: lighten;
}

[data-theme="light"] .footer-logo-img {
  mix-blend-mode: multiply;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 28px;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--orange-text); }

.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* =========================================
   Checklist (contact page)
   ========================================= */
.service-checklist {
  margin-top: 40px;
}

.service-checklist-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 14px;
}

.service-checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-checklist li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
  .about-grid,
  .who-grid,
  .contact-grid,
  .contact-photo-row,
  .pullquote-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pullquote-image { aspect-ratio: 16 / 7; }

  .stats-grid,
  .why-grid { grid-template-columns: 1fr 1fr; }

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

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 28px 22px; }
}

@media (max-width: 540px) {
  .stats-grid,
  .why-grid { grid-template-columns: 1fr; }

  .client-list { grid-template-columns: 1fr; }

  .hero h1 { letter-spacing: -1px; }

  .hero-cta { flex-direction: column; align-items: center; }

  .theme-toggle { bottom: 16px; right: 16px; }
}

/* =========================================
   FAQ (AEO)
   ========================================= */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-raised);
  background-image: var(--texture);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 4px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--orange);
}

.faq-item summary {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-primary);
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Plus / minus indicator */
.faq-item summary::after {
  content: '+';
  font-family: var(--font);
  font-size: 1.4rem;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus */
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0;
}

/* =========================================
   Reduced motion (WCAG 2.3.3)
   Respect users who prefer minimal animation
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
