/* ============================================================
   The Teemur Group — site styles
   Brand blue: #1470AF  |  Font: Poppins
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --brand: #1470AF;
  --brand-dark: #0f5a8c;
  --ink: #111111;
  --body: #1a1a1a;
  --muted: #5b6570;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --maxw: 1180px;
  --header-h: 88px;
  --radius: 0px; /* brand uses square corners */
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-weight: 300; letter-spacing: -0.5px; }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo img { height: 52px; width: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list > li { position: relative; }
.nav-link, .nav-toggle {
  font-family: inherit;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover, .nav-toggle:hover { color: var(--brand); }
.nav-toggle .caret {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform .2s ease;
}

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover .nav-toggle .caret,
.has-dropdown.open .nav-toggle .caret { transform: rotate(-135deg); margin-top: 2px; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
}
.dropdown a:hover { background: var(--bg-alt); color: var(--brand); }

/* Mobile menu button */
.menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,25,40,0.72) 0%, rgba(10,25,40,0.45) 55%, rgba(10,25,40,0.25) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-weight: 300;
  max-width: 15ch;
  margin-bottom: 0.35em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  max-width: 40ch;
  margin-bottom: 1.6em;
  color: rgba(255,255,255,0.92);
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.lead { font-size: 1.15rem; color: var(--muted); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.intro-grid h2 { margin-bottom: 0; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5em;
}
.card p { color: var(--muted); flex: 1; }
.card .card-link {
  margin-top: 14px;
  font-weight: 500;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .card-link::after {
  content: "→";
  transition: transform .18s ease;
}
.card .card-link:hover::after { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,0.75); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-methods { display: grid; gap: 26px; }
.contact-method .label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-method a, .contact-method .value {
  font-size: 1.35rem;
  color: #fff;
  font-weight: 300;
}
.contact-method a:hover { color: var(--brand); }
.contact-cta {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 40px 36px;
  text-align: center;
}
.contact-cta h3 { color: #fff; font-weight: 400; font-size: 1.5rem; }
.contact-cta p { color: rgba(255,255,255,0.75); }
.contact-cta .btn { margin-top: 8px; }
.contact-cta .email-alt { margin-top: 18px; font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.contact-cta .email-alt a { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1620;
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner img { height: 34px; opacity: 0.9; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); font-weight: 300; }
.footer-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    transition: transform .28s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-toggle { padding: 14px 24px; width: 100%; font-size: 1.05rem; }
  .nav > .btn { margin: 16px 24px 0; text-align: center; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--line);
    padding: 0;
    display: none;
    background: var(--bg-alt);
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { padding: 12px 40px; }

  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { min-height: 460px; }
}

/* ============================================================
   Inner pages
   ============================================================ */

/* Page banner */
.page-hero {
  background: linear-gradient(120deg, #0e2333 0%, var(--brand) 100%);
  color: #fff;
  padding: 90px 0 78px;
}
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}
.page-hero h1 {
  color: #fff;
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin: 0;
}
.page-hero .page-hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 60ch;
  margin: 0.6em 0 0;
}

/* Content */
.content { padding: 80px 0; }
.prose { max-width: 780px; }
.prose > p { font-size: 1.08rem; color: var(--body); }
.subhead {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 24px;
}

/* Feature grid (services, interfaces, app features) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 48px;
}
.feature h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.feature p { color: var(--muted); margin: 0; }

/* Checklist (power platform questions) */
.checklist { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 1.08rem;
  color: var(--body);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}

/* FAQ (native accordion) */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--brand);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  margin: 0;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* CTA band */
.cta-band {
  background: var(--bg-alt);
  text-align: center;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { color: var(--muted); max-width: 54ch; margin: 0 auto 1.7em; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 34px; }
  .page-hero { padding: 64px 0 56px; }
  .content { padding: 56px 0; }
}
