/* ==========================================================================
   Lotus Holistic - modern theme (Lavender - main site)
   Shared design system. Each themed stylesheet only differs in the
   colour variables in :root below.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');
:root {
  --bg-1: #efe7f3;
  --bg-2: #e2d3ea;
  --accent: #7a4b94;
  --accent-dark: #4f2a66;
  --accent-soft: rgba(209,191,216,0.75);
  --highlight: #c9a227;
  --surface: #fdf6e7;        /* soft warm cream (page card) */
  --surface-2: #f6ead2;    /* deeper cream for panels */
  --field: #fffaf0;           /* form fields */
  --ink: #2b2530;
  --muted: #6d6575;
  --line: rgba(43, 37, 48, 0.10);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(40, 20, 60, 0.28), 0 4px 14px rgba(40, 20, 60, 0.06);
  --shadow-sm: 0 6px 18px -8px rgba(40, 20, 60, 0.25);
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --page-width: 1040px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  background-color: var(--bg-1);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, var(--bg-2), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  min-height: 100%;
  overflow-y: scroll; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
article, aside, figure, footer, header, hgroup, menu, nav, section { display: block; }

body {
  font: 400 16px/1.7 var(--font-body);
  color: var(--ink);
  background: transparent;
  padding: 1px 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; }
img[width], video { height: auto; }
img { border: 0; vertical-align: middle; }

.group::after { content: ""; display: table; clear: both; }

/* ---------- Page card ---------- */
#page-wrap,
#popup {
  width: calc(100% - 2rem);
  max-width: var(--page-width);
  margin: clamp(1rem, 4vw, 3rem) auto 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  background: var(--surface);
  border: 1px solid rgba(214, 190, 150, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  text-align: left;
}
#popup { max-width: 860px; }

#main-content { padding: 1.5rem 0 0; }
#guts { overflow-wrap: anywhere; }

#logo:empty { display: none; }
#popuplogo { position: absolute; bottom: 12px; right: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--accent-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); padding: 0 0 0.5rem; text-shadow: none; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin: 2rem 0 0.85rem; }
h2:first-child { margin-top: 0.25rem; }
h3 { font-size: 1.4rem; margin: 1.5rem 0 0.6rem; }
p { margin: 0 0 1.1rem; }
strong, b { font-weight: 700; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
a:active { color: var(--accent-dark); text-decoration-color: currentColor; }
a, button, input[type="button"], input[type="submit"], .btn, .styled, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 22%, transparent);
}
a:focus { outline: 0; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}
a img { transition: transform .25s ease, box-shadow .25s ease; }

ul, ol { padding-left: 1.4rem; margin: 0.4rem 0 1.2rem; }
li { margin: 0.3rem 0; }
li::marker { color: var(--accent); }

hr {
  border: 0;
  height: 1px;
  width: 100%;
  margin: 1.75rem auto;
  color: transparent;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
}

/* ---------- Site header (new markup) ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.brand img { width: 76px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-dark);
}
.brand-sub {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .35rem;
}
.site-header > nav { flex: 1 1 100%; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.page-title { margin: 1.5rem 0 0; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.header-actions .social img { width: 36px; height: 36px; border-radius: 50%; }

/* ---------- Hero (home & feature pages) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: .5rem 0 1rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 100% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.hero h1 { padding: 0; margin-bottom: .6rem; }
.hero .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.hero p { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.hero-media {
  position: relative;
  display: flex;
  gap: .9rem;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-media img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); object-fit: cover; }
.hero-media .portrait { width: 170px; aspect-ratio: 137 / 168; }
.hero-media .side { width: 130px; aspect-ratio: 112 / 148; }
.hero-media .badge {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 96px;
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));
}

.credentials {
  font-size: .9rem;
  color: var(--muted);
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
}
.credentials strong { color: var(--ink); }

/* ---------- Navigation ---------- */
nav { margin: .25rem 0 0; }
nav ul,
nav ul.group {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: auto;
  left: 0;
  position: static;
  margin: 0;
  padding: .6rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
nav ul li { display: block; margin: 0; }
nav ul li a {
  display: inline-flex;
  align-items: center;
  float: none;
  height: auto;
  margin: 0;
  padding: .5rem 1.05rem;
  font: 600 .92rem/1.2 var(--font-body);
  color: var(--accent-dark);
  text-decoration: none;
  text-shadow: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  -webkit-text-stroke: 0;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
nav ul li a:active,
nav ul li a.current,
nav ul li a[aria-current="page"] {
  background: var(--accent-dark);
  color: #fff;
  top: 0;
}
/* neutralise legacy <font> colour/size tags inside menus */
nav font { color: inherit; font-size: inherit; }

/* ---------- Buttons ---------- */
.btn,
.button,
.styled,
input[type="button"],
input[type="submit"],
input[type="reset"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .6rem 1.35rem;
  margin: .25rem .15rem;
  font: 700 .95rem/1.2 var(--font-body);
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  -webkit-appearance: none;
  appearance: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active, .button:active, .styled:active,
input[type="button"]:active, input[type="submit"]:active, button:active { transform: scale(.97); filter: brightness(.95); }
.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn-outline:active { background: var(--accent); color: #fff; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input:not([type]), select, textarea {
  width: 100%;
  max-width: 520px;
  padding: .7rem .9rem;
  margin: .3rem 0 .9rem;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--field);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 600; }

/* ---------- Tables ---------- */
table { border-collapse: collapse; border-spacing: 0; max-width: 100%; }
td, th {
  font: 400 .95rem/1.55 var(--font-body);
  padding: .55rem .7rem;
  vertical-align: middle;
}
th { font-weight: 700; color: var(--accent-dark); text-align: left; }
#guts table { width: 100%; }
#guts table tr + tr td { border-top: 1px solid var(--line); }
#guts table td img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}


/* legacy fixed-height scroll boxes become normal flowing content */
#guts div[style*="overflow"] {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  font-size: inherit !important;
}

/* legacy header table (pages not yet converted) */
header table { margin: 0 auto 1rem; }
header table td { padding: .35rem; }
header table img, header h1 img { border-radius: var(--radius-sm); }
header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

/* ---------- Contact card ---------- */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin: 1.75rem 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.contact-card .contact-main { flex: 1 1 260px; }
.contact-card .contact-phone {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}
.contact-card .price { color: var(--accent-dark); font-weight: 700; }
.contact-card .note { display: block; font-size: .9rem; color: var(--muted); }
.contact-card .cnhc { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.contact-card .cnhc img { width: 70px; height: auto; }
.contact-card .contact-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--highlight) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--highlight) 35%, transparent);
}

/* ---------- Footer ---------- */
footer {
  width: calc(100% - 2rem);
  max-width: var(--page-width);
  margin: 0 auto 2.5rem;
  padding: 1rem 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
footer a, footer font { color: var(--muted) !important; text-decoration: none; }


/* ---------- Video / audio ---------- */
video { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
#audioContainer { display: flex; align-items: center; gap: .75rem; margin: .75rem 0; }


/* ---------- Hover effects (mouse / trackpad only, so taps work first time on phones) ---------- */
@media (hover: hover) and (pointer: fine) {
  html { background-attachment: fixed; }
  a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
  nav ul li a:hover { background: var(--accent); color: #fff; }
  .btn:hover, .button:hover, .styled:hover,
  input[type="button"]:hover, input[type="submit"]:hover, button:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent-dark) 70%, transparent);
  }
  .btn-outline:hover { background: var(--accent); color: #fff; }
  #guts a:hover img { transform: scale(1.04); }
  .essence-row:hover { background: var(--surface-2); }
  footer a:hover { color: var(--accent-dark) !important; }
}

/* ---------- Essence lists (picture + name + keywords) ---------- */
#guts table.essence-list, .essence-list tbody { display: block; width: 100%; }
.essence-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding: .8rem;
  border-radius: var(--radius-md);
  transition: background-color .2s ease;
}
#guts .essence-list .essence-row td { display: block; padding: 0; border: 0; }
#guts .essence-list .essence-row + .essence-row { border-top: 1px solid var(--line); border-radius: 0; }
.essence-pic a { display: block; }
.essence-pic img {
  display: block;
  width: 110px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.essence-name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-dark);
  text-decoration: none;
  padding: .15rem 0;
}
.essence-keywords { display: block; color: var(--muted); font-size: .92rem; margin-top: .25rem; }

/* essence detail page photo */
.essence-photo { max-height: 300px; width: auto; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* trust seal sits in the page flow (it used to float over content) */
.trust-seal { text-align: center; margin: 0 auto .5rem; min-height: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-media { justify-content: flex-start; }
  .hero-media .portrait { width: 130px; }
  .hero-media .side { width: 100px; }
  .hero-media .badge { position: static; width: 80px; }
  nav ul, nav ul.group { border-radius: var(--radius-md); }
  nav ul li a { padding: .5rem .8rem; font-size: .88rem; }
  #guts table, #guts table > tbody, #guts table > tbody > tr,
  #guts table > tbody > tr > td, #guts table > tbody > tr > th,
  #guts table > tr, #guts table > tr > td { display: block; width: 100%; }
  #guts table td { padding: .35rem 0; }
  #guts table tr + tr td { border-top: 0; }
  #guts table tr { padding: .4rem 0; }
  #guts table tr + tr { border-top: 1px solid var(--line); }
  #guts table td img { max-width: 100%; }
  .essence-row { grid-template-columns: 84px minmax(0, 1fr); gap: .85rem; padding: .7rem .2rem; }
  .essence-pic img { width: 84px; }
  .essence-name { font-size: 1.2rem; }
  #guts .essence-list .essence-row { display: grid; border-top: 0; }
  #guts .essence-list .essence-row + .essence-row { border-top: 1px solid var(--line); }
  header table img { max-width: 90px; }
}
@media (max-width: 480px) {
  #page-wrap, #popup { width: calc(100% - 1rem); border-radius: 18px; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .brand img { width: 60px; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; }
  #page-wrap, #popup { box-shadow: none; border: 0; margin: 0; max-width: none; }
  nav, .header-actions, .styled, input[type="button"] { display: none !important; }
}
