@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Risque&family=Noto+Sans+Devanagari:wght@500&display=swap');

/* The Sanskrit Sphere footer (light design). Path: your-theme/assets/css/ss-footer.css
   Headings = Cormorant Garamond | Lists, paragraphs, buttons = Risque */
.ssf-footer {
  --ssf-maroon: #7a0f1a;
  --ssf-base: #5a0e12;
  --ssf-gold: #c99a5b;
  --ssf-gold-soft: rgba(201, 154, 91, 0.55);
  --ssf-cream: #fdf5ec;
  --ssf-ink: #000000;
  --ssf-grey: #000000;
  --ssf-head: 'Cormorant Garamond', Georgia, serif;
  --ssf-body: 'Risque', Georgia, serif;
  position: relative;
  background: var(--ssf-cream);
  color: var(--ssf-grey);
  font-family: var(--ssf-body);
  text-align: left;
  line-height: 1.5;
}
.ssf-footer *, .ssf-footer *::before, .ssf-footer *::after { box-sizing: border-box; }

/* low-specificity resets so theme styles don't leak in */
:where(.ssf-footer) :is(ul, li) { margin: 0; padding: 0; list-style: none; float: none; width: auto; text-align: left; }
:where(.ssf-footer) :is(nav, div) { float: none; }
:where(.ssf-footer) :is(h2, h3, p) { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; }
:where(.ssf-footer) a { padding: 0; background: none; border: 0; color: inherit; text-decoration: none; }

.ssf-inner { position: relative; z-index: 1; max-width: 1520px; margin: 0 auto; padding: 0 40px; }
.ssf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top area with background image ---------- */
.ssf-upper {
  padding: 76px 0 90px;
  background-color: var(--ssf-cream);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  border-bottom: 3px solid var(--ssf-gold);
}
.ssf-footer .ssf-cluster {
  display: grid !important;
  grid-template-columns: minmax(300px, 390px) 1px minmax(180px, 1fr) 1px minmax(160px, 0.8fr) 1px minmax(300px, 420px) !important;
  gap: 0 40px;
  align-items: start;
}

/* vertical dividers with diamond */
.ssf-rule {
  position: relative;
  align-self: start;
  height: 290px;
  background: var(--ssf-gold-soft);
}
.ssf-rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--ssf-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- brand ---------- */
.ssf-brand__logo { display: block; text-align: center; }
.ssf-brand__img { display: inline-block; max-width: 130px; max-height: 100px; width: auto; height: auto; }
.ssf-brand__img--fallback { width: 100px; height: 58px; }
.ssf-brand__name {
  margin-top: 10px;
  text-align: center;
  font-family: var(--ssf-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ssf-maroon);
}
.ssf-orn {
  position: relative;
  height: 1px;
  margin: 12px 24px 14px;
  background: linear-gradient(to right, transparent, var(--ssf-gold) 25%, var(--ssf-gold) 75%, transparent);
}
.ssf-orn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--ssf-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.ssf-brand__tagline { font-family: var(--ssf-body); font-size: 15px; line-height: 1.4; text-align: center; color: var(--ssf-ink); }
.ssf-brand__text { margin-top: 18px; max-width: 390px; font-family: var(--ssf-body); font-size: 15px; line-height: 1.7; color: var(--ssf-grey); }

.ssf-social { display: flex; gap: 16px; margin-top: 26px; }
.ssf-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ssf-gold-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ssf-maroon);
  transition: background 0.2s, color 0.2s;
}
.ssf-social a:hover, .ssf-social a:focus-visible { background: var(--ssf-maroon); color: #fff; }
.ssf-social svg { width: 20px; height: 20px; fill: currentColor; }
.ssf-social svg.ssf-stroke { fill: none; stroke: currentColor; }

/* ---------- link columns ---------- */
.ssf-menu, .ssf-news { padding-top: 0; }

.ssf-menu__title {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 26px;
  font-family: var(--ssf-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--ssf-maroon);
}
.ssf-menu__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 10px;
  height: 10px;
  background: var(--ssf-gold);
  transform: rotate(45deg);
}
.ssf-menu__title::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 9px;
  width: 64px;
  height: 1px;
  background: var(--ssf-gold-soft);
}

.ssf-links li { position: relative; padding-left: 36px; line-height: 1.3; }
.ssf-links li + li { margin-top: 17px; }
.ssf-links li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, #e4b97d, #b57a3b);
  box-shadow: 0 0 0 1px rgba(122, 15, 26, 0.12);
  transform: translateY(-50%) rotate(45deg);
}
.ssf-links a { font-family: var(--ssf-body); font-size: 16px; line-height: 1.3; color: var(--ssf-grey); transition: color 0.2s; }
.ssf-links a:hover, .ssf-links a:focus-visible { color: var(--ssf-maroon); }

/* ---------- newsletter ---------- */
.ssf-news__text { max-width: 320px; font-family: var(--ssf-body); font-size: 15px; line-height: 1.6; color: var(--ssf-grey); }
.ssf-news__form { display: flex; margin-top: 18px; }
.ssf-news__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  background: #fffaf5;
  border: 1px solid #e6d6c6;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  color: var(--ssf-ink);
  font-family: var(--ssf-body);
  font-size: 15px;
}
.ssf-news__form input::placeholder { color: #000; opacity: 0.6;}
.ssf-news__form input:focus-visible { outline: 2px solid var(--ssf-maroon); outline-offset: -2px; }
.ssf-news__form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 24px;
  background: var(--ssf-maroon);
  border: 0;
  border-radius: 0 4px 4px 0;
  color: #fff;
  font-family: var(--ssf-body);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.ssf-news__form button:hover { background: #5a0b13; }
.ssf-news__form button svg { width: 18px; height: 18px; }
.ssf-news__note { margin-top: 10px; font-family: var(--ssf-body); font-size: 12.5px; color: var(--ssf-grey); }

/* ---------- bottom bar ---------- */
.ssf-base { background: var(--ssf-base); color: #f6e9dc; }
.ssf-footer .ssf-base__in {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.ssf-base__copy { font-family: var(--ssf-body); font-size: 14.5px; color: #f6e9dc; }
.ssf-base__om { display: flex; align-items: center; gap: 14px; color: var(--ssf-gold); }
.ssf-base__om::before, .ssf-base__om::after { content: ""; width: 92px; height: 1px; background: var(--ssf-gold); }
.ssf-base__om span { font-family: 'Noto Sans Devanagari', var(--ssf-head); font-size: 34px; line-height: 1; }
.ssf-base__links { display: flex; justify-content: flex-end; }
.ssf-base__links li { line-height: 1.1; }
.ssf-base__links li + li { margin-left: 22px; padding-left: 22px; border-left: 1px solid #f6e9dc; }
.ssf-base__links a { font-family: var(--ssf-body); font-size: 14.5px; line-height: 1.1; color: #f6e9dc; }
.ssf-base__links a:hover, .ssf-base__links a:focus-visible { color: var(--ssf-gold); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .ssf-upper { padding: 56px 0 100px; }
  .ssf-footer .ssf-cluster { grid-template-columns: 1fr 1fr !important; gap: 40px 32px; }
  .ssf-footer .ssf-rule { display: none !important; }
  .ssf-brand { grid-column: 1 / -1; max-width: 420px; }
  .ssf-menu, .ssf-news { padding-top: 0; }
  .ssf-news { grid-column: 1 / -1; max-width: 460px; }
  .ssf-footer .ssf-base__in { grid-template-columns: 1fr !important; justify-items: center; text-align: center; gap: 16px; }
  .ssf-base__links { justify-content: center; }
}

/* ---------- mobile ---------- */
@media (max-width: 575px) {
  .ssf-inner { padding: 0 20px; }
  .ssf-upper { padding: 44px 0 90px; }
  .ssf-footer .ssf-cluster { grid-template-columns: 1fr !important; }
  .ssf-brand__name { font-size: 32px; }
  .ssf-news__form { flex-direction: column; gap: 10px; }
  .ssf-news__form input { border-right: 1px solid #e6d6c6; border-radius: 4px; }
  .ssf-news__form button { justify-content: center; border-radius: 4px; }
  .ssf-base__om::before, .ssf-base__om::after { width: 48px; }
  .ssf-base__links { flex-wrap: wrap; justify-content: center; gap: 8px 0; }
}