/* =========================================================================
   Ubimob Ltd — Marketing site stylesheet
   Design tokens mirror the modernised customer portal (portal_theme.css)
   so the journey from marketing site -> login -> app feels continuous.
   ========================================================================= */

:root {
  --nav-header:   #2c3e52;   /* top header bar */
  --nav-dark:     #1a2d42;   /* lower nav bar / dropdown panels */
  --accent:       #3366cc;   /* buttons, active states, highlights */
  --accent-dark:  #274d99;
  --content-bg:   #f8fafc;
  --card-bg:      #ffffff;
  --text-main:    #1e293b;
  --text-muted:   #64748b;
  --text-on-dark: #e2e8f0;
  --border:       #e2e8f0;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:    0 4px 16px rgba(15, 23, 42, 0.10);
  --max-width:    1160px;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  display: block;
  background: var(--content-bg);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.site-header {
  background: var(--nav-header);
  color: var(--text-on-dark);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  display: none; /* shown on desktop only, see breakpoint below */
}

@media (min-width: 760px) {
  .site-title { display: block; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 44px;
  width: auto;
}

.strapline {
  font-size: 0.92rem;
  color: #b8c4d4;
  white-space: nowrap;
  justify-self: end;
}

.strapline em {
  color: #ffffff;
  font-style: italic;
  font-weight: 600;
}

@media (max-width: 640px) {
  .strapline { display: none; }
}

/* ---------- Nav ---------- */

.site-nav {
  background: var(--nav-dark);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button.nav-toggle {
  display: inline-block;
  padding: 14px 18px;
  color: var(--text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-links > li > a:hover,
.nav-links > li > button.nav-toggle:hover {
  color: #ffffff;
  text-decoration: none;
}

.nav-links a.active {
  color: #ffffff;
  font-weight: 700;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  margin: 9px 4px;
  box-shadow: none;
}

/* Solutions dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--nav-dark);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
  z-index: 20;
  padding: 6px 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

/* Explicit open state, toggled by JS — makes the dropdown work reliably
   on touch devices where :hover/:focus-within alone is inconsistent */
.dropdown.open {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--text-on-dark);
  font-size: 0.92rem;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  padding: 10px 14px;
  cursor: pointer;
}

.nav-cta {
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-cta { display: none; }
}

@media (max-width: 860px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; box-shadow: none; }
  .site-nav .wrap { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-block { width: 100%; text-align: center; }

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

.hero {
  padding: 64px 0 56px;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--text-main);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.hero-page {
  background: var(--nav-header);
  color: var(--text-on-dark);
  padding: 44px 0;
}

.hero-page h1 { color: #fff; margin: 0 0 10px; font-size: 2rem; }
.hero-page p { color: #cbd5e1; max-width: 640px; margin: 0; }

/* ---------- Path cards (homepage split) ---------- */

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 8px 0 56px;
}

@media (max-width: 420px) {
  .path-grid, .card-grid { grid-template-columns: 1fr; }
}

.path-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.path-card .eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.path-card h3 { margin: 0 0 10px; font-size: 1.3rem; }

.path-card ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.path-card li { margin-bottom: 6px; }

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Section / content blocks ---------- */

.section {
  padding: 48px 0;
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 18px;
}

.section-alt {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 1.05rem;
}

.card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* Service blocks (Consultancy) */
.service-block {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: 0; }

.service-block .num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.service-block h4 { margin: 0 0 6px; }
.service-block p { margin: 0; color: var(--text-muted); }

/* ---------- Forms ---------- */

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- Live noticeboard embed ---------- */

.iframe-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-height: 300px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0f172a;
}

.iframe-scale-inner {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}

.iframe-scale-inner iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 560px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--nav-header);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}

.cta-banner h2 { margin: 0 0 10px; color: #fff; }
.cta-banner p { color: #cbd5e1; margin: 0 0 22px; }

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

.site-footer {
  background: var(--content-bg);
  color: var(--text-muted);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a { color: var(--accent); }

/* ---------- Utility ---------- */

.text-center { text-align: center; }

.desktop-only {
  display: none;
}

@media (min-width: 800px) {
  .desktop-only { display: block; }
}

.mobile-only {
  display: inline-block;
}

@media (min-width: 800px) {
  .mobile-only { display: none; }
}
.mt-0 { margin-top: 0; }
.small-muted { color: var(--text-muted); font-size: 0.88rem; }
