/* Iron Lace — New Orleans wrought-iron gallery theme for MK Electric Man */
:root {
  --green: #1f3b2f;
  --green-deep: #13271e;
  --green-soft: #2c4f40;
  --cream: #f6f0e3;
  --limestone: #ece3d0;
  --stone-line: #d6c9ad;
  --gold: #b8913f;
  --gold-light: #d9b968;
  --gold-ink: #7a5718;
  --iron: #1c211e;
  --ink: #2b2620;
  --ink-soft: #4f473c;
  --serif-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --serif-text: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--green-deep); }
body {
  margin: 0;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(184,145,63,.06), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(31,59,47,.05), transparent 45%);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: clamp(1.02rem, .97rem + .25vw, 1.12rem);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- balcony rail (CSS-drawn ironwork) ---------- */
.rail {
  height: 30px;
  background:
    linear-gradient(var(--iron), var(--iron)) top / 100% 4px no-repeat,
    linear-gradient(var(--iron), var(--iron)) bottom / 100% 3px no-repeat,
    radial-gradient(circle, transparent 0 4px, var(--iron) 4.5px 6.5px, transparent 7px) 0 9px / 28px 16px repeat-x,
    radial-gradient(circle, var(--iron) 0 2px, transparent 2.5px) 14px 23px / 28px 6px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 13px, var(--iron) 13px 15px, transparent 15px 28px),
    var(--limestone);
  border-bottom: 1px solid var(--stone-line);
}
.rail--gold {
  background:
    linear-gradient(var(--gold), var(--gold)) top / 100% 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom / 100% 2px no-repeat,
    radial-gradient(circle, transparent 0 4px, var(--gold) 4.5px 6px, transparent 6.5px) 0 9px / 28px 16px repeat-x,
    radial-gradient(circle, var(--gold) 0 2px, transparent 2.5px) 14px 23px / 28px 6px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 13px, var(--gold) 13px 14.5px, transparent 14.5px 28px),
    var(--green-deep);
  border: 0;
  opacity: .9;
}

/* ---------- header ---------- */
.gallery-bar {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, var(--green-soft), var(--green));
  color: var(--cream);
  position: relative;
  z-index: 2;
}
.bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: 92px;
}
.crest {
  flex: 0 0 auto;
  display: block;
  background: var(--cream);
  padding: 6px 10px 8px;
  border: 2px solid var(--gold);
  outline: 1px solid var(--cream);
  outline-offset: 2px;
  border-radius: 46px 46px 4px 4px;
  margin-bottom: -34px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  text-decoration: none;
}
.crest img { height: 58px; width: auto; }
.ironnav { margin-left: auto; }
.ironnav ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px 14px;
}
.ironnav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif-display);
  font-variant: small-caps;
  letter-spacing: .04em;
  font-size: clamp(.8rem, 3.3vw, 1rem);
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.ironnav a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.ironnav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ---------- hero: split, framed image beside the title ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  gap: 34px;
}
.fleur {
  margin: 0;
  color: var(--gold);
  font-size: 1.7rem;
  line-height: 1;
}
.fleur--gold { color: var(--gold-light); }
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  color: var(--green-deep);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 12px 0 18px;
  text-wrap: balance;
}
.hero h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 12px;
  margin-top: 20px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) center / 12px 12px no-repeat,
    radial-gradient(circle, transparent 0 3px, var(--gold) 3.5px 4.5px, transparent 5px) 0 50% / 30px 12px repeat-x;
}
.intro p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
.intro p:first-child::first-letter {
  font-family: var(--serif-display);
  float: left;
  font-size: 3.4em;
  line-height: .85;
  padding: 6px 10px 0 0;
  color: var(--green);
}
.hero-frame {
  position: relative;
  padding: 12px;
  background: var(--green);
  border: 1px solid var(--iron);
  box-shadow: inset 0 0 0 4px var(--green), inset 0 0 0 5px var(--gold), 0 18px 30px -18px rgba(19,39,30,.55);
}
.hero-frame::before, .hero-frame::after {
  content: "⚜";
  position: absolute;
  color: var(--gold-light);
  font-size: 1.2rem;
  line-height: 1;
  background: var(--green);
  padding: 0 8px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-frame::before { top: -10px; }
.hero-frame::after { bottom: -10px; }
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--gold);
}

/* ---------- body sections ---------- */
.body-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter) 70px;
}
.sec {
  padding: 46px 0;
  position: relative;
  background: linear-gradient(90deg, var(--stone-line) 0 calc(50% - 26px), transparent calc(50% - 26px) calc(50% + 26px), var(--stone-line) calc(50% + 26px)) top / 100% 1px no-repeat;
}
.sec::before {
  content: "✦";
  position: absolute;
  top: -.75em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  padding: 0 14px;
  font-size: .95rem;
}
.sec-title {
  font-family: var(--serif-display);
  font-weight: 400;
  color: var(--green-deep);
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 .7em;
  text-wrap: balance;
}
.sec-body { max-width: 68ch; }
.sec-body p { margin: 0 0 1.1em; }
.sec-body ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.sec-body li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.sec-body li::before {
  content: "⚜";
  position: absolute;
  left: 0;
  top: .05em;
  color: var(--gold-ink);
  font-size: .9em;
}
.sec-body strong { color: var(--green-deep); }

/* alternate: arched gallery-window images */
.sec--split { display: grid; gap: 28px; }
.sec-media {
  justify-self: center;
  width: 100%;
  max-width: 470px;
  padding: 10px;
  background: var(--limestone);
  border: 1px solid var(--stone-line);
  border-radius: 240px 240px 6px 6px / 150px 150px 6px 6px;
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--gold);
}
.sec-img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 230px 230px 3px 3px / 142px 142px 3px 3px;
  border: 2px solid var(--iron);
}

/* plain sections: centred stone panel */
.sec--plain .sec-body, .sec--plain .sec-title { margin-left: auto; margin-right: auto; }
.sec--plain .sec-title { max-width: 30ch; text-align: center; }
.page-index .sec--plain {
  background: var(--limestone);
  border: 1px solid var(--stone-line);
  outline: 1px solid var(--stone-line);
  outline-offset: -8px;
  padding: 48px clamp(20px, 5vw, 60px);
  margin-top: 30px;
}
.page-index .sec--plain::before { background: var(--limestone); top: -.75em; }

/* ---------- footer ---------- */
.courtyard { background: var(--green-deep); color: var(--cream); }
.foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 50px var(--gutter) 30px;
  display: grid;
  gap: 32px;
}
.foot-card {
  border: 1px solid rgba(217,185,104,.45);
  outline: 1px solid rgba(217,185,104,.25);
  outline-offset: 5px;
  padding: 28px 26px;
  text-align: center;
  align-self: start;
}
.foot-name {
  font-family: var(--serif-display);
  font-size: 1.6rem;
  margin: 10px 0 8px;
  letter-spacing: .02em;
}
.courtyard address { font-style: normal; line-height: 1.6; color: #e6dcc6; }
.foot-phone { margin: 16px 0 0; font-family: var(--serif-display); font-size: 1.4rem; }
.foot-phone a { color: var(--gold-light); text-decoration-color: rgba(217,185,104,.6); }
.foot-phone a:hover { color: var(--cream); }
.foot-map iframe { display: block; border: 1px solid var(--gold) !important; padding: 6px; background: var(--green); }
.foot-line { margin: 10px 0 0; font-size: .9rem; font-style: italic; color: #cfc4ab; }
.copy {
  margin: 0;
  text-align: center;
  padding: 16px var(--gutter) 22px;
  border-top: 1px solid rgba(217,185,104,.25);
  font-size: .88rem;
  letter-spacing: .06em;
  color: #cfc4ab;
}

/* ---------- tablet & up ---------- */
@media (min-width: 760px) {
  .bar-inner { min-height: 100px; }
  .crest img { height: 78px; }
  .crest { margin-bottom: -44px; padding: 8px 14px 10px; border-radius: 60px 60px 4px 4px; }
  .ironnav ul { display: flex; gap: 6px 30px; flex-wrap: wrap; justify-content: flex-end; }
  .ironnav a { font-size: 1.12rem; letter-spacing: .08em; }
  .hero { padding-top: 76px; }
  .sec--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
  .sec--split .sec-media { position: sticky; top: 32px; margin-top: 8px; }
  .sec--right .sec-media { order: 2; }
  .sec--right { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 44px; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: start; padding-bottom: 56px; }
  .hero-frame { position: sticky; top: 32px; margin-top: 40px; }
  .hero-img { aspect-ratio: 6 / 5; }
  .page-support .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .page-support .hero-frame { order: -1; }
  .sec { padding: 58px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
