/*
Theme Name: Cleat & Pintle
Theme URI: https://cleatandpintle.com
Author: Cleat & Pintle LLC
Author URI: https://cleatandpintle.com
Description: Custom theme for Cleat & Pintle LLC — Elephant Trace and Kestrel tools. Safety, security, and leverage for families navigating risk.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cleat-pintle
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================
   CSS CUSTOM PROPERTIES — BRAND SYSTEM
   ========================================= */
:root {
  --navy:     #1B2A3B;
  --rust:     #B5451B;
  --rust-hover: #8f3413;
  --sand:     #F5EDD6;
  --sand-dark: #ede0c0;
  --slate:    #4A5568;
  --white:    #FFFFFF;
  --light-gray: #8C9AA8;
  --text-dark: #1B2A3B;
  --text-muted: #4A5568;
  --border:   #D4CABB;

  --font-head: 'DM Sans', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Inter', 'Calibri', Arial, sans-serif;

  --container: 1140px;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(27,42,59,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rust-hover); text-decoration: underline; }

ul { list-style: none; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p, .section--dark li { color: rgba(255,255,255,0.85); }
.section--sand { background: var(--sand); }
.section--sand-light { background: #faf6eb; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.text-center { text-align: center; }
.mb-sm { margin-bottom: 24px; }
.mb-md { margin-bottom: 40px; }
.mb-lg { margin-bottom: 60px; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}
.btn-primary:hover { background: var(--rust-hover); border-color: var(--rust-hover); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: var(--white); }

.btn-rust-outline {
  background: transparent;
  color: var(--rust);
  border-color: var(--rust);
}
.btn-rust-outline:hover { background: var(--rust); color: var(--white); }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-group--center { justify-content: center; }

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.card--sand { background: var(--sand); border-color: var(--sand-dark); }
.card--navy { background: var(--navy); color: var(--white); border-color: transparent; }
.card--navy h3, .card--navy h4 { color: var(--white); }
.card--navy p { color: rgba(255,255,255,0.85); }

.card .card-number {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rust);
  margin-bottom: 10px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

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

/* Logo */
.site-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.site-logo:hover { color: var(--sand); text-decoration: none; }
.site-logo span { display: block; font-size: 0.65rem; font-weight: 400; letter-spacing: 0.08em; color: var(--light-gray); text-transform: uppercase; margin-top: 2px; }

/* Primary Nav */
#primary-nav { display: flex; align-items: center; gap: 6px; }
#primary-nav > li { position: relative; }

#primary-nav > li > a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.87);
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
#primary-nav > li > a:hover,
#primary-nav > li.current-menu-parent > a,
#primary-nav > li.current-menu-item > a { background: rgba(255,255,255,0.10); color: var(--white); text-decoration: none; }

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(27,42,59,0.15);
  z-index: 200;
  padding: 8px 0;
}
#primary-nav > li:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--sand); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.25s; }

/* =========================================
   HERO SECTIONS
   ========================================= */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 80px;
}
.hero--sand { background: var(--sand); color: var(--navy); }
.hero--sand h1 { color: var(--navy); }

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero .subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 720px;
  margin-bottom: 2rem;
}
.hero--sand .subhead { color: var(--slate); }

/* =========================================
   PILLAR ROW
   ========================================= */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.pillar-item { padding: 24px; }
.pillar-item .pillar-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 8px;
}
.pillar-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); letter-spacing: 0.05em; text-transform: uppercase; }

/* =========================================
   TOOL CARDS (HOME)
   ========================================= */
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.tool-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tool-card h3 { color: var(--navy); margin-bottom: 1rem; font-size: 1.35rem; }
.tool-card p { color: var(--slate); flex: 1; margin-bottom: 1.5rem; }
.tool-card .tool-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

/* =========================================
   STEP / PROCESS LIST
   ========================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 28px 24px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--rust);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.step h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--slate); margin-bottom: 0; }

/* =========================================
   SECTION DIVIDER
   ========================================= */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* =========================================
   CONTENT LIST (Who It Helps, etc.)
   ========================================= */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .fi-label {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
}
.feature-item p { margin: 0; }
.feature-item strong { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }

/* =========================================
   COMMITMENT GRID
   ========================================= */
.commitment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.commitment-item { padding: 28px; background: var(--sand); border-radius: var(--radius); }
.commitment-item h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }

/* =========================================
   STAT CALLOUT
   ========================================= */
.stat-block { text-align: center; padding: 40px 24px; }
.stat-block .stat-num { font-family: var(--font-head); font-size: 3.5rem; font-weight: 700; color: var(--rust); line-height: 1; margin-bottom: 8px; }
.stat-block .stat-label { font-size: 0.92rem; color: var(--slate); }

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-form-wrap { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* =========================================
   INQUIRY TYPE CARDS
   ========================================= */
.inquiry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; }
.inquiry-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px; }
.inquiry-card h4 { color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.inquiry-card p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* =========================================
   GUIDE / TEMPLATE CARDS
   ========================================= */
.guide-list { display: flex; flex-direction: column; gap: 28px; }
.guide-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.guide-item h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.guide-item p { color: var(--slate); margin: 0; font-size: 0.95rem; }

/* =========================================
   ATTORNEY DIRECTORY
   ========================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 36px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.filter-group label { font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.filter-group select,
.filter-group input[type="text"] {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
}
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding-top: 24px;
}
.filter-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--rust); }

.directory-placeholder {
  background: var(--sand);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--slate);
  font-size: 0.95rem;
}

.listing-format { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 32px; }
.listing-format h4 { color: var(--navy); margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.listing-format ul { display: flex; flex-direction: column; gap: 6px; }
.listing-format ul li { font-size: 0.9rem; color: var(--slate); }

/* =========================================
   CTA BANDS
   ========================================= */
.cta-band {
  background: var(--rust);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.87); max-width: 540px; margin: 0 auto 1.75rem; }

.cta-band--navy { background: var(--navy); }
.cta-band--sand { background: var(--sand); }
.cta-band--sand h2 { color: var(--navy); }
.cta-band--sand p { color: var(--slate); }

/* =========================================
   INLINE TEASER BLOCKS
   ========================================= */
.teaser-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.teaser-block .teaser-text { flex: 1; }
.teaser-block .teaser-text h2 { margin-bottom: 0.75rem; }
.teaser-block .teaser-cta { flex-shrink: 0; }

/* =========================================
   RESPONSE NOTE
   ========================================= */
.response-note {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.92rem;
  color: var(--slate);
  margin-top: 32px;
}
.response-note strong { color: var(--navy); }

/* =========================================
   DISCLAIMER
   ========================================= */
.disclaimer {
  font-size: 0.82rem;
  color: var(--light-gray);
  line-height: 1.6;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

/* =========================================
   FUTURE / PLACEHOLDER STATE
   ========================================= */
.btn-disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { font-size: 1.1rem; color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.55); line-height: 1.65; max-width: 260px; }

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--sand); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .grid-4, .pillar-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .tool-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .grid-2, .grid-3, .grid-4, .pillar-grid, .steps, .commitment-grid, .inquiry-grid { grid-template-columns: 1fr; }
  .tool-cards { grid-template-columns: 1fr; }

  #primary-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px 0; gap: 0; }
  #primary-nav.is-open { display: flex; }
  #primary-nav > li { width: 100%; }
  #primary-nav > li > a { padding: 12px 24px; border-radius: 0; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.07); padding: 0; }
  .dropdown-menu a { padding: 10px 36px; color: rgba(255,255,255,0.75); }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.08); }
  #primary-nav > li:hover .dropdown-menu { display: none; }
  #primary-nav > li.is-open .dropdown-menu { display: block; }

  .nav-toggle { display: flex; }
  .header-inner { position: relative; }

  .teaser-block { flex-direction: column; padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .filter-bar { flex-direction: column; }
}
