/* =========================
   Base & Variables
   ========================= */

:root{
  --paper: #f6f0df;
  --sand:  #efe6cf;
  --ink:   #222224;
  --blue:  #396baf;
  --orange:#c75036;
  --radius: 18px;
  --shadow: 0 10px 24px rgba(34,34,36,.08);
  --line: rgba(34,34,36,.12);
  --line-soft: rgba(34,34,36,.09);
}

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--paper);
  color: rgba(34,34,36,.92);
  text-rendering: optimizeLegibility;
}

/* =========================
   Layout
   ========================= */

.site-main{
  min-height: calc(100vh - 160px);
}

.container{
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 32px;
}

.page-shell{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.content-area{
  min-width: 0;
}

.section{
  padding: 26px 0;
}

.section + .section{
  border-top: 1px solid var(--line-soft);
}

/* =========================
   Sidebar
   ========================= */

.sidebar{
  position: sticky;
  top: 104px;
  align-self: start;
}

.sidebar-panel{
  padding-top: 10px;
}

.sidebar-title{
  font-size: 1.05rem;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.sidebar-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-item{
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-item:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-item-title{
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.sidebar-item-title a{
  color: var(--ink);
  text-decoration: none;
}

.sidebar-item-title a:hover{
  text-decoration: underline;
}

.sidebar-item-text{
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  opacity: .78;
}

.sidebar-more{
  margin-top: 18px;
}

/* =========================
   Header & Navigation
   ========================= */

.site-header,
.site-footer{
  background: var(--sand);
}

.site-header{
  border-bottom: 1px solid var(--line-soft);
}

.nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}

.brand img{
  width: 48px;
  height: auto;
  display: block;
}

.nav-links a{
  margin-left: 16px;
  text-decoration: none;
  color: rgba(34,34,36,.86);
  position: relative;
  padding: 6px 2px;
}

.nav-links a:hover{
  color: var(--ink);
}

.nav-links a::after{
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-links a:hover::after{
  opacity: .55;
  transform: translateY(0);
}

/* =========================
   Language switch
   ========================= */

.lang-switch{
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid var(--line-soft);
}

.lang-switch a{
  margin-left: 8px;
  font-weight: 750;
  font-size: .9rem;
  opacity: .68;
}

.lang-switch a.active{
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   Typography
   ========================= */

h1, h2, h3{
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1{
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  margin: 8px 0 10px;
}

h2{
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  margin: 0 0 12px;
}

p{ line-height: 1.6; }

.kicker{
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .78rem;
  opacity: .75;
  margin-bottom: 10px;
}

/* =========================
   Hero
   ========================= */

.hero{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 34px;
  padding: 34px 0 16px;
}

.hero p{
  max-width: 66ch;
  margin: 0;
  opacity: .9;
}

.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-visual{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img{
  max-width: 560px;
  width: 100%;
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.08));
}

.hero-text {
  max-width: 640px;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
  color: #2f2f2f;
  font-weight: 450;
}

.hero-anchor {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #5a5a5a;
  margin: 0 0 1.5rem;
  max-width: 58ch;
}

.hero h1 {
  margin-bottom: 1rem;
}

/* =========================
   Grid & Cards
   ========================= */

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card{
  grid-column: span 4;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.28);
  border: 1px solid var(--line-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p{
  margin: 0;
  opacity: .88;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

/* =========================
   Buttons
   ========================= */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn.primary{
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(57,107,175,.18);
}

.btn.secondary,
.btn.ghost{
  background: transparent;
  color: var(--ink);
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(34,34,36,.10);
}

/* =========================
   Footer
   ========================= */

.site-footer{
  border-top: 1px solid var(--line-soft);
}

.site-footer small{
  opacity: .75;
}

/* =========================
   Contact page
   ========================= */

.page{ padding-top: 28px; padding-bottom: 46px; }

.contact{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}

.lead{
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: .92;
  margin: 0 0 16px;
}

.contact-details h2,
.contact-right h2{
  margin-top: 0;
}

.card--soft{
  background: rgba(255,255,255,.22);
}

.link{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,34,36,.25);
}
.link:hover{ border-bottom-color: rgba(34,34,36,.55); }

.form-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label{
  font-weight: 650;
  font-size: .92rem;
  opacity: .9;
}

.form-field input,
.form-field textarea{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255,255,255,.35);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus{
  border-color: rgba(57,107,175,.55);
  box-shadow: 0 0 0 4px rgba(57,107,175,.14);
}

.form-field textarea{
  min-height: 140px;
  resize: vertical;
}

.small-note{
  margin-top: 12px;
  font-size: .92rem;
}

.visually-hidden{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =========================
   About page
   ========================= */

.about-hero{
  margin-bottom: 18px;
}

.about-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.about-grid .card{
  grid-column: span 6;
}

.list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.list li{
  margin: 0 0 8px;
  opacity: .9;
}

.about-cta{
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   Services page
   ========================= */

.services-hero{ margin-bottom: 18px; }

.services-grid .service-card{
  grid-column: span 6;
}

.service-card h2{
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.service-card .muted{
  margin: 0 0 12px;
}

.two-col{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  margin-top: 12px;
}

.two-col h3{
  margin: 0 0 6px;
  font-size: 1rem;
}

.services-cta{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   Header active/hover refinement
   ========================= */

.site-header .nav-links a {
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}

.site-header .nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header .nav-links > a:hover::after,
.site-header .nav-links > a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header .nav-links > a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header .nav-links .lang-switch a::after {
  display: none;
}

/* =========================
   About hero with photo
   ========================= */

.about-hero--with-photo{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.about-photo{
  margin: 0;
  display: flex;
  justify-content: center;
}

.about-photo img{
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
  background: transparent;
}

/* =========================
   Advisory grid
   ========================= */

.advisory-grid .card {
  grid-column: span 4;
}

.advisory-grid .list {
  margin-top: 0.75rem;
}

.advisory-grid .list li {
  margin-bottom: 0.55rem;
}

.work-with-label {
  margin-top: 0.75rem;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1180px){
  .container{
    padding: 24px;
  }

  .page-shell{
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
  }
}

@media (max-width: 980px){
  .page-shell{
    grid-template-columns: 1fr;
  }

  .sidebar{
    position: static;
    margin-top: 8px;
    border-top: 1px solid var(--line-soft);
    padding-top: 20px;
  }

  .card{
    grid-column: span 12;
  }

  .advisory-grid .card{
    grid-column: span 12;
  }

  .hero{
    padding: 34px 0 20px;
  }
}

@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual{
    order: -1;
    margin-bottom: 12px;
  }

  .hero-visual img{
    max-width: 340px;
  }

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

  .about-grid .card{
    grid-column: span 12;
  }

  .services-grid .service-card{
    grid-column: span 12;
  }

  .two-col{
    grid-template-columns: 1fr;
  }

  .about-hero--with-photo{
    grid-template-columns: 1fr;
  }

  .about-photo{
    justify-content: flex-start;
  }

  .about-photo img{
    width: 260px;
  }
}

@media (max-width: 768px) {
  .hero-lead {
    font-size: 1rem;
  }

  .hero-anchor {
    font-size: 0.9rem;
  }
}