/* =========================================================
   Ivy Edge Strategies – Global Styles (site.css)
   Matches index, about, services, contact, thank-you, privacy, terms, 404
   ========================================================= */

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

:root{
  --max-w: 980px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  --bg: #ffffff;
  --fg: #0f0f0f;
  --muted: #5a5a5a;

  --brand: #b38e3d;           /* restrained gold accent */
  --brand-ink: #1b1b1b;       /* dark ink */
  --border: #e6e6e6;
  --shadow: 0 10px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.06);

  --radius: 14px;
}

/* Optional dark scheme */
@media (prefers-color-scheme: dark){
  :root{
    --bg: #0e0f11;
    --fg: #f3f3f3;
    --muted: #b7b7b7;
    --border: #24262a;
    --shadow: 0 10px 24px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.35);
    --brand-ink: #f3f3f3;
  }
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Tenor Sans", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* Headings use Tenor Sans if loaded; subheads can use Cormorant Garamond */
h1, h2, h3 {
  font-family: "Tenor Sans", system-ui, Arial, sans-serif;
  line-height: 1.25;
  margin: var(--space-6) 0 var(--space-4);
  color: var(--brand-ink);
}
.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: var(--space-2);
}

p { margin: 0 0 var(--space-4); color: var(--fg); }
ul, ol { margin: 0 0 var(--space-4) var(--space-5); }
li { margin: 0 0 var(--space-2); }

/* Links */
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.site-header,
.site-footer,
main {
  width: 100%;
}

.site-header,
.site-footer {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-7);
  font-size: .95rem;
  color: var(--muted);
}

#main {
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 var(--space-4);
}

/* Logo */
.logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  display: block;
  margin: 0 auto var(--space-3);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}

/* Hero */
.hero {
  margin-top: var(--space-5);
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(179,142,61,.06), transparent 55%);
}

/* Section spacing */
section { margin: var(--space-6) 0; }
.services-preview .service-list,
.offerings .service-list { margin-left: 0; list-style: none; }
.service-list li {
  padding-left: 1.35rem;
  position: relative;
}
.service-list li::before{
  content: "•";
  color: var(--brand);
  position: absolute;
  left: 0;
}

/* CTA row */
.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  justify-content: center;
}

/* Buttons */
.btn{
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .06s ease, filter .2s ease;
}
.btn:hover{ filter: brightness(1.05); text-decoration: none; }
.btn:active{ transform: translateY(1px); }

.btn-secondary{
  background: transparent;
  color: var(--brand-ink);
  border-color: var(--brand);
}
.btn-secondary:hover{ background: rgba(179,142,61,.1); }

.btn-ghost{
  background: transparent;
  color: var(--brand);
  border: 1px dashed var(--brand);
}
.btn-ghost:hover{ background: rgba(179,142,61,.08); }

/* Forms */
form{
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

label{ display: grid; gap: .35rem; }

input[type="text"],
input[type="email"],
textarea{
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder,
textarea::placeholder{ color: #9a9a9a; }

input:focus,
textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(179,142,61,.22);
}

button[type="submit"].btn{ justify-self: start; }

/* Contact alt text */
.contact-alt { color: var(--muted); }

/* Utility */
.center{
  display: grid;
  place-items: center;
  min-height: 42vh;
  text-align: center;
}

/* Tables (if used in future) */
table{ width:100%; border-collapse: collapse; margin: var(--space-4) 0; }
th, td{ padding: .65rem .8rem; border: 1px solid var(--border); }
th{ background: rgba(0,0,0,.03); text-align: left; }

/* Images */
img{ max-width: 100%; height: auto; }

/* Accessibility: Focus & Reduced Motion */
:focus-visible{
  outline: 3px solid #234630;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* Responsive tweaks */
@media (max-width: 720px){
  .logo { width: 88px; height: 88px; }
  .hero { padding: var(--space-5) var(--space-4); }
  .site-header, .site-footer { padding: var(--space-5) var(--space-4); }
}

/* Print styles */
@media print{
  header, footer, .btn, nav { display: none !important; }
  body{ color: #000; background: #fff; }
  a{ color: #000; text-decoration: underline; }
}
