/* The Nedecz Group — static site styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --ink: #19181a;          /* page background — matches logo backing */
  --panel: #201f22;        /* header / footer / foundation section */
  --panel-raised: #262429; /* pillars panel */
  --panel-deep: #131213;   /* footer */
  --gold: #c9a35e;
  --gold-soft: rgba(201, 163, 94, 0.35);
  --gold-dim: rgba(201, 163, 94, 0.16);
  --gold-bright: #e0c184;
  --cream: #efe8d8;
  --cream-dim: #d8d0bd;
  --stone: #9c9689;
  --stone-dim: #6d675c;

  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --font-body: 'EB Garamond', 'Iowan Old Style', Georgia, serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-bright); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #19181a;
  padding: 0.75em 1.25em;
  z-index: 100;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Signature divider: a classic double gold rule, thick over thin,
   as seen on prospectuses and formal letterhead. */
.rule-double {
  width: 74px;
  margin: 1.6rem auto 0;
}
.rule-double span { display: block; background: var(--gold); }
.rule-double span:first-child { height: 2px; }
.rule-double span:last-child { height: 1px; margin-top: 4px; opacity: 0.55; }
.rule-double.left { margin-left: 0; }

/* Small ornament used between closing statement and footer */
.diamond {
  width: 8px;
  height: 8px;
  margin: 0 auto;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Header */
.site-header {
  background: var(--panel);
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--gold-dim);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-tag {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--stone);
}
.portal-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 0.45em 0.9em;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.portal-link:hover {
  background: var(--gold-dim);
  color: var(--gold-bright);
}

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; gap: 0.85rem; }
  .header-right { flex-direction: column; gap: 0.6rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--panel);
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19,18,19,0.72) 0%, rgba(19,18,19,0.38) 32%, rgba(19,18,19,0.58) 65%, var(--ink) 100%),
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(19,18,19,0.05), rgba(19,18,19,0.5) 100%);
}
.hero-content {
  position: relative;
  padding: 0 1.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.6vw, 3.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero .tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--cream-dim);
  margin: 0;
}

/* Sections */
section { padding: 6rem 0; }

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin: 0.5rem 0 0;
  color: var(--cream);
}

.foundation { background: var(--panel); }

.foundation blockquote {
  position: relative;
  margin: 0 auto;
  max-width: 62ch;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.6;
  color: var(--cream);
}
.foundation blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 4.5rem;
  color: var(--gold);
  opacity: 0.7;
  line-height: 1;
  margin-bottom: -0.5rem;
}

/* Pillars */
.pillars-section { background: var(--panel-raised); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}
.pillar {
  padding: 0 2rem;
  text-align: center;
  border-left: 1px solid var(--gold-dim);
}
.pillar:first-child { border-left: none; }
.pillar .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0.7rem 0 0.75rem;
  color: var(--cream);
}
.pillar p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--stone);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillar { border-left: none; border-top: 1px solid var(--gold-dim); padding: 2rem 1rem 0; }
  .pillar:first-child { border-top: none; padding-top: 0; }
}

/* Closing */
.closing { text-align: center; }
.closing blockquote {
  margin: 0 auto 2rem;
  max-width: 54ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  line-height: 1.55;
  color: var(--cream);
}

/* Footer */
.site-footer {
  background: var(--panel-deep);
  padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--gold-dim);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.footer-brand img { width: 22px; height: 22px; }
.footer-office {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
}
.footer-links a { color: var(--cream-dim); }
.disclaimer {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--stone-dim);
  max-width: 62ch;
  border-top: 1px solid var(--gold-dim);
  padding-top: 1.5rem;
}
.disclaimer p { margin: 0 0 0.75rem; }
.disclaimer p:last-child { margin-bottom: 0; }
.copyright {
  font-size: 0.8rem;
  color: var(--stone-dim);
  margin-top: 1.75rem;
}

/* Simple page (privacy / 404) */
.page-content { padding: 5rem 0 6rem; }
.page-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  margin-top: 0;
  color: var(--cream);
}
.page-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 2.4rem;
  color: var(--cream);
}
.page-content p, .page-content li { color: var(--stone); }
.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  font-style: italic;
}
