/*
Theme Name: Legataa Legal
Theme URI: https://legataalegal.com
Author: Legataa Legal
Author URI: https://legataalegal.com
Description: Custom one-page theme for Legataa Legal, a commercial practice law firm. Built around an ink-and-brass editorial identity with statute-style practice area listings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legataa-legal
*/

:root{
  --ink:#161f1b;
  --ink-soft:#243029;
  --paper:#efeade;
  --paper-hi:#f8f5ec;
  --brass:#a9812e;
  --brass-soft:#c9a34f;
  --oxblood:#6e2a2a;
  --slate:#57635a;
  --line: rgba(22,31,27,0.14);
  --line-dark: rgba(239,234,222,0.16);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Public Sans', sans-serif;
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--brass); color:var(--paper-hi); }

h1,h2,h3, .display{
  font-family:'Fraunces', serif;
  font-weight:500;
  letter-spacing:-0.01em;
}
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--brass);
}
a{ color:inherit; }
img{ max-width:100%; display:block; }

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 6vw;
}

/* ===== NAV ===== */
header.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  background:rgba(22,31,27,0.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line-dark);
}
.nav{
  max-width:1180px;
  margin:0 auto;
  padding:0 6vw;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
  color:var(--paper-hi);
}
.nav .mark{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'Fraunces', serif;
  font-size:1.05rem;
  letter-spacing:0.01em;
  text-decoration:none;
  color:var(--paper-hi);
}
.nav .mark svg{ width:30px; height:30px; flex-shrink:0; }
.nav .mark .name{ font-weight:500; }
.nav .mark .name b{ color:var(--brass-soft); font-weight:600; }
.navlinks{
  display:flex;
  gap:2.4rem;
  font-size:0.82rem;
  letter-spacing:0.03em;
  list-style:none;
}
.navlinks li{ list-style:none; }
.navlinks a{
  text-decoration:none;
  color:rgba(239,234,222,0.78);
  position:relative;
  padding-bottom:4px;
  transition:color .25s ease;
}
.navlinks a:hover{ color:var(--paper-hi); }
.navlinks a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:1px;
  background:var(--brass-soft);
  transition:width .3s ease;
}
.navlinks a:hover::after{ width:100%; }
.navcta{
  font-size:0.78rem;
  letter-spacing:0.03em;
  border:1px solid rgba(239,234,222,0.35);
  padding:0.6rem 1.15rem;
  text-decoration:none;
  color:var(--paper-hi);
  transition: all .25s ease;
  white-space:nowrap;
}
.navcta:hover{ background:var(--brass); border-color:var(--brass); color:var(--ink); }
.navtoggle{ display:none; }

/* ===== HERO ===== */
.hero{
  min-height:100svh;
  background:
    radial-gradient(ellipse 120% 80% at 85% -10%, rgba(169,129,46,0.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #101815 100%);
  color:var(--paper-hi);
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  padding-top:76px;
}
.hero::before{
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(239,234,222,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,234,222,0.045) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 30%, black, transparent 75%);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap:3rem;
  align-items:center;
  padding:5rem 0 6rem;
}
.hero-eyebrow{
  display:flex; align-items:center; gap:0.9rem;
  margin-bottom:1.6rem;
  opacity:0;
  animation: rise .9s ease forwards .15s;
}
.hero-eyebrow .rule{ width:34px; height:1px; background:var(--brass-soft); }
.hero h1{
  font-size:clamp(2.6rem, 5.4vw, 4.7rem);
  line-height:1.05;
  font-weight:500;
  max-width:14ch;
  opacity:0;
  animation: rise 1s ease forwards .3s;
}
.hero h1 em{
  font-style:italic;
  font-weight:400;
  color:var(--brass-soft);
}
.hero .lede{
  margin-top:1.7rem;
  max-width:46ch;
  font-size:1.05rem;
  color:rgba(239,234,222,0.72);
  font-weight:300;
  opacity:0;
  animation: rise 1s ease forwards .5s;
}
.hero .maxim{
  margin-top:2.6rem;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.78rem;
  letter-spacing:0.06em;
  color:rgba(239,234,222,0.5);
  opacity:0;
  animation: rise 1s ease forwards .65s;
}
.hero .maxim span{ color:var(--brass-soft); }
.hero-actions{
  margin-top:2.8rem;
  display:flex;
  gap:1rem;
  opacity:0;
  animation: rise 1s ease forwards .8s;
  flex-wrap:wrap;
}
.btn-primary{
  background:var(--brass);
  color:var(--ink);
  text-decoration:none;
  font-size:0.85rem;
  letter-spacing:0.03em;
  padding:0.95rem 1.7rem;
  font-weight:500;
  transition: transform .25s ease, background .25s ease;
  display:inline-block;
}
.btn-primary:hover{ background:var(--brass-soft); transform:translateY(-2px); }
.btn-ghost{
  text-decoration:none;
  color:var(--paper-hi);
  font-size:0.85rem;
  letter-spacing:0.03em;
  padding:0.95rem 1.4rem;
  border:1px solid rgba(239,234,222,0.28);
  transition:border-color .25s ease, background .25s ease;
}
.btn-ghost:hover{ border-color:var(--brass-soft); background:rgba(239,234,222,0.04); }

@keyframes rise{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:translateY(0); }
}

/* Seal */
.seal-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  animation: sealin 1.2s cubic-bezier(.2,.8,.2,1) forwards .5s;
}
@keyframes sealin{
  from{ opacity:0; transform:scale(.85) rotate(-8deg);}
  to{ opacity:1; transform:scale(1) rotate(0deg);}
}
.seal{ width:min(320px, 80%); height:auto; }
.seal .ring-text{ animation: spin 40s linear infinite; transform-origin:150px 150px; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ===== SECTION SHELL ===== */
section{ padding:7.5rem 0; position:relative; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:2rem;
  margin-bottom:3.6rem;
  border-bottom:1px solid var(--line);
  padding-bottom:1.8rem;
  flex-wrap:wrap;
}
.section-head h2{
  font-size:clamp(1.9rem, 3vw, 2.6rem);
  font-weight:500;
}
.section-head .eyebrow{ margin-bottom:0.7rem; display:block; }
.section-num{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.78rem;
  color:var(--slate);
}
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ===== PRACTICE AREAS ===== */
.statute{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  border-top:1px solid var(--line);
}
.article{
  border-bottom:1px solid var(--line);
  padding:2.2rem 2.4rem 2.2rem 0;
  display:grid;
  grid-template-columns: 90px 1fr;
  gap:1.2rem;
  transition:background .3s ease;
}
.article:nth-child(odd){ border-right:1px solid var(--line); padding-left:0; }
.article:nth-child(even){ padding-left:2.4rem; }
.article:hover{ background:rgba(169,129,46,0.06); }
.article .num{
  font-family:'Fraunces', serif;
  font-style:italic;
  font-size:1.5rem;
  color:var(--brass);
  padding-top:0.15rem;
}
.article h3{
  font-size:1.18rem;
  font-weight:500;
  margin-bottom:0.55rem;
}
.article p{
  font-size:0.92rem;
  color:var(--slate);
  max-width:38ch;
}

/* ===== PHILOSOPHY ===== */
.philosophy{
  background:var(--ink);
  color:var(--paper-hi);
}
.philosophy .section-head{ border-bottom-color:var(--line-dark); }
.phil-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:4rem;
}
.phil-quote{
  font-family:'Fraunces', serif;
  font-style:italic;
  font-weight:400;
  font-size:clamp(1.5rem, 2.4vw, 2.1rem);
  line-height:1.4;
  color:var(--paper-hi);
}
.phil-quote .mark-open, .phil-quote .mark-close{ color:var(--brass-soft); }
.phil-cite{
  margin-top:1.6rem;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.76rem;
  letter-spacing:0.05em;
  color:rgba(239,234,222,0.5);
}
.phil-side p{
  color:rgba(239,234,222,0.68);
  font-weight:300;
  font-size:1rem;
  margin-bottom:1.4rem;
}
.phil-side .maxim-block{
  margin-top:2rem;
  padding-top:2rem;
  border-top:1px solid var(--line-dark);
}
.phil-side .maxim-block .latin{
  font-family:'Fraunces', serif;
  font-style:italic;
  font-size:1.3rem;
  color:var(--brass-soft);
  margin-bottom:0.4rem;
}
.phil-side .maxim-block .eng{
  font-size:0.85rem;
  color:rgba(239,234,222,0.55);
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:0.02em;
}

/* ===== ABOUT / GLOBAL-LOCAL ===== */
.about-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap:4.5rem;
  align-items:start;
}
.about-copy p{
  font-size:1.08rem;
  color:var(--ink-soft);
  font-weight:300;
  margin-bottom:1.3rem;
  max-width:52ch;
}
.stat-list{ display:flex; flex-direction:column; gap:0; border-top:1px solid var(--line); }
.stat-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:1.3rem 0;
  border-bottom:1px solid var(--line);
  gap:1rem;
}
.stat-row .k{
  font-family:'Fraunces', serif;
  font-size:1.9rem;
  color:var(--brass);
}
.stat-row .v{
  font-size:0.85rem;
  color:var(--slate);
  text-align:right;
  max-width:22ch;
}

/* ===== CORE VALUES ===== */
.values-band{ background:var(--paper-hi); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.values-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:0;
}
.value-card{
  padding:3rem 2.4rem;
  border-right:1px solid var(--line);
}
.value-card:last-child{ border-right:none; }
.value-card .vnum{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  color:var(--brass);
  letter-spacing:0.1em;
  display:block;
  margin-bottom:1.4rem;
}
.value-card h3{
  font-size:1.15rem;
  font-weight:500;
  margin-bottom:0.9rem;
  line-height:1.35;
}
.value-card p{
  font-size:0.9rem;
  color:var(--slate);
}

/* ===== CONTACT / FOOTER ===== */
footer.site-footer{
  background:var(--ink);
  color:var(--paper-hi);
  padding:6rem 0 0;
}
.cta-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:2rem;
  flex-wrap:wrap;
  padding-bottom:5rem;
  border-bottom:1px solid var(--line-dark);
}
footer h2{
  font-size:clamp(2rem, 4vw, 3.2rem);
  max-width:14ch;
  font-weight:500;
}
footer h2 em{ color:var(--brass-soft); font-style:italic; font-weight:400; }
.foot-bottom{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap:2rem;
  padding:3.6rem 0;
}
.foot-col .label{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.7rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--brass-soft);
  margin-bottom:1rem;
  display:block;
}
.foot-col a, .foot-col p{
  display:block;
  text-decoration:none;
  color:rgba(239,234,222,0.7);
  font-size:0.9rem;
  margin-bottom:0.6rem;
}
.foot-col a:hover{ color:var(--paper-hi); }
.foot-mark{
  display:flex; align-items:center; gap:12px;
  font-family:'Fraunces', serif;
  font-size:1.1rem;
  margin-bottom:1rem;
}
.foot-mark svg{ width:28px; height:28px; }
.foot-legal{
  border-top:1px solid var(--line-dark);
  padding:1.6rem 0;
  display:flex;
  justify-content:space-between;
  font-size:0.75rem;
  color:rgba(239,234,222,0.4);
  flex-wrap:wrap;
  gap:0.6rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width:900px){
  .navlinks{ display:none; }
  .hero-grid{ grid-template-columns:1fr; gap:2rem; padding:3rem 0 4rem;}
  .seal-wrap{ order:-1; }
  .seal{ width:200px; }
  .statute{ grid-template-columns:1fr; }
  .article:nth-child(odd){ border-right:none; padding-left:0; }
  .article:nth-child(even){ padding-left:0; }
  .phil-grid{ grid-template-columns:1fr; gap:2.5rem; }
  .about-grid{ grid-template-columns:1fr; gap:2.5rem; }
  .values-grid{ grid-template-columns:1fr; }
  .value-card{ border-right:none; border-bottom:1px solid var(--line); }
  .foot-bottom{ grid-template-columns:1fr 1fr; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
