/* Marshlight Digital — beacon in the marsh */

:root {
  --navy: #17263F;
  --navy-deep: #0e1a2f;
  --amber: #C1A15C;
  --amber-warm: #a8894a;
  --ivory: #F4EFE4;
  --sage: #5B6B7B;
  --sage-muted: #8a97a5;
  --line: #d9d3c5;
  --muted: #5B6B7B;
  --dark-text: #17263F;
  --light-text: #F4EFE4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; margin-bottom: 24px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }

p { margin-bottom: 16px; color: var(--dark-text); }
p:last-child { margin-bottom: 0; }

a { color: var(--amber-warm); text-decoration: none; }
a:hover { color: var(--amber); }

/* Header */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(247, 243, 234, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 24px 60px;
  min-height: 120px;
}

@media (max-width: 900px) {
  .nav { padding: 16px 24px !important; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  max-width: 100%;
}

.brand:hover { opacity: 0.9; }

@media (max-width: 900px) {
  .nav { min-height: 88px; padding: 16px 24px; }
  .brand-logo { height: 44px; }
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--dark-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--amber-warm); }

.cta-nav {
  color: var(--navy) !important;
  border: 1px solid var(--navy);
  padding: 8px 18px;
  border-radius: 4px;
  transition: all 0.2s;
}

.cta-nav:hover {
  background: var(--navy);
  color: var(--ivory) !important;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--light-text);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 165, 82, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--light-text);
  margin-bottom: 24px;
  max-width: 900px;
}

.hero .lead {
  font-size: 1.35rem;
  color: rgba(247, 243, 234, 0.85);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-warm);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 243, 234, 0.3);
}

.btn-ghost:hover {
  background: rgba(247, 243, 234, 0.08);
  color: var(--ivory);
  border-color: rgba(247, 243, 234, 0.5);
}

.btn-white {
  background: var(--ivory);
  color: var(--navy);
  border-color: var(--ivory);
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  color: rgba(247, 243, 234, 0.7);
  font-size: 0.95rem;
  font-weight: 400;
}

.hero-marks span { display: inline-flex; align-items: center; gap: 8px; }

/* Sections */
section { padding: 96px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-warm);
  margin-bottom: 16px;
}

.section-tag.light { color: var(--amber); }

.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }

.body-lead {
  font-size: 1.1rem;
  color: var(--dark-text);
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(26, 43, 61, 0.08);
}

.card-mark {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ivory);
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 20px;
}

.card p { font-size: 0.98rem; color: var(--muted); line-height: 1.6; }

/* Section How */
.section-how {
  background: var(--navy);
  color: var(--light-text);
  padding: 96px 0;
}

.section-how h2 { color: var(--light-text); }

.steps {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  counter-reset: none;
}

.steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(247, 243, 234, 0.12);
}

.steps li:last-child { border-bottom: none; }

.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}

.step-body h3 { color: var(--light-text); margin-bottom: 10px; }
.step-body p { color: rgba(247, 243, 234, 0.75); font-size: 1.02rem; }

/* Portfolio */
.section-portfolio { background: var(--ivory); }

.asset-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  align-items: stretch;
}

.asset-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.asset-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(232, 165, 82, 0.2) 0%, transparent 60%);
}

.asset-visual-inner {
  text-align: center;
  color: var(--ivory);
  position: relative;
  z-index: 1;
}

.asset-mark { font-size: 3.5rem; margin-bottom: 12px; }
.asset-place {
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.asset-content { padding: 36px 40px 36px 0; }

.asset-status {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.asset-status.live { color: var(--sage); }

.asset-tag {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-style: italic;
}

.upcoming {
  margin-top: 48px;
  padding: 32px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.upcoming-label {
  color: var(--sage);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.upcoming-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
  margin-bottom: 20px;
}

.upcoming-list li {
  color: var(--dark-text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid var(--ivory);
}

.upcoming-note { color: var(--muted); font-size: 0.95rem; }

/* Who */
.section-who { background: white; }

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.who-card {
  background: var(--ivory);
  padding: 36px 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.who-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.who-mark {
  color: var(--amber);
  font-size: 1.5rem;
}

.who-name { font-weight: 600; font-size: 1.15rem; color: var(--navy); margin-bottom: 2px; }
.who-role {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.who-card p { font-size: 0.98rem; color: var(--dark-text); }
.who-org {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  letter-spacing: 0.05em;
}

/* Why */
.section-why {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--light-text);
}

.section-why h2 { color: var(--light-text); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 48px;
}

.why-num {
  color: var(--amber);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.why-item h4 { color: var(--light-text); }
.why-item p { color: rgba(247, 243, 234, 0.75); font-size: 0.98rem; line-height: 1.6; }

/* Contact */
.section-contact { background: var(--ivory); padding: 96px 0 120px; }

.contact-card {
  background: white;
  padding: 64px 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  max-width: 880px;
  margin: 0 auto;
}

.section-contact .section-tag.light { color: var(--amber-warm); }
.section-contact .section-header { margin-bottom: 24px; }

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--dark-text);
  transition: transform 0.15s;
}

a.contact-method:hover { transform: translateY(-2px); color: var(--dark-text); }

.contact-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.contact-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 243, 234, 0.65);
  padding: 48px 0;
  font-size: 0.9rem;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-logo {
  height: 44px;
  width: auto;
  display: block;
  max-width: 260px;
  filter: brightness(0) invert(1) opacity(0.9);
}
.foot-brand p { color: rgba(244, 239, 228, 0.5); font-size: 0.85rem; margin: 0; }

.foot-meta { text-align: right; }
.foot-meta p { margin-bottom: 4px; color: rgba(247, 243, 234, 0.5); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .cards, .why-grid, .contact-methods, .upcoming-list { grid-template-columns: 1fr; }
  .why-grid { gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .asset-card { grid-template-columns: 1fr; }
  .asset-content { padding: 32px; }
  .foot-inner { grid-template-columns: 1fr; text-align: center; }
  .foot-meta { text-align: center; }
  .hero { padding: 80px 0 72px; }
  .steps li { grid-template-columns: 60px 1fr; gap: 20px; }
  .step-num { font-size: 2rem; }
  section { padding: 72px 0; }
  .contact-card { padding: 40px 28px; }
}
