:root{
  --ink:#17263d;
  --paper:#eef4fa;
  --card:#ffffff;
  --line:#c5d4e3;
  --accent:#245b8f;
  --muted:#5e6f80;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Georgia,"Times New Roman",serif;
}

.wrap{
  width:min(1120px,calc(100% - 36px));
  margin:auto;
}

header{
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:22px 0;
}
.brand{
  font-size:25px;
  font-weight:700;
  text-decoration:none;
  color:var(--ink);
}

nav{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

nav a{
  color:var(--muted);
  text-decoration:none;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
}

nav a:hover,
nav a.active{
  color:var(--accent);
}

.hero{
  padding:90px 0 72px;
  border-bottom:1px solid var(--line);
}

.eyebrow{
  font:700 12px system-ui,sans-serif;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--accent);
}

h1{
  font-size:clamp(34px,5vw,46px);
  line-height:.98;
  max-width:820px;
  margin:14px 0 24px;
}

.lead{
  font-size:20px;
  line-height:1.6;
  max-width:720px;
  color:#455b70;
}

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

.btn{
  display:inline-block;
  padding:12px 17px;
  border-radius:8px;
  border:1px solid var(--accent);
  text-decoration:none;
  font:600 14px system-ui,sans-serif;
  color:var(--accent);
}

.btn.primary{
  background:var(--accent);
  color:white;
}

section{
  padding:58px 0;
}

h2{
  font-size:32px;
  margin:0 0 12px;
}

.section-intro{
  color:var(--muted);
  line-height:1.6;
  max-width:700px;
}

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

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  min-height:190px;
}

.card h3{
  margin:0 0 10px;
  font-size:21px;
}

.card p{
  color:var(--muted);
  line-height:1.55;
}

.card a{
  color:var(--accent);
  font-family:system-ui,sans-serif;
  font-weight:650;
  text-decoration:none;
}

footer{
  border-top:1px solid var(--line);
  padding:30px 0 50px;
  color:var(--muted);
  font:15px system-ui,sans-serif;
  text-align:center;
}

.placeholder{
  min-height:55vh;
  padding:70px 0;
}

/* =========================================================
   MOBILE LAYOUT
   Applies only to phones and small tablets
   Desktop layout remains unchanged
   ========================================================= */

@media(max-width:760px){

  /* PAGE WIDTH */

  .wrap{
    width:calc(100% - 32px);
    margin-left:auto;
    margin-right:auto;
  }


  /* HEADER */

  .top{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    padding:14px 0 16px;
  }

  .brand{
    display:flex;
    align-items:center;
    font-size:22px;
    line-height:1.2;
  }

  .brand img{
    max-width:65px;
    height:auto;
  }


  /* NAVIGATION */

  nav{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:8px 16px;
    align-items:center;
  }

  nav a{
    font-size:15px;
    line-height:1.4;
    padding:3px 0;
  }


  /* HERO */

  .hero{
    padding:48px 0 42px;
  }

  .eyebrow{
    font-size:11px;
  }

  h1{
    font-size:36px;
    line-height:1.08;
    margin:12px 0 18px;
  }

  .lead{
    font-size:18px;
    line-height:1.55;
  }


  /* BUTTONS */

  .actions{
    gap:10px;
    margin-top:24px;
  }

  .btn{
    padding:11px 15px;
    font-size:14px;
  }


  /* SECTIONS */

  section{
    padding:42px 0;
  }

  h2{
    font-size:27px;
    line-height:1.15;
  }

  .section-intro{
    font-size:16px;
    line-height:1.55;
  }


  /* CARDS */

  .grid{
    grid-template-columns:1fr;
    gap:14px;
    margin-top:22px;
  }

  .card{
    min-height:0;
    padding:20px;
  }

  .card h3{
    font-size:20px;
  }

  .card p{
    line-height:1.55;
  }


  /* FORMS */

  input,
  select,
  textarea,
  button{
    max-width:100%;
  }

  input,
  select,
  textarea{
    font-size:16px;
  }


  /* IMAGES */

  img{
    max-width:100%;
    height:auto;
  }


  /* PREVENT LONG TEXT/LINKS FROM BREAKING PAGE */

  p,
  a,
  td,
  th{
    overflow-wrap:anywhere;
  }


  /* PLACEHOLDER / SIMPLE CONTENT PAGES */

  .placeholder{
    min-height:45vh;
    padding:45px 0;
  }


  /* FOOTER */

  footer{
    padding:25px 16px 35px;
    font-size:14px;
    line-height:1.5;
  }

}