:root{
  --ink:#0f172a; --muted:#475569; --line:#e2e8f0; --bg:#f8fafc; --white:#fff; --brand:#0f172a;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;color:var(--ink);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;background:linear-gradient(#f1f5f9,#fff)}
.container{max-width:1120px;margin:0 auto;padding:0 16px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

.header{position:sticky;top:0;background:rgba(255,255,255,.8);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);z-index:10}
.nav{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:10px 0}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.logo{width:36px;height:36px;border-radius:12px;color:#fff;background:var(--brand);display:grid;place-items:center}
.menu{display:none;gap:18px;align-items:center}
@media (min-width:860px){.menu{display:flex}}
.nav-item{font-size:14px;position:relative;padding:4px 2px;cursor:pointer;background:none;border:none}
.hover-underline::after{content:"";position:absolute;left:0;bottom:-6px;height:2px;width:0;background:var(--ink);transition:width .2s}
.hover-underline:hover::after{width:100%}

.dropdown{position:relative}
.dropdown-menu{position:absolute;left:0;top:calc(100% + 8px);background:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(15,23,42,.08);padding:8px;min-width:240px;opacity:0;visibility:hidden;transform:translateY(-4px);transition:all .15s;z-index:20}
.dropdown:hover .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown-menu.wide{min-width:420px}
.dropdown-item{display:block;padding:8px 10px;border-radius:8px;font-size:14px}
.dropdown-item:hover{background:#f8fafc}

.actions{display:flex;gap:10px;align-items:center}
.btn{border:none;background:var(--brand);color:#fff;border-radius:10px;padding:10px 14px;font-weight:600;cursor:pointer}
.btn.outline{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn.link{background:none;color:var(--ink);padding:0}

.section{margin:56px 0}
.h1{font-size:36px;font-weight:800;margin:0 0 8px}
.p{color:var(--muted);max-width:720px}
.grid{display:grid;gap:16px}
@media (min-width:860px){.grid.cols-3{grid-template-columns:repeat(3,1fr)} .grid.cols-2{grid-template-columns:repeat(2,1fr)}}

.card{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;transition:box-shadow .15s}
.card:hover{box-shadow:0 12px 36px rgba(15,23,42,.08)}
.card-body{padding:14px}
.chip{display:inline-flex;gap:8px;align-items:center;background:#eef2ff;color:#3730a3;border-radius:999px;padding:6px 10px;font-size:12px}

.hero{margin-top:28px;border-radius:22px;overflow:hidden;position:relative}
.hero img{height:360px;width:100%;object-fit:cover}
.hero .tag{position:absolute;left:12px;bottom:12px;background:rgba(0,0,0,.6);color:#fff;padding:6px 10px;border-radius:10px;font-size:12px}

.kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#64748b;margin-bottom:8px}
.list-inline{display:flex;gap:10px;flex-wrap:wrap}

.footer{border-top:1px solid var(--line);background:#fff;margin-top:56px}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 0}
.footer-links a{color:var(--muted);margin-left:12px}
.footer-links a:hover{color:var(--ink)}

.m-0{margin:0}
.mt-8{margin-top:16px}
.mt-12{margin-top:24px}
.mt-20{margin-top:40px}
.center{display:flex;align-items:center;justify-content:space-between;gap:10px}
.badge{background:#f1f5f9;border:1px solid var(--line);border-radius:10px;padding:6px 10px;font-size:13px;color:#0f172a}


/* --- Card layout fix: image + white box align perfectly --- */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .card img {
    width: 100%;
    height: 240px;           /* adjust to your taste (200–280px works well) */
    object-fit: cover;       /* keeps image nicely cropped */
    display: block;
  }
  
  .card-body {
    flex: 1;                 /* fill remaining space under the image */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* Make grid items stretch so all cards in a row match height */
  .grid {
    align-items: stretch;
  }
  
  /* Ensure direct card children inside grids take full height */
  .grid > .card {
    height: 100%;
  }

  /* --- Project detail layout --- */
.project-grid{
    display:grid;
    gap:24px;
  }
  @media (min-width:980px){
    .project-grid{ grid-template-columns: 1.35fr 1fr; } /* image bigger than form */
  }
  
  .project-figure{
    margin:0;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 12px 36px rgba(15,23,42,.08);
  }
  .project-figure img{
    width:100%;
    height:520px;         /* desktop height */
    object-fit:cover;
  }
  @media (max-width:860px){
    .project-figure img{ height:260px; }  /* mobile height */
  }
  
  .project-title{
    font-size:34px;
    font-weight:800;
    margin:24px 0 8px;
    line-height:1.15;
  }
  
  .aside-sticky{
    position:sticky;
    top:90px;             /* keep the quote card visible while scrolling */
  }
  
  /* Make the card body fill the remaining height, so image + white box align */
  .card{ display:flex; flex-direction:column; height:100%; }
  .card img{ width:100%; height:240px; object-fit:cover; }
  .card-body{ flex:1; display:flex; flex-direction:column; justify-content:space-between; }
  .grid{ align-items:stretch; }
  .grid > .card{ height:100%; }

  /* --- Quote form improvements --- */
.quote-card{
    border-radius: 20px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
  }
  
  .quote-card h3{
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
  }
  
  .quote-subtext{
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
  }
  
  .quote-card input,
  .quote-card textarea{
    border:1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    width:100%;
    font-size:15px;
  }
  
  .quote-card button{
    width:100%;
    margin-top: 12px;
    font-size:16px;
  }
  .quote-privacy{
    font-size:12px;
    color:#64748b;
    margin-top:10px;
    text-align:center;
  }
  