/* ============================================================
   StorageContainerRules.com — Main Stylesheet
   Aesthetic: Industrial-editorial. Steel + amber + white space.
   Fonts: Barlow Condensed (headlines) + Source Serif 4 (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* === TOKENS === */
:root {
  --steel: #1a1f2e;
  --steel-mid: #2c3347;
  --steel-light: #3d4560;
  --amber: #e8901a;
  --amber-light: #f5a93a;
  --amber-pale: #fff3e0;
  --cream: #faf8f4;
  --white: #ffffff;
  --gray-100: #f4f3f0;
  --gray-200: #e8e6e0;
  --gray-400: #9e9a90;
  --gray-600: #6b6760;
  --gray-800: #3a3733;
  --red-warn: #c0392b;
  --green-ok: #27ae60;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1140px;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-light); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* === SITE HEADER === */
.site-header {
  background: var(--steel);
  border-bottom: 3px solid var(--amber);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 900;
  color: var(--white); letter-spacing: -0.5px;
  text-transform: uppercase;
}
.site-logo span { color: var(--amber); }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 600;
  color: var(--gray-400); letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white); background: var(--steel-mid);
  text-decoration: none;
}
.nav-cta {
  background: var(--amber) !important;
  color: var(--steel) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--amber-light) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--white);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: currentColor; margin: 5px 0;
  transition: transform 0.2s;
}

/* === HERO === */
.hero {
  background: var(--steel);
  background-image:
    repeating-linear-gradient(
      0deg, transparent, transparent 39px,
      rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 39px,
      rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px
    );
  padding: 80px 24px 72px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light), var(--amber));
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  color: var(--amber); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.0;
  color: var(--white);
  text-transform: uppercase; letter-spacing: -1px;
  max-width: 820px; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-sub {
  font-family: var(--font-body);
  font-size: 1.15rem; color: rgba(255,255,255,0.72);
  max-width: 580px; margin-bottom: 36px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 28px; border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.18s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--amber); color: var(--steel); border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-light); border-color: var(--amber-light); }
.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-steel {
  background: var(--steel); color: var(--white); border-color: var(--steel);
}
.btn-steel:hover { background: var(--steel-mid); }

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
}
.breadcrumb-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--gray-600);
}
.breadcrumb-inner a { color: var(--gray-600); }
.breadcrumb-inner a:hover { color: var(--amber); }
.breadcrumb-inner .sep { color: var(--gray-400); }
.breadcrumb-inner .current { color: var(--gray-800); font-weight: 500; }

/* === PAGE HEADER (inner pages) === */
.page-header {
  background: var(--steel-mid);
  padding: 48px 24px 44px;
  border-bottom: 3px solid var(--amber);
}
.page-header .eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--amber); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
}
.page-header h1 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white); text-transform: uppercase;
  letter-spacing: -0.5px; line-height: 1.05;
  max-width: 760px; margin-bottom: 16px;
}
.page-header .subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem; max-width: 600px;
}

/* === SECTIONS === */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-100); }
.section--steel { background: var(--steel); color: var(--white); }
.section--amber { background: var(--amber-pale); }
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase; letter-spacing: -0.5px;
  color: var(--steel); margin-bottom: 8px;
}
.section--steel .section-title { color: var(--white); }
.section-sub {
  font-size: 1rem; color: var(--gray-600);
  margin-bottom: 40px; max-width: 560px;
}
.section--steel .section-sub { color: rgba(255,255,255,0.6); }
.section-header { margin-bottom: 40px; }
.section-divider {
  width: 48px; height: 4px;
  background: var(--amber); margin: 12px 0 20px;
}

/* === CARDS === */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 28px; transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--amber); }
.card-icon {
  font-size: 2rem; margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: 0.3px; color: var(--steel);
  margin-bottom: 10px;
}
.card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.6; }
.card a.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--amber);
}

/* === STATE GRID === */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.state-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--amber);
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: all 0.18s;
  text-decoration: none !important;
}
.state-card:hover {
  background: var(--steel); border-color: var(--steel);
  border-left-color: var(--amber);
  box-shadow: var(--shadow);
}
.state-card .abbr {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.4rem; color: var(--steel);
  line-height: 1; display: block; margin-bottom: 2px;
}
.state-card:hover .abbr { color: var(--amber); }
.state-card .name {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px;
}
.state-card:hover .name { color: rgba(255,255,255,0.65); }

/* === ALERT BOXES === */
.alert {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  border-left: 4px solid;
  font-size: 0.95rem;
}
.alert--warn {
  background: #fff8e1; border-color: #f59f00; color: #5c4a00;
}
.alert--info {
  background: #e8f4fd; border-color: #2e86de; color: #1a4a6e;
}
.alert--ok {
  background: #e8f8f0; border-color: var(--green-ok); color: #1a4a2e;
}
.alert--danger {
  background: #fdecea; border-color: var(--red-warn); color: #5a1a15;
}
.alert strong { font-weight: 600; display: block; margin-bottom: 4px; }

/* === TABLES === */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead th {
  background: var(--steel);
  color: var(--white);
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 12px 16px; text-align: left;
  font-size: 0.8rem;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
tbody tr:hover { background: var(--gray-100); }
tbody tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  padding: 3px 8px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge--yes { background: #e8f8f0; color: var(--green-ok); }
.badge--no { background: #fdecea; color: var(--red-warn); }
.badge--varies { background: #fff8e1; color: #7c5a00; }

/* === FAQ === */
.faq-list { list-style: none; padding: 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: 0.3px; color: var(--steel);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--amber); }
.faq-q .icon {
  font-size: 1.4rem; flex-shrink: 0;
  transition: transform 0.25s; color: var(--amber);
  margin-left: 16px;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 0 20px 0;
  font-size: 0.97rem; color: var(--gray-600);
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* === CHECKLIST === */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--gray-200);
  font-size: 0.97rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '□';
  font-size: 1.1rem; color: var(--amber);
  flex-shrink: 0; margin-top: 1px;
  font-family: var(--font-mono);
}

/* === PERMIT CHECKER TOOL === */
.tool-wrapper {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tool-header {
  background: var(--steel);
  padding: 24px 32px;
  display: flex; align-items: center; gap: 16px;
}
.tool-header h2 {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.5rem; color: var(--white);
  text-transform: uppercase;
}
.tool-header .tool-badge {
  background: var(--amber); color: var(--steel);
  font-family: var(--font-mono); font-size: 0.65rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 2px;
}
.tool-body { padding: 32px; }
.tool-step { display: none; }
.tool-step.active { display: block; }
.tool-step-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--amber); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.tool-step h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.5rem; color: var(--steel);
  text-transform: uppercase; margin-bottom: 20px;
}
.option-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.option-btn {
  background: var(--gray-100); border: 2px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px 14px;
  cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 0.92rem;
  color: var(--gray-800); transition: all 0.18s;
  line-height: 1.4;
}
.option-btn:hover, .option-btn.selected {
  border-color: var(--amber); background: var(--amber-pale);
  color: var(--steel);
}
.option-btn .opt-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.option-btn strong { display: block; font-weight: 600; margin-bottom: 2px; }
.option-btn span { font-size: 0.8rem; color: var(--gray-600); }
.tool-result {
  background: var(--gray-100); border-radius: var(--radius);
  padding: 28px; margin-top: 8px;
}
.tool-result h4 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.4rem; text-transform: uppercase;
  color: var(--steel); margin-bottom: 16px;
}
.result-item {
  display: flex; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.result-item:last-child { border-bottom: none; }
.result-icon { font-size: 1.2rem; flex-shrink: 0; }
.result-label { font-weight: 600; color: var(--steel); margin-bottom: 2px; }
.result-value { color: var(--gray-600); }
.tool-nav { display: flex; gap: 12px; margin-top: 24px; }
.progress-bar {
  height: 4px; background: var(--gray-200);
  border-radius: 2px; margin-bottom: 28px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--amber);
  border-radius: 2px; transition: width 0.4s ease;
}
select.tool-select {
  width: 100%; padding: 12px 16px;
  font-family: var(--font-body); font-size: 1rem;
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); color: var(--gray-800);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8901a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  cursor: pointer; margin-bottom: 20px;
}
select.tool-select:focus { outline: none; border-color: var(--amber); }

/* === SIDEBAR LAYOUT === */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--steel);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--amber);
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--gray-200); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block; padding: 10px 0;
  font-size: 0.9rem; color: var(--gray-800);
  transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--amber); text-decoration: none; }

/* === ARTICLE BODY === */
.article-body h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.7rem; text-transform: uppercase;
  letter-spacing: -0.3px; color: var(--steel);
  margin: 48px 0 16px; padding-top: 8px;
  border-top: 2px solid var(--gray-200);
}
.article-body h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.25rem; text-transform: uppercase;
  color: var(--steel-mid); margin: 32px 0 12px;
}
.article-body h4 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.05rem; color: var(--gray-800);
  margin: 24px 0 8px;
}
.article-body p { margin-bottom: 18px; font-size: 1.0rem; line-height: 1.78; }
.article-body ul, .article-body ol {
  margin: 0 0 18px; font-size: 1.0rem; line-height: 1.78;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--steel); }
.article-body a { color: var(--amber); }
.article-body a:hover { color: var(--amber-light); }
.article-body .lead {
  font-size: 1.15rem; color: var(--gray-600);
  line-height: 1.7; margin-bottom: 32px;
  padding-left: 20px; border-left: 4px solid var(--amber);
}

/* === DISCLAIMER === */
.disclaimer {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 0.83rem; color: var(--gray-600);
  margin: 32px 0; line-height: 1.6;
}
.disclaimer strong { color: var(--gray-800); }

/* === FOOTER === */
.site-footer {
  background: var(--steel);
  border-top: 3px solid var(--amber);
  padding: 56px 0 32px;
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.4rem; color: var(--white);
  text-transform: uppercase; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.footer-brand .logo span { color: var(--amber); }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-col a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.8rem; gap: 16px; flex-wrap: wrap;
}
.footer-legal a { color: rgba(255,255,255,0.45); margin-left: 20px; }
.footer-legal a:hover { color: var(--amber); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--steel-mid);
    padding: 16px; gap: 4px;
  }
  .hero h1 { font-size: 2.4rem; }
  .option-grid { grid-template-columns: 1fr 1fr; }
}

/* === PRINT (PDF friendly) === */
@media print {
  .site-header, .site-footer, .sidebar, .hero-actions { display: none; }
  body { background: white; color: black; }
}

/* Analytics placeholder */
/* GA4: paste G-XXXXXXXXXX snippet here after AdSense approval */
/* Clarity: paste project snippet here after AdSense approval */
