/* Qosil — minimalist, navy + gold + ivory */
:root {
  --navy: #0E1A2A;
  --navy-2: #1B2A4E;
  --gold: #A77E2C;
  --gold-2: #B58E3F;
  --ivory: #F6F2EA;
  --charcoal: #2A2A2A;
  --muted: #6B6B6B;
}

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

html, body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-2); }

/* === Quotes band === */
.quotes-band {
  background: var(--navy);
  color: var(--ivory);
  padding: 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  height: 80px;
}
.quotes-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.quote {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  animation: rotateQuote 30s infinite;
}
.q1 { animation-delay: 0s; }
.q2 { animation-delay: 6s; }
.q3 { animation-delay: 12s; }
.q4 { animation-delay: 18s; }
.q5 { animation-delay: 24s; }

@keyframes rotateQuote {
  0%, 16% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .quote { animation: none; opacity: 1; position: relative; margin-bottom: 0.4rem; }
  .quotes-band { height: auto; }
}

/* === Hero === */
.hero {
  background-size: cover;
  background-position: center;
  color: var(--ivory);
  padding: 9rem 1.5rem;
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.brand {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.tagline {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(246, 242, 234, 0.92);
}

/* === Mission === */
.mission {
  background: var(--ivory);
  padding: 6rem 1.5rem;
}
.mission-inner {
  max-width: 760px;
  margin: 0 auto;
}
.mission p {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--navy);
  text-align: justify;
}

/* === Cards === */
.cards {
  background: #fff;
  padding: 6rem 1.5rem;
  border-top: 1px solid #ECE7DD;
  border-bottom: 1px solid #ECE7DD;
}
.cards-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.cards-heading {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.cards-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
.card {
  background: var(--ivory);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(14, 26, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(14, 26, 42, 0.12);
}
.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.card-body {
  padding: 1.8rem 1.6rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.card-text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 1.3rem;
  flex: 1;
}
.card-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.2s ease;
}
.card-link:hover {
  border-bottom-color: var(--gold);
}

/* === Footer === */
.footer {
  background: var(--navy);
  color: rgba(246, 242, 234, 0.85);
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}
.footer-line {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.footer-line a {
  color: var(--gold);
}
.footer-tag {
  margin-top: 1.25rem;
  font-family: 'Crimson Pro', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(246, 242, 234, 0.55);
}

/* === Responsive === */
@media (max-width: 900px) {
  .brand { font-size: 4.5rem; letter-spacing: 0.14em; }
  .tagline { font-size: 1.2rem; }
  .hero { padding: 6rem 1.5rem; }
  .mission p { font-size: 1.2rem; }
  .cards-heading { font-size: 2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 640px) {
  .quotes-band { padding: 1rem; height: auto; }
  .quote {
    position: relative;
    opacity: 1;
    animation: none;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  .quote.q3, .quote.q4, .quote.q5 { display: none; }
  .brand { font-size: 3.4rem; letter-spacing: 0.1em; }
  .tagline { font-size: 1.05rem; }
  .hero { padding: 4.5rem 1.2rem; }
  .mission { padding: 3.5rem 1.5rem; }
  .mission p { font-size: 1.05rem; line-height: 1.7; text-align: left; }
  .cards { padding: 3.5rem 1.2rem; }
  .cards-heading { font-size: 1.8rem; }
  .card-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-img { height: 180px; }
}
