/* =========================================================
   AKAL Bindu Mortgages — Landing Page Prototype
   Plain CSS, no frameworks. Edit the colours below to restyle.
   ========================================================= */

/* ---------- 1. Colours, fonts and spacing ---------- */
:root {
  --navy-900: #0b1a33;
  --navy-800: #11264a;
  --navy-700: #1a3463;
  --navy-100: #e8edf6;
  --gold-500: #c9a24d;
  --gold-400: #d8b768;
  --gold-100: #f7f0de;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --text: #1f2a3d;
  --text-muted: #5b6678;
  --border: #dfe4ec;

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 26, 51, 0.08);
  --container: 1140px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* keeps headings visible below the sticky header */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--navy-700); }

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

.container-narrow { max-width: 820px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bracketed text that still needs to be verified */
.placeholder {
  background: var(--gold-100);
  color: #6b5320;
  padding: 0 4px;
  border-radius: 4px;
  font-style: italic;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn-small { padding: 8px 16px; font-size: 0.95rem; }
.btn-block { display: block; width: 100%; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  color: var(--gold-500);
  font-family: var(--font-heading);
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}
.logo-text span { color: var(--gold-500); font-weight: 400; }

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

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--white); }
.site-nav a.btn { color: var(--navy-900); }

/* Hamburger button (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--white);
  content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

/* ---------- 5. Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 162, 77, 0.18), transparent 45%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 80px 0 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-points li::before {
  content: "\2713";
  color: var(--gold-500);
  margin-right: 8px;
  font-weight: 700;
}

/* Hero photo: rounded frame, soft shadow, thin gold edge and a gentle navy fade at the bottom */
.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  background: var(--navy-800); /* shows while the photo loads */
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 77, 0.55);
  background: linear-gradient(to top, rgba(11, 26, 51, 0.35), transparent 35%);
  pointer-events: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-500);
  margin-bottom: 12px;
}

/* ---------- 6. Generic sections ---------- */
.section { padding: 90px 0; }
.section-tint { background: var(--off-white); }

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-heading p:not(.eyebrow) { color: var(--text-muted); }

/* How We Help cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-500);
}
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-100);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* How It Works steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: none;
}

.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step p { color: var(--text-muted); margin: 0; }

.step-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid var(--gold-500);
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}
.about-text p:not(.eyebrow) { color: var(--text-muted); }

.about-panel {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 4px solid var(--gold-500);
}
.about-panel h3 { color: var(--white); }

.placeholder-list { margin: 0; }
.placeholder-list dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-top: 16px;
}
.placeholder-list dd { margin: 4px 0 0; display: inline-block; }

/* FAQs */
.faq-list { display: grid; gap: 14px; }

.faq {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  font-weight: 600;
  color: var(--navy-900);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-500);
}
.faq[open] summary::after { content: "\2212"; }

.faq p { color: var(--text-muted); padding-bottom: 20px; margin: 0; }

/* ---------- 7. Consultation (HubSpot form) ---------- */
.section-navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.section-navy h2 { color: var(--white); }
.section-navy p { color: rgba(255, 255, 255, 0.85); }
.consult-note a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
.consult-note a:hover { color: var(--gold-400); }

.consult-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* White card that holds the HubSpot form. The form itself is drawn by HubSpot,
   so its fields, buttons and colours are styled in HubSpot's form editor. */
.consult-form-card {
  min-width: 0;        /* lets the card shrink inside the grid on small screens */
  min-height: 420px;   /* reserves space while the HubSpot form loads */
  background: var(--white);
  color: var(--text);
  border-radius: 16px;
  border-top: 4px solid var(--gold-500);
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.consult-form-card .hs-form-frame {
  width: 100%;
  max-width: 100%;
}

.consult-form-card .consult-noscript {
  margin: 0;
  color: var(--text);
}

/* ---------- 8. Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 {
  color: var(--gold-500);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.footer-tagline { margin-top: 14px; }

.footer-legal {
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-legal strong { color: rgba(255, 255, 255, 0.85); }

/* Links in the small print (e.g. Privacy Policy): underlined so they read as links,
   and allowed to wrap on narrow phone screens. */
.footer-legal a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.footer-legal a:hover { color: var(--gold-400); }
.copyright { margin: 20px 0 0; }

/* ---------- 9. Responsive (tablet + mobile) ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner,
  .about-inner,
  .consult-inner { grid-template-columns: 1fr; }
  .hero-image { max-width: 520px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    padding: 8px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav a.btn { margin-top: 8px; padding: 12px; }

  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-actions .btn { width: 100%; }

  .card-grid,
  .steps,
  .footer-grid { grid-template-columns: 1fr; }

  .consult-form-card { padding: 24px 16px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
