/* ============================================================
   We Buy Macs — Design System (AI_RULES.md palette)
   ============================================================ */

:root {
  --primary: #071B4D;
  --blue: #2563EB;
  --dark-blue: #1D4ED8;
  --cyan: #38BDF8;
  --slate: #64748B;
  --light-blue: #BFDBFE;
  --very-light-blue: #EFF6FF;
  --light-gray: #F1F1F1;
  --text: #2F2F2F;
  --secondary-text: #4E4E4E;
  --border: #DFDFDF;
  --gray: #A0A0A0;
  --white: #FFFFFF;

  /* Brand typeface: Jura (fallback: system sans-serif, Arial/Helvetica) */
  --font: 'Jura', Arial, Helvetica, system-ui, sans-serif;
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(7, 27, 77, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration: none;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--dark-blue); }

.btn--outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--light-blue);
}
.btn--outline:hover { border-color: var(--blue); }

.btn--light {
  background: var(--white);
  color: var(--primary);
}
.btn--light:hover { background: var(--very-light-blue); }

.btn--dark {
  background: #4A4A4A;
  color: var(--white);
}
.btn--dark:hover { background: #333333; }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 9px;
  padding-bottom: 9px;
  position: relative;
}

.topbar__text { margin: 0; font-weight: 500; }

.topbar__locale {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.topbar__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
}

.topbar__locale:hover { color: var(--light-blue); }
.topbar__locale:hover .topbar__flag { color: inherit; }

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

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}

.logo__mark {
  width: 32px;
  height: 32px;
}

.logo__text {
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
}

.logo--light .logo__text { color: var(--white); }

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--secondary-text);
  font-weight: 500;
  font-size: 15px;
}

.nav__link:hover,
.nav__link.is-active { color: var(--blue); }

.nav__mobile-login { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  display: block;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__login {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.header__login:hover { color: var(--blue); }

.header__cart {
  color: var(--slate);
  display: inline-flex;
}

.header__cart img { width: 20px; height: 20px; }
.header__cart:hover { opacity: 0.7; }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section--tint { background: var(--very-light-blue); }
.section--dark {
  background: var(--primary) url("../images/review-bg.png") center / cover no-repeat;
  color: var(--white);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--light-blue);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.section--dark .section__kicker,
.section--tint .section__kicker {
  background: transparent;
  border-color: var(--slate);
  color: var(--cyan);
}

.section--tint .section__kicker {
  border-color: var(--light-blue);
  color: var(--blue);
}

.section__kicker--stats {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  background: var(--very-light-blue);
}

.section__kicker--stats svg { width: 14px; height: 14px; flex: none; }

.section__title { font-size: 32px; }
.section__lead { color: var(--secondary-text); margin: 0; }
.section--dark .section__lead { color: var(--light-blue); }

/* ---------- Image placeholder ---------- */

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* Image inside a placeholder keeps a fixed ratio and fills the box */
.img-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.hero {
  background: var(--very-light-blue);
  padding: 90px 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero__title {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero__title span { color: var(--blue); }

.hero__lead {
  color: var(--secondary-text);
  font-size: 17px;
  max-width: 480px;
}

.hero__content .hero__lead + .hero__lead {
  font-size: 15px;
  margin-bottom: 0.9em;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__media .img-placeholder { min-height: 340px; background: var(--light-blue); border-color: var(--cyan); }

/* ---------- Home page ---------- */

.home_hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home_hero__media .home_img-placeholder { 
  min-height: 340px;  border-color: var(--cyan); }


/* ---------- Device search ---------- */

.device-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 26px auto 0;
  padding: 6px 6px 6px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(7, 27, 77, 0.06);
}

.device-search:focus-within { border-color: var(--blue); }

.device-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.device-search__input::placeholder { color: var(--gray); }

.device-search__btn {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--very-light-blue);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.device-search__btn:hover { background: var(--blue); color: var(--white); }
.device-search__btn svg { width: 18px; height: 18px; }

/* ---------- Category cards ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 14px 18px;
  text-align: center;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cat-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.cat-card__media {
  height: 76px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.cat-card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--primary);
}

.cat-card__meta {
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 14px;
}

.cat-card__arrow {
  width: 34px;
  height: auto;
  margin-top: auto;
}

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.step-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--very-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.step-card__icon svg { width: 34px; height: 34px; }

.step-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card__title { font-size: 18px; }
.step-card__text { color: var(--secondary-text); font-size: 15px; margin: 0; }

/* ---------- Why choose us ---------- */

.img-why-choose-us {
  width: 100%;
  max-width: 565px;
}

.img-why-choose-us img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.why__item {
  display: flex;
  gap: 16px;
}

.why__item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--very-light-blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why__item-icon svg { width: 20px; height: 20px; }

.why__item-title { margin: 0 0 4px; font-size: 16px; }
.why__item-text { margin: 0; color: var(--secondary-text); font-size: 14px; }

/* ---------- Testimonials ---------- */

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.testi-card__text {
  color: var(--secondary-text);
  font-size: 15px;
}

.testi-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.testi-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-card__name { margin: 0; font-size: 15px; color: var(--primary); }
.testi-card__role { margin: 0; font-size: 13px; color: var(--slate); }

/* ---------- Split section ---------- */

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

.split__title { font-size: 34px; }
.split__text { color: var(--secondary-text); }
.split__grid .btn { margin-top: 10px; }

/* ---------- FAQ ---------- */

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
}

.faq-item__q::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}

.faq-item.is-open .faq-item__q::after { content: "\2212"; }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item__a p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--secondary-text);
  font-size: 15px;
}

/* ---------- Contact page ---------- */

.page-hero {
  background: var(--very-light-blue);
  text-align: center;
  padding: 70px 0;
}

.page-hero__title {
  font-size: 38px;
  margin-bottom: 16px;
}

.page-hero__lead {
  color: var(--secondary-text);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: var(--very-light-blue);
  border-radius: 16px;
  padding: 38px 36px;
}

.contact-form__title {
  font-size: 26px;
  margin-bottom: 26px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
}

.form-input::placeholder { color: var(--gray); }
.form-input:focus { outline: none; border-color: var(--blue); }

.form-textarea { resize: vertical; min-height: 110px; }

.contact-info__title {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-info__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-info__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info__list svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-info__list a {
  color: var(--secondary-text);
  font-size: 14px;
}

.contact-info__list a:hover { color: var(--blue); }

.map-box { position: relative; }

.map-box__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  background: var(--light-gray);
}

.office-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  max-width: 320px;
}

.office-card__title {
  font-size: 16px;
  margin-bottom: 12px;
}

.office-card__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--secondary-text);
  margin-bottom: 8px;
}

.office-card__item:last-child { margin-bottom: 0; }

.office-card__item svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Login modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open { display: flex; }

body.modal-open { overflow: hidden; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 77, 0.45);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 450px;
  background: var(--white);
  border-radius: 16px;
  padding: 38px 40px 32px;
  box-shadow: var(--shadow-card);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--secondary-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal__close svg { width: 13px; height: 13px; }
.modal__close:hover { color: var(--primary); border-color: var(--primary); }

.modal__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.modal__logo img { width: 28px; height: 28px; }
.modal__logo .logo__text { font-size: 17px; }

.modal__title {
  text-align: center;
  font-size: 25px;
  margin-bottom: 26px;
}

.modal__submit { width: 100%; }

.modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.modal__row--center { justify-content: center; }

.modal__card--success {
  padding-top: 60px;
  padding-bottom: 40px;
}

.modal__success-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 34px;
}

.modal__forgot {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.modal__forgot:hover { color: var(--blue); }

.modal__social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--primary);
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--very-light-blue);
  color: var(--primary);
}

.btn-social svg { width: 16px; height: 16px; }
.btn-social:hover { background: var(--light-blue); }

.modal__foot {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: var(--secondary-text);
}

.modal__foot a {
  color: var(--primary);
  font-weight: 600;
}

.modal__foot a:hover { color: var(--blue); }

/* ---------- How It Works cards ---------- */

.hiw {
  display: grid;
  gap: 28px;
}

.hiw__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: var(--shadow-card);
}

.hiw__title {
  font-size: 24px;
  margin-bottom: 14px;
}

.hiw__text {
  color: var(--secondary-text);
  font-size: 14px;
  margin: 0;
  max-width: 400px;
}

.hiw__media {
  display: flex;
  justify-content: center;
}

.hiw__media img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.hiw__card--reverse .hiw__content { order: 2; }
.hiw__card--reverse .hiw__media { order: 1; }

/* ---------- Partnership page ---------- */

.subnav {
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
}

.subnav__label {
  font-weight: 600;
  white-space: nowrap;
}

.subnav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subnav__list li {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.subnav__list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.subnav__list a { color: var(--white); }
.subnav__list a:hover { color: var(--cyan); }

.partner-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.partner-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}

.partner-step__num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-step__title {
  font-size: 17px;
  margin-top: 6px;
}

.partner-step__text {
  color: var(--secondary-text);
  font-size: 14px;
  margin: 0;
}

/* ---------- Belief cards (What We Believe) ---------- */

.belief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.belief-card {
  background: var(--very-light-blue);
  border-radius: var(--radius);
  padding: 28px 30px;
  text-align: center;
}

.belief-card__title {
  color: var(--blue);
  font-size: 18px;
}

.belief-card__text {
  color: var(--secondary-text);
  font-size: 14px;
  margin: 0;
}

/* ---------- Blog hero ---------- */

.hero--white { background: var(--white); }

.blog-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero__media img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 16px;
}

/* ---------- Blog details (article) ---------- */

.section.article-banner { padding-bottom: 0; }

.article-banner__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  background: var(--light-gray);
}

.article__inner {
  max-width: 720px;
  margin: 0 auto;
}

.article__title {
  font-size: 38px;
  margin-bottom: 24px;
}

.article p {
  color: var(--secondary-text);
  font-size: 15px;
  margin-bottom: 14px;
}

.article__heading {
  font-size: 17px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 32px;
}

.article__images img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--light-gray);
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
}

.share__label {
  font-size: 14px;
  color: var(--secondary-text);
  margin-right: 6px;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--very-light-blue);
  color: var(--blue);
}

.share__btn svg { width: 15px; height: 15px; }
.share__btn:hover { background: var(--blue); color: var(--white); }

/* ---------- Blog grid + pagination ---------- */

.guide-card__thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: var(--light-gray);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pagination__num.is-active {
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.pagination__dots {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.pagination__num:hover { color: var(--blue); }

/* ---------- Guide cards ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover { box-shadow: var(--shadow-card); }
.guide-card .img-placeholder { border: none; border-radius: 0; min-height: 180px; }

.guide-card__body { padding: 22px; }
.guide-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: var(--very-light-blue);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.guide-card__title { font-size: 17px; }
.guide-card__text { font-size: 14px; color: var(--secondary-text); margin-bottom: 12px; }
.guide-card__link { font-weight: 600; font-size: 14px; }

/* ---------- CTA band ---------- */

.cta-band {
  --line: rgba(255, 255, 255, 0.06);
  background:
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 48px),
    var(--blue);
  color: var(--white);
  border-radius: 20px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 2;
  margin-bottom: -80px;
}

.cta-band__title { color: var(--white); font-size: 30px; margin: 0; }


/* ---------- About page ---------- */

.about-hero {
  border-radius: 20px;
  overflow: hidden;
}


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

.footer {
  background: var(--primary);
  color: var(--light-blue);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 160px;
  padding-bottom: 48px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--gray);
  margin: 14px 0 28px;
}

.footer__heading {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 18px;
}

.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}

.footer__contact a { color: var(--gray); }
.footer__contact a:hover { color: var(--white); }

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.footer__links a { color: var(--gray); }
.footer__links a:hover { color: var(--white); }

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 260px;
}

.newsletter__input {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
}

.newsletter__input::placeholder { color: var(--gray); }
.newsletter__input:focus { outline: 2px solid var(--cyan); }

.newsletter__btn { align-self: flex-start; padding: 11px 26px; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); }

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer__bottom p { margin: 0; font-size: 13px; color: var(--gray); }

.footer__social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer__social a {
  color: var(--cyan);
  display: inline-flex;
}

.footer__social svg { width: 17px; height: 17px; }
.footer__social a:hover { color: var(--white); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero__title { font-size: 38px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .section__title { font-size: 26px; }
  .article__title { font-size: 28px; }

  .header__login { display: none; }
  .topbar__locale { display: none; }
  .header__actions { margin-left: auto; }
  .nav-toggle { display: flex; margin-left: 12px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    margin-left: 0;
  }

  .nav.is-open { display: block; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .nav__link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav__mobile-login { display: block; }

  .hero { padding: 60px 0; }
  .hero__grid,
  .why__grid,
  .split__grid,
  .contact-grid { grid-template-columns: 1fr; }

  .page-hero { padding: 50px 0; }
  .page-hero__title { font-size: 28px; }
  .contact-form { padding: 28px 22px; }
  .office-card { position: static; max-width: none; margin-top: 14px; box-shadow: none; border: 1px solid var(--border); }

  .steps-grid,
  .testi-grid,
  .guide-grid { grid-template-columns: 1fr; }

  .hiw__card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }

  .hiw__card--reverse .hiw__content { order: 1; }
  .hiw__card--reverse .hiw__media { order: 2; }

  .hero__media { order: -1; }

  .blog-hero__media { order: -1; }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero__title { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .belief-grid,
  .partner-steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .faq-item__q { font-size: 15px; }
}
