/* ============================================
   KINGSMERE PRESS — Stylesheet
   "The House That Bridges Eras"
   ============================================ */

:root {
  --charcoal: #1A1A1A;
  --charcoal-light: #222222;
  --silver: #A8A8A8;
  --silver-light: #C8C8C8;
  --silver-bright: #E0E0E0;
  --cream: #FAFAFA;
  --parchment: #F5F0E8;
  --gold-muted: #8A8070;
  --font-serif: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--charcoal);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(168, 168, 168, 0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

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

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--silver);
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(60, 60, 60, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, var(--charcoal) 0%, #111 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
}

.hero-crest {
  width: 280px;
  height: auto;
  margin-bottom: 40px;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
}

.hero-rule {
  width: 80px;
  height: 1px;
  background: var(--silver);
  margin: 24px auto;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--silver);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 36px;
  border: 1px solid var(--silver);
  color: var(--silver-light);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--charcoal);
}

.section-light {
  background: var(--parchment);
  color: var(--charcoal);
}

.section-accent {
  background: var(--charcoal-light);
  padding: 48px 0;
  border-top: 1px solid rgba(168, 168, 168, 0.1);
  border-bottom: 1px solid rgba(168, 168, 168, 0.1);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--silver);
  text-align: center;
  margin-bottom: 16px;
}

.section-light .section-label {
  color: var(--gold-muted);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: 2px;
}

.section-light .section-heading {
  color: var(--charcoal);
}

.section-divider {
  width: 60px;
  height: 1px;
  margin: 24px auto 48px;
  background: var(--silver);
  opacity: 0.4;
}

.section-light .section-divider {
  background: var(--charcoal);
  opacity: 0.2;
}

/* ── About / Doctrine ── */
.doctrine-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-muted);
  margin-top: 8px;
}

.about-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 24px;
}

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

.doctrine-text {
  max-width: 720px;
  text-align: left;
}

.doctrine-text p {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 20px;
}

/* ── Pillars ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.pillar {
  text-align: center;
  padding: 32px 16px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--silver);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--cream);
}

.pillar-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--silver);
}

/* ── Industries ── */
.industries {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--silver);
  letter-spacing: 1px;
}

.industries-dot {
  color: rgba(168, 168, 168, 0.4);
  font-style: normal;
}

/* ── Contact ── */
.contact-intro {
  text-align: center;
  color: var(--silver);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 168, 168, 0.2);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(168, 168, 168, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--silver);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A8A8A8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--charcoal);
  color: var(--cream);
}

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

.form-submit {
  align-self: center;
  padding: 14px 48px;
  background: transparent;
  border: 1px solid var(--silver);
  color: var(--silver-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

/* ── Footer ── */
.footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(168, 168, 168, 0.1);
}

.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.6;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--silver);
  opacity: 0.6;
  letter-spacing: 1px;
}

.footer-text-small {
  font-size: 0.7rem;
  margin-top: 4px;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger pillar animations */
.pillar.fade-in:nth-child(2) { transition-delay: 0.15s; }
.pillar.fade-in:nth-child(3) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-crest {
    width: 150px;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .industries {
    font-size: 0.95rem;
    gap: 8px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .nav-logo-text {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .hero-crest {
    width: 120px;
  }

  .hero-title {
    letter-spacing: 2px;
  }
}