/* ==========================================================================
   23 FLOORING, LLC - ARCHITECTURAL DESIGN SYSTEM
   Location: Kansas City, Kansas, USA
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EFEA;
  --bg-card: #FFFFFF;
  --bg-dark: #1C1B18;
  --bg-dark-surface: #262522;
  
  --text-main: #1C1B18;
  --text-muted: #66625D;
  --text-light: #948F87;
  --text-white: #FAF8F5;
  --text-white-muted: #BDB8B0;
  
  --accent-wood: #A67C52;
  --accent-wood-hover: #8C6239;
  --accent-wood-light: #F4ECE3;
  
  --border-light: #E8E3DA;
  --border-medium: #D8D2C7;
  --border-dark: #33312D;
  
  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout & Spacing */
  --max-width: 1240px;
  --header-height: 94px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(28, 27, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 27, 24, 0.06);
  --shadow-lg: 0 16px 40px rgba(28, 27, 24, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-sm {
  font-size: 0.9rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-wood);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--accent-wood);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

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

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--text-white);
}

.section-dark p {
  color: var(--text-white-muted);
}

.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.center .section-label::before {
  display: none;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
}

.btn-primary:hover {
  background-color: var(--accent-wood);
  border-color: var(--accent-wood);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-main);
}

.btn-accent {
  background-color: var(--accent-wood);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-wood-hover);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 235px;
  display: block;
}

/* Compact Right-side Navigation Group (Nav + CTA together) */
.header-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--accent-wood);
}

.nav-cta-btn {
  height: 48px;
  padding: 13px 24px;
  font-size: 0.925rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  border-top: 1px solid var(--border-light);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-nav-link.active {
  color: var(--accent-wood);
}

.mobile-contact-info {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* Hero Section */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero-title {
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 36px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: rgba(28, 27, 24, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-wood);
}

.hero-badge-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge-sub {
  font-size: 0.8rem;
  color: var(--text-white-muted);
}

/* Feature / Cards Component */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-secondary);
  color: var(--accent-wood);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-title {
  margin-bottom: 12px;
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
}

.process-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-wood);
  margin-bottom: 16px;
  font-family: var(--font-family);
  opacity: 0.9;
}

.process-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* Page Header (About, Services, Contact, Legal) */
.page-header {
  padding: 44px 0 28px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.page-header-container {
  max-width: 760px;
}

/* Verified Entity Details Box */
.entity-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-top: 32px;
}

.entity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.entity-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--accent-wood-light);
  color: var(--accent-wood-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.entity-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entity-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.entity-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Contact Form & Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-wood-light);
  color: var(--accent-wood);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-wood);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
}

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

.form-feedback {
  display: none;
  padding: 16px;
  margin-top: 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-feedback.success {
  display: block;
  background-color: #EBF6ED;
  color: #1E6B34;
  border: 1px solid #C4E7CB;
}

.form-feedback.error {
  display: block;
  background-color: #FDF2F2;
  color: #9B1C1C;
  border: 1px solid #F8B4B4;
}

/* Legal / Privacy Page Content */
.legal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 48px;
  max-width: 920px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-white-muted);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-white-muted);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-white-muted);
}

.footer-link:hover {
  color: var(--accent-wood-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 76px;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* Header & Navigation */
  .logo-img {
    height: 42px;
    width: auto;
    max-width: 175px;
    display: block;
  }

  .header-nav-wrapper {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  /* Hero & Page Header */
  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-desc {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }

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

  .hero-image-wrapper {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }

  .hero-image {
    height: 320px;
  }

  .page-header {
    padding: 36px 0 24px;
    text-align: center;
  }

  .page-header-container {
    margin-inline: auto;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
    text-align: center;
  }

  /* MANDATORY MOBILE CARD CENTERING RULE */
  .card,
  .process-step,
  .entity-card,
  .contact-form-card,
  .legal-content {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid,
  .process-grid,
  .entity-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 20px;
  }

  /* Contact Form Mobile Optimization */
  .contact-form-card {
    padding: 28px 20px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents mobile browser auto-zoom */
    padding: 14px 16px;
    min-height: 48px;
    box-sizing: border-box;
  }

  .contact-form-card .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  /* Footer Mobile Optimization */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-logo {
    margin-inline: auto;
  }

  .footer-links {
    align-items: center;
  }

  .footer-desc {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo-img {
    max-width: 155px;
  }

  .hero-image {
    height: 260px;
  }

  .card,
  .process-step,
  .entity-card,
  .contact-form-card {
    padding: 24px 18px;
  }

  .legal-content {
    padding: 24px 18px;
  }
}
