/* OpenTWI — shared styles
   Colors and fonts carried over from the original WordPress (The7) theme. */

:root {
  --header-bg: #23262d;
  --footer-bg: #2d6aa3;
  --strip-bg: #0f172a;
  --accent: #4ba4f2;
  --cta: #1ea7e1;
  --cta-hero: #0ea5e9;
  --btn: #0369a1;
  --btn-hover: #0891b2;
  --heading: #3b3f4a;
  --heading-dark: #0f172a;
  --text: #787d85;
  --text-strong: #475569;
  --surface-blue: #f2f8ff;
  --surface-grey: #f9f9f9;
  --border: #e5e7eb;
  --white: #ffffff;

  --font-body: "Montserrat", Arial, sans-serif;
  --font-head: "Roboto", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 8px;
}

a { color: inherit; }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo img { width: 200px; height: 35px; object-fit: contain; }

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

.nav a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); }

.nav .menu-btn {
  background: var(--cta);
  color: var(--white);
  padding: 10px 29px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.nav .menu-btn:hover { color: #fcf6b0; }

@media (max-width: 760px) {
  .site-header .container { min-height: 60px; }
  .logo img { width: 150px; height: 26px; }
  .nav { gap: 16px; }
  .nav .nav-link { display: none; }
  .nav .menu-btn { padding: 8px 16px; font-size: 14px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: url("../img/Hero-Image-2.webp") center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero .container {
  position: relative;
  padding-top: 110px;
  padding-bottom: 110px;
}

.hero-kicker {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}

.notice {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 15px;
  font-weight: 500;
}

.btn-hero {
  display: inline-block;
  background: var(--cta-hero);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  padding: 13px 27px;
  border-radius: 20px;
}

.btn-hero:hover { background: var(--btn-hover); }

/* ---------- Sections ---------- */

.section { padding: 70px 0; }
.section-grey { background: var(--surface-grey); }

.section-head {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h1,
.section-head h2 { font-size: 34px; font-weight: 700; }

.about {
  max-width: 800px;
  margin: 0 auto;
}

.about h2 { font-size: 34px; font-weight: 700; text-align: center; margin-bottom: 20px; }
.about p { font-size: 17px; color: var(--text-strong); }

/* History cards */

.history {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.history-card {
  background: var(--surface-blue);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
}

.history-card img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 20px; }
.history-card h3 { font-size: 20px; font-weight: 500; }
.history-card p { margin: 0; font-size: 15px; }

@media (max-width: 991px) { .history { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .history { grid-template-columns: 1fr; } }

/* ---------- Download cards (from the original .twi-* styles) ---------- */

.twi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.twi-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.twi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.twi-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f3f1ec; /* matches the scanned paper so phone letterboxing blends in */
}

.twi-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.twi-card:hover .twi-image img { transform: scale(1.05); }

.twi-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--btn);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.twi-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.twi-content h3 { font-size: 18px; font-weight: 500; color: var(--heading-dark); margin-bottom: 6px; }
.twi-content p { flex: 1; font-size: 13px; color: var(--text-strong); line-height: 1.5; margin: 0 0 12px; }
.twi-note { font-size: 12px; font-style: italic; color: var(--text-strong); line-height: 1.5; border-left: 3px solid var(--accent); padding-left: 10px; margin-bottom: 12px; }
.twi-meta { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 12px; }

.twi-button {
  display: block;
  text-align: center;
  padding: 10px 18px;
  background: var(--btn);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.twi-button:hover { background: var(--btn-hover); color: #d8f0ef; }

@media (max-width: 1100px) { .twi-grid { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; } }
@media (max-width: 639px) {
  .twi-grid { grid-template-columns: 1fr; gap: 20px; }
  .twi-image { aspect-ratio: 3 / 2.8; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  text-align: center;
  padding: 18px 0;
  font-size: 15px;
}

.site-footer img { width: 100px; height: 18px; object-fit: contain; margin: 0 auto 6px; }
.site-footer p { margin: 0; }
