:root{
  --bg:#F5F7F6;
  --text:#1A1A1A;
  --muted:#4B5563;
  --line:#E5E7EB;
  --accent:#0B3D2E;
  --accent-light:#E8F3EF;
  --card:#FEFFFE;
  --shadow: 0 10px 30px rgba(11,61,46,.08);
  --shadow-hover: 0 12px 28px rgba(11,61,46,.15);
  --radius:16px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:100px}
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.9}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.sep{border-top:1px solid var(--line)}

/* Scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(248,250,252,.95);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  transition: transform 0.2s ease;
}
.brand:hover{
  transform: translateX(-2px);
  opacity: 1;
}
.brand-logo{
  height: 68px;
  width: auto;
  display: block;
}

@media (max-width: 980px){
  .brand-logo{
    height: 54px;
  }
}

@media (max-width: 520px){
  .brand-logo{
    height: 46px;
  }
}
.brand-mark{
  width:34px; height:34px; border:1px solid var(--line);
  border-radius:10px; display:grid; place-items:center;
  background:#fff;
  font-weight:700;
  font-size:13px;
  color:var(--accent);
}
.brand-name{
  display:flex; flex-direction:column;
}
.brand-name strong{
  letter-spacing:.08em; font-weight:800; font-size:14px;
}
.brand-name span{
  font-size:12px; color:var(--muted); letter-spacing:.10em;
}

.menu{
  display:flex; align-items:center; gap:18px;
}
.menu a{
  font-size:14px; color:var(--muted);
  padding:10px 10px; border-radius:12px;
  transition: all 0.2s ease;
}
.menu a:hover{
  color:var(--accent);
  opacity:1;
  background:var(--accent-light);
}
.menu a.active{
  color:var(--accent); 
  background:#fff; 
  border:1px solid var(--accent);
  font-weight:600;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font-size:14px;
  gap:10px;
  cursor:pointer;
  transition: all .2s ease;
}
.btn.primary{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  font-weight:600;
}
.btn.primary:hover{
  opacity:1;
  background:#0A3528;
  border-color:#0A3528;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,61,46,0.3);
}
.btn:hover{transform: translateY(-1px)}

.hero{
  padding:64px 0 26px;
  background: linear-gradient(to bottom, #f8faf9 0%, #f1f4f3 100%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:stretch;
}
.h-eyebrow{
  display:inline-flex; gap:10px; align-items:center;
  font-size:13px; 
  color:#FFFFFF;
  border:1px solid var(--accent);
  background:var(--accent);
  padding:8px 14px;
  border-radius:999px;
  font-weight:600;
  letter-spacing:0.5px;
}
.h-title{
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight:700;
  font-size:48px;
  line-height:1.15;
  margin:18px 0 12px;
  letter-spacing:-0.02em;
  color:var(--accent);
}
.h-sub{
  font-size:18px;
  color:var(--muted);
  margin:0 0 18px;
  max-width:56ch;
}
.h-ctas{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0}
.h-trust{
  font-size:13px; color:var(--muted);
  margin-top:10px;
}

.hero-card{
  border:2px solid var(--accent);
  background:var(--card);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex; flex-direction:column;
  transition: all 0.3s ease;
}
.hero-card:hover{
  box-shadow: 0 16px 40px rgba(11,61,46,0.15);
  transform: translateY(-2px);
}

.hero-img{
  position: relative;
  min-height:260px;
  height: 260px;
  overflow:hidden;
  background: var(--bg);
}

.hero-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-card-body{
  padding:18px 18px 16px;
}
.hero-card-body h3{
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:18px; margin:0 0 6px;
  color:var(--accent);
  font-weight:700;
}
.hero-card-body p{margin:0; color:var(--muted); font-size:14px}

.section{padding:44px 0}
.section h2{
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:32px;
  line-height:1.2;
  margin:0 0 10px;
  letter-spacing:-0.01em;
  position: relative;
  padding-bottom: 12px;
  color:var(--accent);
}

.section h2::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section p.lead{
  margin:0 0 22px;
  color:var(--muted);
  font-size:17px;
  max-width:70ch;
}

.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
.card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:var(--radius);
  padding:20px;
  box-shadow: 0 6px 18px rgba(17,24,39,.05);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow:var(--shadow-hover);
  border-color:var(--accent);
  border-width: 2px;
}
.card h3{margin:0 0 10px; font-size:16px; color:var(--accent); font-weight:700}
.card p{margin:0; color:var(--muted); font-size:14px; line-height:1.6}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
.quote{
  border-left:3px solid var(--accent);
  padding:10px 0 10px 14px;
  color:var(--muted);
  background:linear-gradient(90deg, var(--accent-light), transparent);
  border-radius:12px;
}
.quote strong{color:var(--text)}

.gallery{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
.gallery .big, .gallery .small{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  transition: all 0.3s ease;
}
.gallery .big:hover{
  transform: scale(1.01);
  box-shadow:var(--shadow-hover);
}
.gallery .small > div:hover{
  transform: scale(1.02);
  box-shadow:var(--shadow-hover);
}
.gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:18px;
}
.gallery .small{
  display:grid;
  grid-template-rows: 1fr 1fr;
  gap:16px;
  background:transparent;
  border:none;
}
.gallery .small > div{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  transition: all 0.3s ease;
}

.footer{
  padding:28px 0 40px;
  color:var(--muted);
  font-size:13px;
}
.footer-grid{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer a{color:var(--muted); text-decoration:underline; text-underline-offset:3px}
.footer a:hover{color:var(--accent); opacity:1}

.footer a[href*="casam.ca"]{
  color:var(--accent);
  text-decoration:none;
  transition: all 0.2s ease;
  border-bottom:1px solid transparent;
}
.footer a[href*="casam.ca"]:hover{
  opacity:0.8;
  border-bottom:1px solid var(--accent);
}
.kicker{
  letter-spacing:.12em; 
  font-size:12px; 
  color:var(--accent); 
  text-transform:uppercase; 
  font-weight:700;
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent);
}

.pagehead{
  padding:42px 0 10px;
}
.pagehead h1{
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:36px; margin:0 0 10px; line-height:1.15;
  letter-spacing:-0.01em;
  position: relative;
  padding-bottom: 12px;
  color:var(--accent);
}

.pagehead h1::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.pagehead p{margin:0 0 16px; color:var(--muted); font-size:17px; max-width:75ch}

.bio-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.bio{
  border:1px solid var(--line);
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition: all 0.3s ease;
}
.bio:hover{
  transform: translateY(-4px);
  box-shadow:var(--shadow-hover);
  border-color:var(--accent);
  border-width: 2px;
}
.bio .img{
  height:400px;
  background-size:cover;
  background-position:center 30%;
  border-radius: var(--radius) var(--radius) 0 0;
}
.bio .body{padding:18px}
.bio h3{margin:0 0 6px; color:var(--accent); font-size:18px}
.bio p{margin:0; color:var(--muted)}
.bio ul{margin:14px 0 0; padding-left:18px; color:var(--muted)}
.bio li{margin:6px 0}

.form{
  border:1px solid var(--line);
  background:#fff;
  border-radius:var(--radius);
  padding:18px;
  box-shadow: 0 6px 18px rgba(17,24,39,.05);
}
.field{display:flex; flex-direction:column; gap:6px; margin:12px 0}
.field label{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.field:focus-within label{
  color: var(--accent);
}
input, textarea{
  font:inherit;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 12px;
  background:#fff;
  transition: all 0.2s ease;
}
input:focus, textarea:focus{
  outline:none;
  border-color:var(--accent);
  border-width: 2px;
  box-shadow: 0 0 0 3px var(--accent-light);
}
textarea{min-height:120px; resize:vertical}

/* Success message */
.success-msg {
  padding: 12px 16px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; }
  .cards{grid-template-columns: repeat(2, 1fr);}
  .split{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
  .bio-grid{grid-template-columns:1fr}
  .h-title{font-size:36px}
}
@media (max-width: 520px){
  .cards{grid-template-columns:1fr}
  .h-title{font-size:32px}
}

/* Mobile nav */
.menu-toggle{
  display:none;
  width:44px; height:44px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: all 0.2s ease;
}
.menu-toggle:hover{
  background:var(--bg);
}

.menu-wrap{display:flex; align-items:center; gap:12px}

@media (max-width: 980px){
  .menu{display:none}
  .menu-toggle{display:flex}
  .menu.mobile-open{
    display:flex;
    position:absolute;
    right:20px;
    top:64px;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:12px;
    width:min(320px, calc(100vw - 40px));
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
  }
  .menu.mobile-open a{
    padding:12px 12px;
  }
  .menu.mobile-open .btn.primary{
    width:100%;
  }
}
