:root{--blue:#1E3A5F;--blue-deep:#0F1E2D;--gold:#D4AF37;--off:#F9F7F2;--ink:#0f1e2d;--muted:#425466;--border:#e9e9e9}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";line-height:1.6;color:var(--ink);background:var(--off)}
a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}
.container{max-width:1080px;margin:0 auto;padding:1.25rem}
.header{background:linear-gradient(135deg,var(--blue),var(--blue-deep));color:#fff;padding:1rem 0;position:sticky;top:0;z-index:10;box-shadow:0 6px 20px rgba(0,0,0,.15)}
.brand{display:flex;align-items:center;gap:.75rem}.brand img{width:36px;height:36px;border-radius:8px;border:1px solid rgba(255,255,255,.25)}.brand .site-name{font-weight:800;letter-spacing:.2px}
.nav{display:flex;gap:1rem;flex-wrap:wrap}.nav a{color:#fff;opacity:.9}.nav a:hover{opacity:1}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.hero{background:linear-gradient(135deg,var(--blue),var(--blue-deep));color:#fff;padding:4rem 0;margin-bottom:1.25rem}
.hero h1{margin:0 0 .5rem 0}.hero .lead{opacity:.92;max-width:62ch}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.25rem 0 2.5rem}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.grid{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .16s ease,box-shadow .16s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.card-img{background:#dfe6ee;aspect-ratio:16/9;width:100%;object-fit:cover}
.card-body{padding:.9rem 1rem 1rem;display:flex;flex-direction:column;gap:.5rem}
.card-title{font-weight:700;font-size:1rem;margin:0;color:var(--blue)}
.card-desc{font-size:.98rem;color:#203040}
.btn{display:inline-flex;align-items:center;gap:.45rem;padding:.65rem .95rem;border-radius:12px;background:var(--gold);color:var(--ink);font-weight:700;border:none;cursor:pointer}
.btn.secondary{background:#fff;color:var(--blue);border:1px solid var(--border)}
.section{padding:2rem 0}
.footer{padding:2rem 0 3rem;border-top:1px solid var(--border);color:var(--muted);background:#fff;text-align:center}
.footer .container p{margin:.5rem 0;line-height:1.5}.footer a{color:var(--blue);font-weight:600}.footer a:hover{color:#A47E2B}
/* --- HERO: Serat Variant --- */
.hero-serat {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 2.2rem;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  color: #fff;
}

.hero-subtitle {
  max-width: 65ch;
  opacity: .92;
  margin: .25rem 0 1rem;
}

.tagline {
  margin: 1rem 0 1.25rem;
  font-weight: 700;
  color: #D4AF37; /* gold */
}



@keyframes tw-reveal{
  from { width: 0; }
  to   { width: 100%; }              /* expands to container width and wraps */
}

@keyframes tw-caret{
  0%,49%   { border-right-color: rgba(212,175,55,.9); }
  50%,100% { border-right-color: transparent; }
}

/* Optional: mobile sizing for nicer wraps */
@media (max-width: 480px){
  .tagline{ font-size: clamp(18px, 5vw, 24px); line-height: 1.3; }
}

/* --- CARD HOVER EFFECT --- */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.card:hover .card-img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
  filter: brightness(1.1);
}
.card-img {
  transition: transform 0.4s ease, filter 0.3s ease;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  border-radius: 12px 12px 0 0;
}

/* --- FOOTER GRID LAYOUT --- */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: left;
}

.footer-left, .footer-right {
  flex: 1 1 320px;
}

.footer-left p, .footer-right p {
  margin: 0.4rem 0;
  line-height: 1.5;
}

/* Responsive Center Alignment */
@media (max-width: 700px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-left, .footer-right {
    text-align: center;
  }
}
/* CTA row layout */
.cta-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
/* Consistent logo block height for partner cards */
.card-img {
  height: 160px;           /* adjust 140–200px to taste */
  object-fit: contain;     /* already set inline in your HTML; keeping here standardizes */
  background: #fff;
}
/* Right-align the address and copyright text in footer */
.footer-right {
  text-align: right;
}

@media (max-width: 700px) {
  .footer-right {
    text-align: center;
  }
}
/* Footer polish: tighter spacing + precise alignment */
.footer { padding: 1.5rem 0 2rem; }               /* was 2rem 0 3rem */

.footer-grid-3{
  display:grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;       /* balanced proportions */
  gap: 1rem;                                      /* a bit tighter */
  align-items: start;
  justify-items: start;                           /* left column hugs left */
  margin-bottom: .5rem;                           /* reduce gap to bottom row */
}

.footer-left  { text-align:left; }
.footer-center{ text-align:center; justify-self:center; }
.footer-right { text-align:right;  justify-self:end; }  /* address hugs right */

.footer-bottom{
  border-top: 1px solid var(--border);
  padding-top: .5rem;                             /* tighter */
  margin-top: .25rem;
  text-align:center;
  color: var(--muted);
  font-size: .95rem;
}

/* Mobile stack stays centered */
@media (max-width:700px){
  .footer-grid-3{
    grid-template-columns: 1fr;
    justify-items:center;
    text-align:center;
    gap: .75rem;
  }
  .footer-left, .footer-center, .footer-right { text-align:center; }
}
.footer-left a[href*="legal"] {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-left a[href*="legal"]:hover {
  color: var(--blue);
  text-decoration: underline;
}
.footer{background:var(--burgundy);color:#fff}
.footer a{color:#fff;opacity:.95;text-decoration:none}
.footer a:hover{opacity:1;text-decoration:underline}

.footer-grid-3{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:1.25rem;
  padding:2rem 0;
}
.footer .fine{font-size:.9rem;opacity:.9;margin:.25rem 0 0}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.2);
  text-align:center;
  padding:1rem 0 1.25rem;
  font-size:.9rem;
  opacity:.95;
}

/* Responsive */
@media (max-width:900px){
  .footer-grid-3{grid-template-columns:1fr}
}
/* --- SERAT GROUP FOOTER FIX --- */
.site-sg .footer {
  background: #fff;
  color: var(--muted);
}

.site-sg .footer a {
  color: var(--blue);
  opacity: 1;
  text-decoration: none;
}

.site-sg .footer a:hover {
  color: #A47E2B;
  text-decoration: underline;
}
/* --- Typewriter (JS-driven, wraps on mobile) --- */
.tagline{
  margin: 1rem 0 1.25rem;
  font-weight: 700;
  color: #D4AF37;
  line-height: 1.3;
  max-width: 40rem;              /* keeps nice measure on desktop */
}

#typer{
  white-space: normal;
  word-break: break-word;        /* safe breaks if needed */
  overflow-wrap: anywhere;
}

.caret{
  display: inline-block;
  width: 0.08em;
  height: 1em;
  background: rgba(212,175,55,.9);
  margin-left: .12em;
  vertical-align: -0.12em;
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink{ 50%{ opacity:0 } }

/* --- Timeline (Serat Group) --- */
.timeline-title{
  margin: 0 0 .75rem;
  font-size: 1.6rem;
  letter-spacing: .2px;
  color: var(--blue);
}

/* vertical rule + gold dots */
.timeline-list{
  list-style: none;
  margin: 0;
  padding: .25rem 0 0 1.25rem;      /* space for dots */
  position: relative;
}

.timeline-list::before{
  content: "";
  position: absolute;
  left: .45rem;                     /* aligns with dots */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(212,175,55,.9),
    rgba(212,175,55,.45)
  );                                /* gold line */
}

.timeline-list li{
  position: relative;
  margin: 0 0 .65rem 0;
  padding-left: .5rem;
  color: var(--ink);
}

.timeline-list li::before{
  content: "";
  position: absolute;
  left: -1.05rem;                   /* centers on line */
  top: .25rem;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.18); /* soft ring */
}

.timeline-list time{
  font-weight: 800;
  color: var(--blue);
  margin-right: .35rem;
}

/* mobile breathing room */
@media (max-width: 600px){
  .timeline-title{ font-size: 1.4rem; }
  .timeline-list{ padding-left: 1.15rem; }
}
/* --- Mailchimp form (SG match to RS) --- */
.mc-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:1rem;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  max-width: 860px;
}

.mc-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

@media (max-width:700px){
  .mc-row{ grid-template-columns: 1fr; }
}

.mc-field{
  display:block;
  font-weight:600;
  color: var(--muted);
}

.mc-field input{
  display:block;
  width:100%;
  margin-top:.35rem;
  padding:.8rem .9rem;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
  background:#fff;
  font: inherit;
}

.mc-field input:focus{
  border-color: #b9c7d6;
  box-shadow:0 0 0 3px rgba(30,58,95,.12); /* SG blue glow */
}

.mc-actions{
  display:flex;
  align-items:center;
  gap:.9rem;
  margin-top:.9rem;
  flex-wrap:wrap;
}

.mc-fine{
  color: var(--muted);
  font-size:.95rem;
}

.mc-hidden{
  position:absolute !important;
  left:-5000px !important;
}
/* Smooth scrolling everywhere */
html { scroll-behavior: smooth; }

/* Let anchored sections stop below the sticky header */
:root { --header-h: 68px; }  /* tweak if needed */

/* Anything you might link to (contact, timeline, other anchors) */
#contact,
.timeline,
.section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
html { scroll-behavior: smooth; }

:root { --header-h: 68px; } /* adjust if your header is taller */

#contact,
.timeline,
.section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
/* --- FOOTER ALIGNMENT FIX (Serat Group) --- */

/* ensure padding on both sides of container */
.footer .container {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

/* keep layout tidy on desktop */
.footer-grid-3 {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

/* alignments for desktop */
.footer-left {
  text-align: left;
}
.footer-center {
  text-align: center;
}
.footer-right {
  text-align: right;
  justify-self: end;
}

/* spacing & line-height */
.footer p {
  margin: 0.35rem 0;
  line-height: 1.5;
}

/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 700px) {
  .footer-grid-3 {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
    justify-self: center;
  }
}
/* --- MOBILE / TABLET TEXT EDGE FIX --- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 2rem; /* gives nice balance on desktop too */
}

@media (max-width: 900px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 1.25rem; /* perfect for iPhone portrait */
  }

  /* optional: ensure h1/h2 spacing stays consistent */
  h1, h2, h3, p {
    padding-inline: 0;
  }
}