/* ==========================================================================
   Schmiedeler & Associates Inc. — Institutional site styles
   ========================================================================== */

:root {
  --color-bg: #fafbfc;
  --color-bg-alt: #f0f2f5;
  --color-surface: #ffffff;
  --color-text: #1a1d23;
  --color-text-muted: #4b5563;
  --color-accent: #b45309;
  --color-accent-light: #d97706;
  --color-navy: #1e293b;
  --color-navy-dark: #0f172a;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  --container: min(1120px, 100vw - 2rem);
  --radius: 6px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-navy);
  font-weight: 600;
}

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

a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* Layout */
.container {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--color-navy-dark);
  margin: 0 0 var(--space-lg);
  letter-spacing: 0.02em;
}

.section-intro {
  max-width: 56ch;
  margin: 0 0 var(--space-xl);
  color: var(--color-text-muted);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--color-navy-dark);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

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

.logo-inc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-navy);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.95rem;
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .nav.is-open {
    max-height: 80vh;
    opacity: 1;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

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

  .nav a {
    display: block;
    padding: var(--space-sm) 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, #334155 100%);
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-inner {
  max-width: 42rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin: 0 0 var(--space-sm);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: #fff;
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  margin: 0 0 var(--space-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--color-accent-light);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

/* About */
.about-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

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

.about-content p {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

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

.meta-list {
  margin: 0;
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.meta-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.meta-list dt:first-child {
  margin-top: 0;
}

.meta-list dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--color-navy);
}

/* Services */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.service-card {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--color-navy);
  margin: 0 0 var(--space-xs);
}

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

.service-icon {
  display: block;
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-bottom: var(--space-xs);
}

/* Products grid */
.products-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.products-grid li {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  font-weight: 500;
  color: var(--color-navy);
}

/* Manufacturers */
.manufacturers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.mfg-name {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
  box-shadow: var(--shadow);
  letter-spacing: 0.05em;
}

/* Contact */
.contact-block {
  max-width: 36rem;
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-block p {
  margin: 0 0 var(--space-sm);
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-cta {
  margin-top: var(--space-md) !important;
  font-size: 1.05rem;
}

.contact-cta a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.site-footer .container {
  max-width: var(--container);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 var(--space-xs);
}

.footer-tagline {
  font-size: 0.95rem;
  margin: 0 0 var(--space-md);
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
