/*
Theme Name: Restructurements Michael Lielacher
Theme URI: https://restructurementsmichaellielacher.com
Author: Rise Up Media
Description: Custom firm theme for Restructurements Michael Lielacher, Monaco. Navy-dominant sibling of the Heritage theme used on michaellielacher.com — same palette and typography, inverted weighting: the firm site leads dark and formal where the personal site leads light and biographical.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: restructurements-ml
*/

/* ==========================================================================
   Design tokens — identical to the Heritage theme on michaellielacher.com,
   so the two sites read as one brand family. Do not fork these values;
   change them in both themes or neither.
   ========================================================================== */
:root{
  --navy:#0a1f3d;
  --navy-2:#122a4d;
  --navy-line:#2c4066;
  --cream:#f4f1e8;
  --cream-2:#efece1;
  --cream-line:#e2ddcf;
  --paper:#ffffff;
  --ink:#20242e;
  --ink-soft:#565d6b;
  --royal:#2f5fe8;
  --blue-soft:#96a7c8;
  --blue-softer:#a9b6cf;
  --serif:'Cormorant Garamond', Georgia, serif;
  --sans:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{margin:0; padding:0; box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--sans);
  font-size:16.5px;
  line-height:1.7;
  color:var(--cream);
  background:var(--navy);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block;}
a{color:inherit;}
.container{max-width:1120px; margin:0 auto; padding:0 28px;}

h1,h2,h3{font-family:var(--serif); font-weight:500; line-height:1.15;}

/* Uppercase letter-spaced label with hairline rules either side —
   same construction as the Heritage theme's eyebrow. */
.eyebrow{
  display:inline-flex; align-items:center; gap:14px;
  font-family:var(--sans); font-size:0.72rem; font-weight:600;
  letter-spacing:0.22em; text-transform:uppercase;
  color:var(--blue-soft);
}
.eyebrow::before, .eyebrow::after{
  content:""; width:44px; height:1px; background:var(--navy-line);
}

/* Light sections flip the label colours */
.section-light .eyebrow{color:var(--ink-soft);}
.section-light .eyebrow::before, .section-light .eyebrow::after{background:#d3ccba;}

/* ==========================================================================
   Header — navy, hairline bottom rule, serif wordmark
   ========================================================================== */
.site-header{
  background:var(--navy);
  border-bottom:1px solid var(--navy-line);
  position:sticky; top:0; z-index:50;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0;
}
.wordmark{text-decoration:none; line-height:1.15;}
.wordmark .mark-main{
  font-family:var(--serif); font-size:1.32rem; font-weight:600;
  color:var(--cream); letter-spacing:0.01em; display:block;
}
.wordmark .mark-sub{
  font-family:var(--sans); font-size:0.6rem; font-weight:600;
  letter-spacing:0.3em; text-transform:uppercase;
  color:var(--blue-soft); display:block; margin-top:2px;
}
.nav-links{display:flex; align-items:center; gap:30px; list-style:none;}
.nav-links a{
  font-size:0.82rem; font-weight:500; letter-spacing:0.05em;
  color:var(--cream); text-decoration:none; opacity:0.85;
}
.nav-links a:hover{opacity:1; text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px;}
.lang-switch{
  font-size:0.74rem; font-weight:600; letter-spacing:0.12em;
  border:1px solid var(--navy-line); padding:6px 12px;
}
.lang-switch a{text-decoration:none; opacity:0.6;}
.lang-switch a.active{opacity:1;}
.lang-switch span{opacity:0.4; margin:0 5px;}
.nav-toggle{
  display:none; background:none; border:1px solid var(--navy-line);
  color:var(--cream); font-size:1.05rem; padding:6px 12px; cursor:pointer;
}

/* ==========================================================================
   Hero — deep navy, double-rule motif, one sentence
   ========================================================================== */
.hero{
  background:var(--navy);
  padding:110px 0 96px;
  text-align:center;
}
.hero .eyebrow{margin-bottom:30px;}
.hero h1{
  font-size:clamp(2.3rem, 4.6vw, 3.6rem);
  color:var(--cream);
  max-width:880px; margin:0 auto 26px;
}
.hero .lede{
  font-size:1.06rem; color:var(--blue-softer);
  max-width:660px; margin:0 auto 42px;
}
.rule-double{
  width:110px; margin:0 auto 42px;
  border-top:1px solid var(--navy-line);
  border-bottom:1px solid var(--navy-line);
  height:5px;
}
.cta-row{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}
.btn-primary{
  display:inline-block; background:var(--cream); color:var(--navy);
  font-size:0.85rem; font-weight:600; letter-spacing:0.06em;
  padding:15px 34px; text-decoration:none;
}
.btn-primary:hover{background:var(--cream-2);}
.btn-secondary{
  display:inline-block; background:transparent; color:var(--cream);
  border:1px solid var(--navy-line);
  font-size:0.85rem; font-weight:600; letter-spacing:0.06em;
  padding:14px 33px; text-decoration:none;
}
.btn-secondary:hover{border-color:var(--blue-soft);}

/* ==========================================================================
   Services / mandates — navy-2 band, ruled cards
   ========================================================================== */
.services-section{
  background:var(--navy-2);
  border-top:1px solid var(--navy-line);
  padding:96px 0;
}
.section-head{text-align:center; max-width:680px; margin:0 auto 64px;}
.section-head .eyebrow{margin-bottom:22px;}
.section-head h2{font-size:clamp(1.9rem, 3.4vw, 2.7rem); color:var(--cream); margin-bottom:16px;}
.section-head p{color:var(--blue-softer); font-size:1rem;}
.services-grid{
  display:grid; grid-template-columns:repeat(2, 1fr);
  gap:1px; background:var(--navy-line);
  border:1px solid var(--navy-line);
}
.service-card{
  background:var(--navy-2);
  padding:44px 40px 46px;
}
.service-card .icon{
  font-family:var(--serif); font-size:1.5rem; font-weight:600;
  color:var(--blue-soft); margin-bottom:18px;
}
.service-card h3{font-size:1.35rem; color:var(--cream); margin-bottom:12px;}
.service-card p{font-size:0.93rem; color:var(--blue-softer);}

/* ==========================================================================
   Approach — the one cream section; relief from the navy
   ========================================================================== */
.approach-section{
  background:var(--cream);
  color:var(--ink);
  padding:96px 0;
}
.approach-section .section-head h2{color:var(--navy);}
.approach-section .section-head p{color:var(--ink-soft);}
.principles{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:48px;
  max-width:1000px; margin:0 auto;
}
.principle .num{
  font-family:var(--serif); font-size:2.4rem; font-weight:500;
  color:var(--blue-soft); line-height:1; margin-bottom:16px;
}
.principle h3{font-size:1.25rem; color:var(--navy); margin-bottom:10px;}
.principle p{font-size:0.92rem; color:var(--ink-soft);}

/* ==========================================================================
   Principal — cream-2, portrait + short bio, link out to the personal site
   ========================================================================== */
.principal-section{
  background:var(--cream-2);
  border-top:1px solid var(--cream-line);
  color:var(--ink);
  padding:96px 0;
}
.principal-grid{
  display:grid; grid-template-columns:300px 1fr; gap:70px; align-items:center;
  max-width:980px; margin:0 auto;
}
.portrait-frame{border:1px solid #d3ccba; padding:14px; background:var(--paper);}
.portrait{
  /* Squarer than the personal site's frame — Mike's Monaco portrait is a
     near-square crop, and this keeps the harbour context instead of
     guillotining it. */
  aspect-ratio:3/3.15; background:var(--navy);
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:14px; text-align:center; overflow:hidden;
}
.portrait img{width:100%; height:100%; object-fit:cover;}
.portrait .initials{
  font-family:var(--serif); font-size:3.4rem; color:var(--cream); font-weight:500;
}
.portrait .tag{font-size:0.66rem; color:var(--blue-soft); padding:0 20px; letter-spacing:0.06em;}
.principal-copy .eyebrow{margin-bottom:20px;}
.principal-copy h2{font-size:clamp(1.8rem, 3vw, 2.4rem); color:var(--navy); margin-bottom:20px;}
.principal-copy p{font-size:0.97rem; color:var(--ink-soft); margin-bottom:16px;}
.principal-copy .bio-link{
  display:inline-block; margin-top:8px;
  font-size:0.88rem; font-weight:600; color:var(--navy);
  text-decoration:underline; text-underline-offset:5px; text-decoration-thickness:1px;
}

/* ==========================================================================
   Contact — back to navy to close
   ========================================================================== */
.contact-section{
  background:var(--navy);
  border-top:1px solid var(--navy-line);
  padding:100px 0;
  text-align:center;
}
.contact-section .eyebrow{margin-bottom:26px;}
.contact-section h2{
  font-size:clamp(1.9rem, 3.4vw, 2.7rem); color:var(--cream);
  max-width:640px; margin:0 auto 18px;
}
.contact-section p{color:var(--blue-softer); max-width:560px; margin:0 auto 40px; font-size:0.98rem;}
.contact-links{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background:var(--navy);
  border-top:1px solid var(--navy-line);
  padding:34px 0;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:14px;
  font-size:0.78rem; color:var(--blue-soft);
}
.footer-inner a{color:var(--blue-soft); text-decoration:none;}
.footer-inner a:hover{text-decoration:underline;}
.footer-links{display:flex; gap:22px;}

/* ==========================================================================
   Blog / inner pages — light, quiet, same skeleton as the Heritage theme
   ========================================================================== */
.page-banner{
  background:var(--navy); text-align:center;
  padding:72px 0 64px; border-bottom:1px solid var(--navy-line);
}
.page-banner h1{font-size:clamp(2rem, 3.6vw, 2.8rem); color:var(--cream);}
.page-banner .eyebrow{margin-bottom:20px;}
.content-area{
  background:var(--cream); color:var(--ink); padding:80px 0;
}
.content-area .container{max-width:760px;}
.entry-content p{margin-bottom:1.3em; color:var(--ink);}
.entry-content h2{color:var(--navy); font-size:1.7rem; margin:1.6em 0 0.6em;}
.entry-content h3{color:var(--navy); font-size:1.3rem; margin:1.4em 0 0.5em;}
.entry-content a{color:var(--royal);}
.entry-content ul, .entry-content ol{margin:0 0 1.3em 1.3em;}
.post-list{display:grid; gap:1px; background:var(--cream-line); border:1px solid var(--cream-line);}
.post-card{background:var(--cream); padding:34px 36px;}
.post-card h2{font-size:1.4rem; margin-bottom:8px;}
.post-card h2 a{color:var(--navy); text-decoration:none;}
.post-card h2 a:hover{text-decoration:underline; text-underline-offset:4px;}
.post-card .meta{font-size:0.78rem; color:var(--ink-soft); letter-spacing:0.04em; text-transform:uppercase; margin-bottom:10px;}
.post-card p{color:var(--ink-soft); font-size:0.94rem;}
.pagination{display:flex; gap:10px; justify-content:center; margin-top:44px;}
.pagination a, .pagination span{
  padding:8px 14px; border:1px solid var(--cream-line);
  font-size:0.85rem; text-decoration:none; color:var(--navy);
}
.pagination .current{background:var(--navy); color:var(--cream); border-color:var(--navy);}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:900px){
  .principal-grid{grid-template-columns:1fr; gap:44px; max-width:520px;}
  .principles{grid-template-columns:1fr; gap:36px; max-width:560px;}
}
@media (max-width:760px){
  .nav-toggle{display:block;}
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; background:var(--navy);
    border-bottom:1px solid var(--navy-line); padding:10px 0 18px;
  }
  .nav-links.open{display:flex;}
  .nav-links li{width:100%; text-align:center;}
  .nav-links a{display:block; padding:12px 0;}
  .nav-links .lang-switch{border:none; margin-top:4px;}
  .hero{padding:80px 0 70px;}
  .services-grid{grid-template-columns:1fr;}
  .services-section, .approach-section, .principal-section{padding:72px 0;}
  .contact-section{padding:76px 0;}
}
