/* mainsite.css */

/* =========================
   Global design tokens
========================= */
:root {
  /* Layout */
  --nav-h: 6.25rem;
  --nav-h-mobile: 11.5rem;
  --footer-offset: 3rem;


  /* Colors */
  --bg-page: #f9f9f9;
  --text-primary: #1f2933;   /* near-black, softer than pure black */
  --text-secondary: #4b5563; /* muted slate */
  --accent: #d32f2f;         /* restrained red accent */
  --divider: #e5e7eb;
}

/* =========================
   Base layout
========================= */
html,
body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);

  min-height: 100vh;
  display: flex;
  flex-direction: column;

  margin: 0;

  /* Fixed-nav compensation */
  padding-top: var(--nav-h);
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  background: var(--bg-page);
}

/* =========================
   Headings
========================= */
h1 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;

  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;

  color: var(--text-primary);
}

/* Subtle accent underline for page titles */
h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.75rem auto 0;
  background: var(--accent);
  border-radius: 2px;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;

  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;

  color: var(--text-primary);
}

h3 {
  margin-top: 2rem;
  margin-bottom: 0.25rem;

  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Supporting text */
p,
.muted {
  color: var(--text-secondary);
}

/* =========================
   Page structure
========================= */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content grows to push footer */
.main-content {
  flex: 1 0 auto;
  min-height: 1px;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.home-flow {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.flow-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-card {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}

.home-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* animation */
.animate-in.is-ready {
  animation: slideIn 480ms ease-out forwards;
  animation-delay: calc(var(--i) * 120ms);
}

@keyframes slideIn {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);  opacity: 1; }
}

/* Optional: responsive */
@media (max-width: 900px) {
  .home-gallery { grid-template-columns: 1fr; }
  .home-card img { height: 240px; }
}


/* =========================
   Mobile adjustments
========================= */
@media (max-width: 700px) {
  body {
    padding-top: 0;              /* KEY: nav is in-flow now */
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1.0625rem; /* 17px */
    line-height: 1.7;
  }

  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }

  body {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
  }

}


