/*
Theme Name: Salt Consulting
Theme URI: https://salt-consulting.com
Author: Greg Clark
Author URI: https://salt-consulting.com
Description: Custom theme for Salt Consulting — Senior Living Advisory
Version: 1.0
License: All Rights Reserved
*/

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

:root {
  --cream: #F9F6F0;
  --warm-white: #FEFCF8;
  --sand: #E8E2D6;
  --sand-dark: #D4CCC0;
  --taupe: #8E8275;
  --charcoal: #33302B;
  --ink: #1C1A17;
  --salt: #BFB196;
  --salt-dark: #A08D72;
  --accent: #5E4530;
  --accent-hover: #3D2D1F;
  --accent-light: #EDE6DA;
  --sage: #6E7D63;
  --sage-light: #E9EDE5;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(249,246,240,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand);
  padding: 0 clamp(20px, 5vw, 72px);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.nav-logo span { color: var(--taupe); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe);
  text-decoration: none; padding-bottom: 3px;
  border-bottom: 2px solid transparent; transition: all 0.25s;
}
.nav-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--sand);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ─── SHARED ─── */
.section { padding: 88px clamp(20px, 5vw, 72px); }
.section-inner { max-width: 1060px; margin: 0 auto; }
.label {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--taupe);
}
.h1 {
  font-family: var(--serif); font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 400; line-height: 1.2; color: var(--ink);
}
.h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400; line-height: 1.25; color: var(--ink);
}
.h3 {
  font-family: var(--serif); font-size: 20px;
  font-weight: 400; line-height: 1.35; color: var(--charcoal);
}
.divider { width: 56px; height: 2px; background: var(--sand); margin: 28px 0; }
.body { font-weight: 300; }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 34px; cursor: pointer; transition: all 0.3s;
  border: none; border-radius: 0;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.italic { font-family: var(--serif); font-style: italic; color: var(--salt-dark); }

/* ─── FADE IN ─── */
.fi { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fi.v { opacity: 1; transform: translateY(0); }
.fi.d1 { transition-delay: 0.1s; }
.fi.d2 { transition-delay: 0.2s; }
.fi.d3 { transition-delay: 0.3s; }
.fi.d4 { transition-delay: 0.4s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 72px); position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--cream) 0%, var(--accent-light) 55%, var(--sand) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -5%; width: 55%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(191,177,150,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1060px; margin: 0 auto; width: 100%; padding-top: 68px; position: relative; z-index: 1; }
.hero-tagline {
  font-family: var(--serif); font-size: clamp(14px, 1.6vw, 17px);
  font-style: italic; color: var(--salt-dark); margin-bottom: 20px; font-weight: 400;
}
.hero-body { max-width: 580px; margin-top: 24px; font-size: 18px; }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-jump-links {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 52px;
  padding-top: 28px; border-top: 1px solid var(--sand-dark);
}
.hero-jump-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--taupe); text-decoration: none; transition: color 0.2s;
}
.hero-jump-links a:hover { color: var(--accent); }

/* ─── SERVICES ─── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; margin-top: 48px; }
.svc-card {
  padding: 32px 28px; background: var(--warm-white);
  border-left: 3px solid var(--salt); transition: border-color 0.3s;
}
.svc-card:hover { border-left-color: var(--accent); }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: 15px; line-height: 1.7; }

.svc-ai {
  margin-top: 48px; padding: 40px 36px;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--accent-light) 100%);
  border-left: 4px solid var(--sage);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.svc-ai h3 { color: var(--ink); font-size: 22px; }
.svc-ai p { font-size: 16px; max-width: 680px; }

.engagement-types {
  margin-top: 56px; padding: 40px 0 0;
  border-top: 1px solid var(--sand);
}
.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: 28px; }
.eng-item { text-align: center; padding: 24px 16px; }
.eng-icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  background: var(--accent-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px; color: var(--accent);
}
.eng-item h4 { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--charcoal); margin-bottom: 6px; }
.eng-item p { font-size: 14px; color: var(--taupe); line-height: 1.6; }

/* ─── RESULTS ─── */
.case {
  margin-bottom: 56px; padding-bottom: 56px;
  border-bottom: 1px solid var(--sand);
}
.case:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.case-tag-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent-light); color: var(--accent);
  padding: 5px 14px; margin-bottom: 14px;
}
.case-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; margin-top: 20px;
}
.case-detail-label { font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.case-detail-text { font-size: 15px; line-height: 1.7; }

/* ─── ABOUT ─── */
.about-content { max-width: 660px; }
.about-content p { margin-bottom: 20px; }
.salt-story {
  margin-top: 48px; padding: 36px 32px;
  background: var(--warm-white); border-left: 3px solid var(--salt);
}
.salt-story p { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--charcoal); font-style: italic; }

/* ─── TEAM ─── */
.team-principal {
  display: grid; grid-template-columns: 140px 1fr; gap: 36px;
  align-items: start; margin-bottom: 56px;
}
.team-avatar {
  width: 140px; height: 160px; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 38px; color: var(--taupe);
}
.team-name { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.team-role-label { color: var(--accent); margin-top: 4px; margin-bottom: 14px; }

.network-section { padding: 40px 36px; background: var(--accent-light); margin-top: 8px; }

.network-section ul {
  list-style: disc;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}
.network-section li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--charcoal);
  font-weight: 300;
}

@media (max-width: 600px) {
  .team-principal { grid-template-columns: 1fr; gap: 20px; }
  .team-avatar { width: 100px; height: 115px; font-size: 30px; }
  .network-section ul { columns: 1; }
}

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-form { background: var(--warm-white); border: 1px solid var(--sand); padding: 36px 32px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--sand-dark);
  background: var(--cream); font-family: var(--sans); font-size: 15px;
  color: var(--ink); outline: none; border-radius: 0; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
textarea.form-input { resize: vertical; }

/* ─── FOOTER ─── */
.footer { padding: 48px clamp(20px, 5vw, 72px); background: var(--ink); }
.footer-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--serif); font-size: 18px; color: var(--cream); }
.footer-logo span { color: var(--taupe); }
.footer-sub { font-size: 13px; color: var(--taupe); font-weight: 300; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: 12px; color: var(--taupe); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-link:hover { color: var(--sand); }
.footer-bottom {
  max-width: 1060px; margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-copy { font-size: 12px; color: var(--taupe); font-weight: 300; }

/* ─── WordPress overrides ─── */
.wp-admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .wp-admin-bar .nav { top: 46px; } }
