/* =========================================================
   Cogbound website - shared styles
   One file for every page (English and Bangla).
   Change a colour here and it changes on the whole site.
   ========================================================= */

/* ---------- 1. Colours and sizes (CSS variables) ---------- */
:root {
  --navy: #17592F;        /* main brand colour: buttons, headings */
  --navy-soft: #1F7A43;   /* small labels */
  --green: #1F8A5B;       /* logo green, used for small accents */
  --bg-soft: #F2F7F3;     /* grey section background */
  --bg-tint: #E3F1E8;     /* icon boxes, placeholders */
  --border: #DDE8E0;
  --text: #1A1F2B;        /* normal text */
  --text-soft: #4A5A70;   /* secondary text */
  --radius: 12px;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-bn: 'Hind Siliguri', 'Inter', sans-serif;
}

/* ---------- 2. Basics ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--text);
  line-height: 1.6;
  background: #FFFFFF;
}

/* Bangla pages use <html lang="bn">, so they get the Bangla font */
html[lang="bn"] body { font-family: var(--font-bn); }

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-soft); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0; }
p { margin: 0; }

/* Centered content box used inside every section */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Space above and below each section */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #FFFFFF; }
.section--navy h2 { color: #FFFFFF; }

.eyebrow {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.section-title { font-size: 36px; letter-spacing: -0.8px; margin-bottom: 40px; }
.section-title--center { text-align: center; }
.section-intro { font-size: 18px; color: var(--text-soft); max-width: 640px; margin: -28px 0 40px; }
.section-intro--center { text-align: center; margin-left: auto; margin-right: auto; }
html[lang="bn"] .section-title { letter-spacing: 0; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1.5px solid var(--navy);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary { background: var(--navy); color: #FFFFFF; }
.btn--primary:hover { background: var(--navy-soft); color: #FFFFFF; }
.btn--outline { background: #FFFFFF; color: var(--navy); }
.btn--white { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }
.btn--ghost-white { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn--ghost-white:hover { color: #FFFFFF; }
.btn--full { width: 100%; }

/* ---------- 4. Header ---------- */
.header { border-bottom: 1px solid var(--border); background: #FFFFFF; }
.header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.nav a { color: #3A4658; text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--navy); }
.nav .btn { min-height: 44px; font-size: 15px; color: #FFFFFF; }

/* Language switch: EN | বাংলা */
.logo img { height: 34px; width: auto; }
.lang {
  display: inline-flex;
  border: 1px solid #C9D3E1;
  border-radius: 99px;
  overflow: hidden;
  font-size: 14px;
  min-height: 40px;
}
.lang span, .lang a { display: inline-flex; align-items: center; padding: 0 14px; }
.lang .active { background: var(--navy); color: #FFFFFF; font-weight: 600; }
.lang a { color: var(--navy); }
.lang .bn { font-family: var(--font-bn); }
.lang .en { font-family: var(--font-en); }

/* ---------- 5. Hero (top of page) ---------- */
.hero { padding: 88px 0 80px; }
.hero--soft { background: var(--bg-soft); padding: 72px 0; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-visual { flex: 1 1 400px; min-width: 0; }
.hero h1 { font-size: 52px; line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 20px; }
html[lang="bn"] .hero h1 { font-size: 46px; line-height: 1.3; letter-spacing: 0; }
.hero-lead { font-size: 19px; color: #3A4658; max-width: 540px; margin-bottom: 32px; }
.hero-tag { font-size: 15px; font-weight: 600; color: var(--navy-soft); margin-bottom: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Browser window drawing (used for screenshots) */
.browser { background: #FFFFFF; border: 1px solid #D5DCE6; border-radius: 14px; overflow: hidden; }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5DCE6; }

/* Simple drawing of a laptop page + phone on the home hero */
.mock { position: relative; height: 380px; }
.mock-browser { position: absolute; left: 0; top: 20px; right: 70px; height: 300px; }
.mock-lines { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.line { height: 10px; border-radius: 4px; background: var(--border); }
.line--dark { height: 14px; background: var(--navy); }
.blocks { display: flex; gap: 12px; margin-top: 12px; }
.blocks div { flex: 1; height: 110px; background: var(--bg-soft); border-radius: 8px; }
.mock-phone {
  position: absolute; right: 0; bottom: 0;
  width: 150px; height: 290px;
  background: var(--navy); border-radius: 26px; padding: 10px;
}
.mock-phone-screen {
  height: 100%; background: #FFFFFF; border-radius: 18px;
  padding: 16px 12px; display: flex; flex-direction: column; gap: 10px;
}
.mock-phone-screen .tile { height: 70px; background: var(--bg-soft); border-radius: 8px; }

/* Grey box that marks where a real image will go */
.placeholder {
  background: var(--bg-tint);
  border: 1px dashed #9AA8BC;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
  padding: 16px;
}

/* ---------- 6. Cards and grids ---------- */
/* .grid puts cards side by side and wraps them on small screens */
.grid { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 240px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 20px; margin: 16px 0 6px; }
.card p { font-size: 16px; color: var(--text-soft); }
.icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--bg-tint);
  color: var(--navy-soft);
}
.tag--green { background: #E4F4EC; color: #17683F; }
.tag--navy { background: var(--navy); color: #FFFFFF; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.title-row h3 { margin: 0; }

/* Product cards with an image on top */
.card--media { padding: 0; overflow: hidden; }
.card--media .placeholder { height: 170px; border: none; border-radius: 0; }
.card--media .card-body { padding: 24px; }
.card--media .card-body p { margin-bottom: 14px; }
.link-strong { font-size: 15px; font-weight: 600; }

.note-bar {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
}

/* Projects */
.project { flex: 1 1 320px; min-width: 0; }
.project .placeholder { height: 230px; }
.project h3 { font-size: 18px; margin: 14px 0 2px; }
.project p { font-size: 15px; color: var(--text-soft); }

/* Steps (How we work) */
.step { flex: 1 1 220px; min-width: 0; border-top: 2px solid var(--navy); padding-top: 18px; }
.step-num { font-size: 14px; font-weight: 700; color: var(--navy-soft); margin-bottom: 6px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { font-size: 16px; color: var(--text-soft); }

/* Steps with round numbers (school page) */
.step-round { flex: 1 1 260px; min-width: 0; }
.step-round .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.step-round h3 { font-size: 20px; margin: 16px 0 6px; }
.step-round p { font-size: 17px; color: var(--text-soft); }

/* Team */
.person { text-align: center; }
.person .placeholder { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 16px; padding: 0; }
.person h3 { font-size: 19px; margin: 0; }
.person p { font-size: 15px; margin-top: 2px; }

/* Problem / solution cards (school page) */
.label-problem { font-size: 15px; font-weight: 600; color: #8A4B12; margin-bottom: 8px; }
.label-solution { font-size: 15px; font-weight: 600; color: var(--navy-soft); margin-bottom: 8px; }
.problem-text { font-size: 18px; color: var(--text); margin-bottom: 16px; }

/* Packages */
.packages { justify-content: center; gap: 24px; }
.package { flex: 1 1 320px; max-width: 500px; padding: 32px; }
.package--featured { border: 2px solid var(--navy); }
.package h3 { font-size: 24px; margin: 0; }
.package .sub { margin: 4px 0 20px; }
.package ul { margin: 0 0 28px; padding-left: 20px; font-size: 17px; color: var(--text); }

/* FAQ: <details> opens and closes without any JavaScript */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq details { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; color: var(--navy); }
.faq details p { margin-top: 10px; font-size: 17px; color: var(--text-soft); }

/* ---------- 7. Contact ---------- */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-text { flex: 1 1 380px; min-width: 0; }
.contact-text h2 { font-size: 38px; letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 14px; }
.contact-text .lead { font-size: 18px; color: #CFE6D6; margin-bottom: 28px; }
.contact-text p { color: #FFFFFF; margin-bottom: 8px; }
.contact-text a { color: #FFFFFF; }
.form {
  flex: 1 1 420px; min-width: 0;
  background: #FFFFFF; color: var(--text);
  border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea {
  border: 1px solid #C9D3E1; border-radius: 8px;
  padding: 10px 12px; font: inherit; font-weight: 400;
}
.form input { min-height: 44px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.hidden { display: none; }

.cta-center { text-align: center; }
.cta-center p { font-size: 18px; color: #CFE6D6; max-width: 560px; margin: 0 auto 32px; }
.cta-center .btn-row { justify-content: center; }

/* ---------- 8. Footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--border); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-soft); }

/* ---------- 9. Phones (screens narrower than 640px) ---------- */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero, .hero--soft { padding: 56px 0; }
  .hero h1 { font-size: 36px; }
  html[lang="bn"] .hero h1 { font-size: 34px; }
  .section-title { font-size: 28px; }
  .contact-text h2 { font-size: 30px; }
  .mock { display: none; }          /* hide the drawing on small phones */
  .nav { gap: 10px 16px; }
}

/* =========================================================
   10. Minimal style
   Lots of white space, thin lines instead of boxes,
   near-black text, brand green only for buttons and links.
   ========================================================= */
:root {
  --ink: #161816;          /* headings and main text */
  --muted: #5F6660;        /* secondary text */
  --line: #E4E7E3;         /* thin divider lines */
}
body { color: var(--ink); }
h1, h2, h3 { color: var(--ink); }
.card p, .project p, .step p, .step-round p, .faq details p, .section-intro, .hero-lead { color: var(--muted); }

.header { border-bottom: none; }
.header .wrap { padding-top: 22px; padding-bottom: 22px; }

.section { padding: 120px 0; }
.section--soft { background: transparent; border-top: 1px solid var(--line); }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; color: var(--muted); }
.section-title { font-size: 44px; font-weight: 600; letter-spacing: -1.4px; max-width: 760px; margin-bottom: 56px; }

/* Hero: big type, no drawing */
.hero, .hero--soft { background: transparent; padding: 120px 0 112px; }
.hero h1 { font-size: 72px; font-weight: 600; letter-spacing: -2.6px; line-height: 1.04; max-width: 900px; }
html[lang="bn"] .hero h1 { font-size: 58px; line-height: 1.25; }
.hero-lead { font-size: 21px; max-width: 620px; }
.mock { display: none; }
.hero .hero-text { flex-basis: 100%; }

/* Cards become plain columns separated by a thin top line */
.card {
  background: transparent; border: none; border-radius: 0;
  border-top: 1px solid var(--ink); padding: 24px 0 0;
}
.card h3 { margin-top: 0; font-size: 21px; font-weight: 600; }
.title-row[style] { margin-top: 0 !important; }
.icon { display: none; }
.card--media { border-top: none; padding: 0; }
.card--media .placeholder { border-radius: 6px; border: 1px solid var(--line); }
.card--media .card-body { padding: 20px 0 0; }
.placeholder { background: #F4F5F3; border: 1px solid var(--line); border-style: solid; }

.tag { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.tag--navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.note-bar { border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 0; margin-top: 48px; }

.btn { border-radius: 999px; font-weight: 500; }
.link-strong { text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

.step { border-top-color: var(--ink); }
.step-round .num { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-weight: 500; }

/* Packages: two clean columns */
.package { border: none; border-top: 1px solid var(--ink); padding: 28px 0 0; }
.package--featured { border: none; border-top: 3px solid var(--navy); }

/* FAQ: lines, no boxes */
.faq { gap: 0; }
.faq details { background: transparent; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--ink); font-weight: 500; }

.person { text-align: left; }
.person .placeholder { margin: 0 0 16px; }

/* Contact: light instead of a dark band */
.section--navy { background: #F4F6F3; color: var(--ink); border-top: none; }
.section--navy h2 { color: var(--ink); }
.contact-text .lead, .cta-center p { color: var(--muted); }
.contact-text p, .contact-text a { color: var(--ink); }
.form { border: 1px solid var(--line); border-radius: 10px; }
.btn--white { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.btn--ghost-white { color: var(--ink); border-color: var(--ink); }
.btn--ghost-white:hover { color: var(--ink); }

.footer { border-top: 1px solid var(--line); padding: 40px 0; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero, .hero--soft { padding: 72px 0; }
  .hero h1 { font-size: 42px; letter-spacing: -1.4px; }
  html[lang="bn"] .hero h1 { font-size: 36px; }
  .section-title { font-size: 30px; }
}
.section-title--center { margin-left: auto; margin-right: auto; }

/* Light green buttons (dark green text keeps them easy to read) */
:root { --btn: #4CC38A; --btn-hover: #3DB57B; --btn-text: #0E3B1F; }
.btn--primary, .btn--white, .nav .btn {
  background: var(--btn); border-color: var(--btn); color: var(--btn-text);
}
.btn--primary:hover, .btn--white:hover, .nav .btn:hover {
  background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-text);
}
.lang .active { background: var(--btn); color: var(--btn-text); }

/* =========================================================
   11. Phone layout (screens narrower than 640px)
   ========================================================= */
@media (max-width: 640px) {
  /* Header on one line: logo left, contact button right.
     The section links are hidden to keep it on one line. */
  .header .wrap { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .logo img { height: 28px; }

  /* Hero */
  .hero, .hero--soft { padding: 48px 0 56px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.2px; line-height: 1.1; }
  html[lang="bn"] .hero h1 { font-size: 32px; line-height: 1.3; }
  .hero-lead { font-size: 17px; margin-bottom: 24px; }
  .hero .wrap { gap: 36px; }
  .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
  .hero-visual .placeholder { height: 200px !important; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; letter-spacing: -0.6px; margin-bottom: 28px; }
  .section-title--center, .section-intro--center { text-align: left; margin-left: 0; margin-right: 0; }
  .section-intro { font-size: 16px; margin: -16px 0 28px; }
  .grid { gap: 28px; }

  /* Smaller image boxes */
  .card--media .placeholder { height: 150px; }
  .project .placeholder { height: 180px !important; }

  /* School features: two per row so the list is shorter */
  #features .grid { gap: 24px 16px; }
  #features .card { flex: 1 1 calc(50% - 8px) !important; padding-top: 14px; }
  #features .card h3 { font-size: 17px; }
  #features .card p { font-size: 14px; }

  /* Demo screenshots: side-scrolling row */
  #demo .grid { flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  #demo .project { flex: 0 0 78%; scroll-snap-align: start; }

  .contact-text h2 { font-size: 28px; }
  .footer { padding: 28px 0; }
}

/* Bangla letters look smaller than English at the same size,
   so Bangla pages get slightly bigger body text. */
html[lang="bn"] .hero-lead { font-size: 22px; }
html[lang="bn"] .card p, html[lang="bn"] .project p { font-size: 17px; }
html[lang="bn"] .section-intro { font-size: 19px; }
html[lang="bn"] .problem-text { font-size: 19px; }
html[lang="bn"] .label-problem, html[lang="bn"] .label-solution { font-size: 16px; }
html[lang="bn"] .step-round p, html[lang="bn"] .faq details p, html[lang="bn"] .package ul { font-size: 18px; }
html[lang="bn"] .faq summary { font-size: 20px; }
html[lang="bn"] .nav a, html[lang="bn"] .btn { font-size: 16px; }
@media (max-width: 640px) {
  html[lang="bn"] .hero-lead { font-size: 18px; }
  html[lang="bn"] #features .card p { font-size: 15px; }
  html[lang="bn"] #features .card h3 { font-size: 18px; }
}
