/* Maigha static site — light elegant theme */
:root {
  --ink: #182433;
  --ink-soft: #5a6578;
  --paper: #f6f8fa;
  --surface: #ffffff;
  --mist: #eef2f6;
  --line: #e2e8ef;
  --accent: #1a6b63;
  --accent-deep: #145850;
  --accent-soft: #e8f4f2;
  --navy: #1e3a5f;
  --highlight: var(--accent);
  --primary: var(--ink);
  --secondary: var(--navy);
  --light: var(--mist);
  --border: var(--line);
  --text: var(--ink);
  --success: #2f7d6d;
  --shadow: 0 1px 2px rgba(24, 36, 51, 0.04), 0 12px 32px rgba(24, 36, 51, 0.06);
  --radius: 12px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 0% 0%, rgba(26, 107, 99, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 10%, rgba(30, 58, 95, 0.05), transparent 50%),
    linear-gradient(180deg, #fbfcfd 0%, var(--paper) 40%, #f3f6f9 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 239, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--navy);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
  justify-content: flex-end;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

section {
  padding: 4.5rem 0;
  border-bottom: 1px solid transparent;
}

section + section {
  border-top: 1px solid rgba(226, 232, 239, 0.7);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Hero — full-bleed light visual + readable copy plane */
.hero {
  color: var(--ink);
  padding: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: clamp(28rem, 72vh, 40rem);
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, #f9fbfc 0%, #eef4f3 55%, #e8eef5 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(249, 251, 252, 0.97) 0%,
      rgba(249, 251, 252, 0.94) 38%,
      rgba(249, 251, 252, 0.72) 52%,
      rgba(238, 244, 243, 0.28) 68%,
      rgba(232, 238, 245, 0.08) 82%,
      transparent 100%
    ),
    linear-gradient(180deg, rgba(249, 251, 252, 0.35) 0%, transparent 28%, transparent 78%, rgba(243, 246, 249, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 0 auto 0 max(1.75rem, calc((100% - 1120px) / 2 + 1.75rem));
  padding: 5.5rem 1.75rem 5rem 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero .subtitle,
.hero p.subtitle {
  color: var(--ink-soft);
  font-size: 1.2rem;
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@keyframes heroDrift {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(-1.5%, 1%, 0); }
}

/* Buttons */
.cta-button,
.btn,
.btn-primary,
.form-submit {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.95rem 1.85rem;
  text-decoration: none !important;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  margin: 0.35rem;
}

.cta-button:hover,
.btn:hover,
.btn-primary:hover,
.form-submit:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  color: #fff !important;
}

.cta-button.secondary,
.btn-outline {
  background: transparent;
  color: var(--accent-deep) !important;
  border-color: rgba(26, 107, 99, 0.35);
}

.cta-button.secondary:hover,
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-deep) !important;
}

/* Cards & surfaces */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card,
.model-card,
.highlight-box,
.venture-section,
.phase,
.outcome-box,
.info-box,
.callout,
.intro-card,
.schedule-panel,
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 2rem 1.85rem;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(24, 36, 51, 0.08);
}

.card h4,
.card p {
  color: inherit;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(26, 107, 99, 0.12);
}

.card-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.highlight-box,
.callout,
.info-box,
.outcome-box {
  padding: 1.75rem 1.85rem;
  margin: 1.5rem 0;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(232, 244, 242, 0.65) 0%, #fff 70%);
}

.highlight-box h4,
.callout strong {
  color: var(--navy);
}

.model-card {
  padding: 2rem;
  margin: 1.25rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Lists */
.feature-list,
ul.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.15rem;
  margin: 2rem 0;
}

.step {
  background: var(--surface);
  padding: 1.75rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow);
}

.step .number,
.number {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
}

.step h4 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.step p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Phase / CoBuild detail */
.phase {
  padding: 2rem;
}

.phase h3 {
  font-size: 1.75rem;
  color: var(--navy);
}

.phase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.meta-item {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex: 1 1 160px;
}

.meta-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Portfolio ventures */
.venture-section {
  padding: 2.25rem;
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(26, 107, 99, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.tag.lead {
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  border-color: rgba(30, 58, 95, 0.15);
}

.venture-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.venture-hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 1.25rem 0;
}

.venture-hero-shot img {
  display: block;
  width: 100%;
}

.venture-highlight {
  background: var(--accent-soft);
  border: 1px solid rgba(26, 107, 99, 0.18);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  color: var(--ink);
}

.shot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.shot-strip figure,
.figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot-strip img,
.figure img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
}

.figure {
  margin: 1.5rem 0 2rem;
}

.figure img {
  height: auto;
}

.shot-strip figcaption,
.figure figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--mist);
}

/* About principles */
.principle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 1.15rem 0;
  box-shadow: var(--shadow);
}

.principle-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-soft);
}

.principle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-band {
  background: linear-gradient(120deg, var(--mist), #e8eef5);
}

.visual-band-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.visual-frame,
.article-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.visual-frame img,
.article-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Posts */
.posts-list,
.posts-grid {
  display: grid;
  gap: 1.25rem;
}

.post-card {
  padding: 1.75rem 1.85rem;
}

.post-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.post-meta,
.meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.back:hover {
  color: var(--accent);
}

/* Contact / forms */
.contact-form,
.contact-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid rgba(26, 107, 99, 0.25);
  border-color: var(--accent);
}

.response-time,
.social-links {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Schedule */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.schedule-panel,
.intro-card {
  padding: 1.75rem;
  margin: 1.25rem 0;
}

.setup-notice,
.helper,
.warn {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

th, td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--mist);
  color: var(--navy);
  font-weight: 600;
}

pre {
  background: #1e3a5f;
  color: #e8eef7;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #f0f4f7 0%, #e8eef3 100%);
  color: var(--ink-soft);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

footer p {
  color: var(--ink-soft);
  margin: 0;
}

footer strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.06em;
}

footer a {
  color: var(--accent-deep);
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* Downloadable CoBuild materials */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.download-card .eyebrow {
  margin: 0;
}

.download-card h3 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--navy);
}

.download-card p {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
}

.download-card .cta-button {
  align-self: flex-start;
  margin: 0.5rem 0 0;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-backdrop img { animation: none; }
  .card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .visual-band-grid {
    grid-template-columns: 1fr;
  }

  .shot-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    margin: 0;
    max-width: 40rem;
    padding: 4.5rem 1.5rem 3.75rem;
  }

  .hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(249, 251, 252, 0.92) 0%,
        rgba(249, 251, 252, 0.88) 48%,
        rgba(249, 251, 252, 0.55) 72%,
        rgba(243, 246, 249, 0.35) 100%
      );
  }

  .hero-backdrop img {
    object-position: center 35%;
    opacity: 0.55;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0.85rem 0;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    gap: 0.75rem 1rem;
    justify-content: flex-start;
  }

  .hero-content {
    padding: 3.75rem 1.25rem 3.25rem;
  }

  .hero .subtitle {
    margin-left: 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  section {
    padding: 3.25rem 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .principle-card {
    grid-template-columns: 1fr;
  }
}
