/* NatWest homepage replica - HTML/CSS only
   Image and icon spaces are intentionally left empty (placeholders)
   so they can be replaced by real assets later. */

:root {
  --purple-900: #3c1053;       /* deep top bar */
  --purple-700: #5a287d;       /* hero / brand */
  --purple-600: #6a2d8a;
  --purple-100: #f3eef7;
  --yellow:     #ffd338;
  --text:       #2d1b3f;
  --muted:      #6b6478;
  --bg:         #ffffff;
  --bg-muted:   #f6f3f9;
  --border:     #e3dde9;
  --radius:     12px;
  --maxw:       1200px;
  --shadow:     0 2px 6px rgba(60, 16, 83, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-700); text-decoration: underline; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Placeholders (empty spaces for icons/images) ---------- */
.placeholder {
  background: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}
.section .placeholder,
.footer .placeholder,
.card .placeholder {
  background: var(--purple-100);
  border: 1px dashed #c9b8d6;
}
.placeholder--icon   { width: 48px; height: 48px; border-radius: 10px; }
.placeholder--hero   { width: 100%; aspect-ratio: 4/3; }
.placeholder--photo  { width: 100%; aspect-ratio: 16/9; }
.placeholder--tile   { width: 100%; aspect-ratio: 4/3; margin-bottom: 16px; }
.placeholder--social { display:inline-block; width: 32px; height: 32px; border-radius: 50%; }

.icon { display:inline-block; width:16px; height:16px; vertical-align:-2px;
        background: currentColor; opacity:.5;
        -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
/* empty icon spaces — left blank for replacement */
.icon--lock,
.icon--search,
.icon--ext { background: transparent; border: 1px dashed currentColor;
             border-radius: 3px; opacity: .8; }

/* ---------- Top utility nav ---------- */
.top-nav {
  background: var(--purple-900);
  color: #fff;
  font-size: 14px;
}
.top-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 24px;
}
.top-nav__tabs {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
}
.top-nav__tabs li a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 14px 20px;
}
.top-nav__tabs li.active a {
  background: var(--purple-700);
  font-weight: 600;
}
.login-btn {
  align-self: center;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Header ---------- */
.header {
  background: var(--purple-700);
  color: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  /* placeholder for the NatWest cube logo */
  position: relative;
}
.main-nav { flex: 1; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); }

.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search input {
  border: none;
  border-radius: 999px;
  padding: 10px 44px 10px 18px;
  font-size: 14px;
  width: 220px;
  background: #fff;
  color: var(--text);
}
.search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer; color: var(--purple-700);
  width: 32px; height: 32px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--purple-700);
  color: #fff;
  padding-top: 40px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}
.hero__eyebrow { font-size: 14px; opacity: .9; margin: 0 0 16px; }
.hero__title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero__title mark {
  background: var(--yellow);
  color: var(--purple-900);
  padding: 0 8px;
  border-radius: 2px;
}
.hero__sub { max-width: 540px; margin: 0 0 28px; opacity: .95; }
.hero__media .placeholder { min-height: 320px; }
.hero__disclaimer {
  background: var(--purple-900);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 16px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn--white {
  background: #fff;
  color: var(--purple-700);
}
.btn--white:hover { box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.btn--purple {
  background: var(--purple-700);
  color: #fff;
}
.btn--purple:hover { background: var(--purple-900); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: underline;
}
.link-arrow::after {
  content: "›";
  font-size: 18px;
  text-decoration: none;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; background: #fff; }
.section--muted { background: var(--bg-muted); }
.section__title {
  color: var(--purple-700);
  font-size: 32px;
  margin: 0 0 32px;
}
.section__sub { max-width: 720px; margin: -16px 0 32px; color: var(--muted); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 24px;
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 24px;
}
.card__icon { margin-bottom: 16px; }
.card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}
.card h3 a { color: var(--purple-700); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card ul li { margin-bottom: 10px; }
.card ul li a {
  color: var(--purple-700);
  text-decoration: underline;
  font-size: 15px;
}

/* ---------- Support ---------- */
.support__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  margin-top: 16px;
}

/* ---------- Feature (Rooster) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature__content h2 {
  color: var(--purple-700);
  font-size: 32px;
  margin: 0 0 16px;
}
.feature__content p { margin: 0 0 14px; }
.feature__content .small { font-size: 13px; color: var(--muted); }
.feature__content .btn { margin-top: 8px; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: stretch;
  gap: 12px;
}
.carousel__nav {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  align-self: center;
  cursor: pointer;
  font-size: 22px;
  color: var(--purple-700);
}
.carousel__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tile h3 {
  color: var(--purple-700);
  margin: 0 0 8px;
  font-size: 18px;
}
.tile p { font-size: 14px; margin: 0 0 16px; flex: 1; }
.note { color: var(--muted); font-size: 13px; margin-top: 24px; }
.small { font-size: 13px; }

/* ---------- Article cards ---------- */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.article-card .placeholder { border-radius: 0; }
.article-card h3 {
  color: var(--purple-700);
  margin: 16px 16px 8px;
  font-size: 20px;
}
.article-card p { margin: 0 16px 16px; font-size: 14px; flex: 1; }
.article-card .link-arrow { margin: 0 16px 20px; }

/* ---------- Survey ---------- */
.survey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.survey__content h2 {
  color: var(--purple-700);
  font-size: 28px;
  margin: 0 0 16px;
}
.survey__content h3 {
  color: var(--purple-700);
  font-size: 20px;
  margin: 24px 0 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--purple-900);
  color: #fff;
  padding-top: 48px;
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.footer h4 {
  font-size: 16px;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: .9;
}
.footer ul li a:hover { text-decoration: underline; }
.socials { display: flex; gap: 12px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 24px 0;
  font-size: 13px;
  opacity: .85;
}
.footer__bottom p { margin: 0 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .top-nav__tabs { overflow-x: auto; }
  .top-nav__tabs li a { padding: 12px 14px; white-space: nowrap; }
  .header__inner { flex-wrap: wrap; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 6px 8px; font-size: 14px; }
  .search input { width: 160px; }
  .hero__inner,
  .feature,
  .survey { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .carousel { grid-template-columns: 1fr; }
  .carousel__nav { display: none; }
  .carousel__track { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}