:root{
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-soft: #f2f3f7;
  --text: #13233a;
  --text-soft: #5d6878;
  --line: #dde3ea;
  --brand: #15365f;
  --brand-2: #224b7f;
  --accent: #b08b57;
  --shadow: 0 18px 50px rgba(12, 28, 48, 0.08);
  --radius: 20px;
  --container: 1180px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  font-family: "Inter", sans-serif;
}

body{
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a{
  color: inherit;
  text-decoration: none;
}

.site-shell{
  min-height: 100vh;
}

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Base heading font */
h1,
h2,
h3,
h4,
h5{
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

p,
a,
span,
li,
button{
  font-family: "Inter", sans-serif;
}

/* =========================
   TYPOGRAPHY HIERARCHY
   ========================= */

/* Hero (largest) */
.hero-copy h1{
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

/* Section headings (medium) */
.section-head h2,
.about-grid h2,
#contact h2{
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

/* Card headings (small) */
.card-panel h2{
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service-card h3{
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.timeline h3{
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 10px;
}

/* Top bar */
.topbar{
  background: var(--brand);
  color: #fff;
  font-size: 0.92rem;
}

.topbar-inner{
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar p{
  margin: 0;
}

.topbar a{
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 35, 58, 0.06);
}

.nav-wrap{
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark{
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand-text{
  display: flex;
  flex-direction: column;
}

.brand-name{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.brand-sub{
  color: var(--text-soft);
  font-size: 0.86rem;
  margin-top: 2px;
}

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

.nav a{
  font-weight: 600;
  color: var(--text);
}

.nav-toggle{
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 999px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary{
  background: var(--brand);
  color: #fff;
  padding: 14px 22px;
  box-shadow: 0 12px 24px rgba(21, 54, 95, 0.18);
}

.btn-primary:hover{
  background: var(--brand-2);
  transform: translateY(-1px);
}

.btn-secondary{
  background: transparent;
  color: var(--brand);
  border: 1px solid rgba(21, 54, 95, 0.18);
  padding: 14px 22px;
}

.btn-secondary:hover{
  background: rgba(21, 54, 95, 0.05);
}

.btn-outline{
  border: 1px solid rgba(21, 54, 95, 0.18);
  padding: 11px 18px;
}

.btn-sm{
  font-size: 0.92rem;
}

/* Hero */
.hero{
  position: relative;
  padding: 72px 0 56px;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 64px;
}

.eyebrow{
  margin: 0 0 14px;
  color: var(--brand-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero-text{
  margin: 20px 0 0;
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.hero-stats div{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(19, 35, 58, 0.06);
  border-radius: 16px;
  padding: 16px;
}

.hero-stats strong{
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.hero-stats span{
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Hero card */
.hero-card{
  position: relative;
  min-height: 430px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 35, 58, 0.07);
  overflow: hidden;
}

.hero-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("TMRImage.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 220px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
}

.hero-card-glow{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(176, 139, 87, 0.10), transparent 34%),
    radial-gradient(circle at 80% 85%, rgba(21, 54, 95, 0.08), transparent 32%);
  z-index: 0;
}

.card-panel{
  position: relative;
  z-index: 2;
  padding: 34px 34px 16px;
}

.mini-label{
  margin: 0 0 12px;
  color: var(--brand-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.card-panel ul{
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.card-panel li + li{
  margin-top: 10px;
}

.text-link{
  display: inline-block;
  margin-top: 80px;
  color: var(--brand);
  font-weight: 700;
  border-bottom: 1px solid rgba(21, 54, 95, 0.25);
}

/* Trust strip */
.trust-strip{
  padding: 16px 0 28px;
}

.trust-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trust-grid > div{
  background: rgba(255,255,255,0.78);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(19, 35, 58, 0.06);
}

.trust-kicker{
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
}

.trust-grid p{
  margin: 0;
  color: var(--text-soft);
}

/* Sections */
.section{
  padding: 78px 0;
}

.section-muted{
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.78));
}

.section-head{
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.narrow{
  max-width: 620px;
}

.section-head p:last-child{
  margin-top: 12px;
  color: var(--text-soft);
}

/* Cards */
.cards.three-up{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card{
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(19, 35, 58, 0.07);
  box-shadow: 0 10px 30px rgba(12, 28, 48, 0.05);
}

.service-card p{
  margin: 0;
  color: var(--text-soft);
}

/* About */
.about-grid{
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.about-copy p{
  margin-bottom: 20px;
}

/* Timeline */
.timeline{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline article{
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(19, 35, 58, 0.07);
}

.timeline span{
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(21, 54, 95, 0.09);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 14px;
}

.timeline p{
  margin: 0;
  color: var(--text-soft);
}

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.contact-card{
  background: var(--surface);
  border-radius: 20px;
  padding: 26px;
  border: 1px solid rgba(19, 35, 58, 0.07);
  box-shadow: 0 12px 30px rgba(12, 28, 48, 0.05);
}

.contact-item + .contact-item{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-item span{
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.contact-item a{
  color: var(--brand);
  font-weight: 700;
}

.contact-item p{
  margin: 0;
  color: var(--text-soft);
}

/* Footer */
.footer{
  padding: 28px 0 40px;
  border-top: 1px solid rgba(19, 35, 58, 0.08);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-inner p{
  margin: 6px 0 0;
  color: var(--text-soft);
}

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a{
  color: var(--brand);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px){
  .cards.three-up{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .about-grid,
  .contact-grid{
    grid-template-columns: 1fr;
  }

  .hero-card{
    min-height: auto;
  }
}

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

  .nav{
    display: none;
  }

  .topbar-inner{
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
  }

  .hero{
    padding-top: 56px;
  }

  .hero-stats{
    grid-template-columns: 1fr;
  }

  .trust-grid{
    grid-template-columns: 1fr;
  }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px){
  .container{
    width: min(var(--container), calc(100% - 24px));
  }

  .section{
    padding: 60px 0;
  }

  .cards.three-up,
  .timeline{
    grid-template-columns: 1fr;
  }

  .card-panel{
    padding: 24px 22px;
  }

  .hero-card::before{
    background-size: 170px;
    opacity: 0.05;
  }

  .brand-name{
    font-size: 0.94rem;
  }

  .brand-sub{
    font-size: 0.8rem;
  }
}