/*
Theme Name: Gandhar & Associates
Author: Gandhar & Associates
Description: A refined, accessible WordPress theme for Gandhar & Associates.
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: gandhar-associates
*/

:root {
  --ink: #071a26;
  --ink-2: #0d2839;
  --paper: #f5f1e8;
  --white: #fffefa;
  --bronze: #b08a52;
  --bronze-light: #d4ba8d;
  --muted: #66737d;
  --line: rgba(176, 138, 82, 0.28);
  --shadow: 0 24px 70px rgba(5, 20, 30, 0.16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 18px; color: var(--bronze); font-size: .76rem; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--serif); font-size: clamp(3.25rem, 7.2vw, 7rem); font-weight: 500; letter-spacing: -.055em; line-height: .93; }
.section-title { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(2.35rem, 5vw, 4.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.lede { max-width: 680px; margin: 22px 0 0; color: #52616b; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; background: var(--bronze); color: #061a25; font-size: .83rem; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { background: var(--bronze-light); transform: translateY(-2px); }
.button--ghost { border-color: rgba(255,255,255,.32); background: transparent; color: var(--white); }
.button--ghost:hover { background: var(--white); color: var(--ink); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 40; color: var(--white); }
.header-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: .015em; line-height: 1.05; }
.brand small { display: block; margin-top: 5px; color: var(--bronze-light); font-size: .63rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav .menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; color: rgba(255,255,255,.82); font-size: .81rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--bronze); transition: right .2s ease; }
.site-nav a:hover::after { right: 0; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--white); }

.hero { min-height: 850px; display: grid; align-items: end; position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,17,26,.98) 0%, rgba(4,17,26,.86) 43%, rgba(4,17,26,.18) 74%, rgba(4,17,26,.44) 100%), url('assets/images/founder-supreme-court.jpg') 76% 31% / cover no-repeat; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -210px; bottom: -170px; border: 1px solid rgba(176,138,82,.22); border-radius: 50%; box-shadow: 0 0 0 80px rgba(176,138,82,.025), 0 0 0 160px rgba(176,138,82,.018); }
.hero-inner { position: relative; z-index: 2; padding: 210px 0 82px; }
.hero-copy { max-width: 720px; }
.hero .display { max-width: 690px; }
.hero-lede { max-width: 630px; margin: 28px 0 0; color: rgba(255,255,255,.74); font-size: clamp(1.03rem, 1.8vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.credential-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 72px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.credential { min-height: 116px; padding: 24px 26px; background: rgba(7,26,38,.74); }
.credential strong { display: block; margin-bottom: 6px; color: var(--bronze-light); font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.credential span { color: rgba(255,255,255,.64); font-size: .84rem; }

.intro { padding: 125px 0; background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(55px, 10vw, 140px); align-items: start; }
.portrait-frame { position: relative; }
.portrait-frame::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--line); }
.portrait-frame img { position: relative; width: 100%; height: clamp(480px, 52vw, 650px); object-fit: cover; object-position: 50% 50%; background: #050505; box-shadow: var(--shadow); }
.signature { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.signature strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.signature span { color: var(--muted); font-size: .83rem; letter-spacing: .1em; text-transform: uppercase; }
.bio-copy p { margin: 24px 0 0; color: #3d4a53; font-size: 1.06rem; }
.bio-copy p:first-of-type { color: var(--ink); font-family: var(--serif); font-size: 1.42rem; line-height: 1.5; }

.practice { padding: 125px 0; }
.practice-head { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 65px; }
.practice-head .lede { max-width: 460px; }
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.practice-card { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 38px 36px 40px 0; border-bottom: 1px solid var(--line); }
.practice-card:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
.practice-number { color: var(--bronze); font-family: var(--serif); font-size: 1.35rem; }
.practice-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 1.65rem; font-weight: 600; }
.practice-card p { margin: 0; color: var(--muted); }

.forums { position: relative; overflow: hidden; padding: 125px 0; background: var(--ink); color: var(--white); }
.forums::after { content: "G&A"; position: absolute; right: -40px; bottom: -100px; color: rgba(255,255,255,.025); font-family: var(--serif); font-size: 24rem; line-height: 1; }
.forums-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.forums .section-title { max-width: 480px; }
.forum-list { margin: 0; padding: 0; list-style: none; }
.forum-list li { display: flex; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78); }
.forum-list li::before { content: "◆"; color: var(--bronze); font-size: .55rem; }

.contact { padding: 120px 0; background: var(--bronze); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.contact .section-title { max-width: 720px; }
.contact-details { padding-left: 30px; border-left: 1px solid rgba(7,26,38,.28); }
.contact-details p { margin: 0 0 20px; }
.contact-details a { font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-note { font-size: .9rem; opacity: .72; }

.site-footer { padding: 42px 0; background: #04111a; color: rgba(255,255,255,.58); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--white); font-family: var(--serif); font-size: 1.08rem; }
.footer-brand img { width: 36px; height: 36px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; font-size: .78rem; }
.footer-meta a { color: var(--bronze-light); }

.disclaimer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(2,12,18,.92); backdrop-filter: blur(8px); }
.disclaimer[hidden] { display: none; }
.disclaimer-dialog { width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: clamp(30px, 6vw, 58px); border: 1px solid rgba(176,138,82,.45); background: var(--ink); color: var(--white); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.disclaimer-dialog h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; }
.disclaimer-dialog p { color: rgba(255,255,255,.72); }
.disclaimer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.disclaimer .button--ghost { cursor: pointer; }

.entry { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 170px 0 100px; }
.entry h1 { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; }
.entry-content { font-size: 1.06rem; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); }

@media (max-width: 900px) {
  .header-inner { min-height: 88px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; inset: 88px 0 auto; display: none; padding: 28px 20px 34px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: grid; }
  .site-nav .menu { display: grid; gap: 22px; }
  .site-nav .button { width: 100%; }
  .hero { min-height: 780px; }
  .hero::before { background: linear-gradient(0deg, rgba(4,17,26,.98) 0%, rgba(4,17,26,.78) 68%, rgba(4,17,26,.4) 100%), url('assets/images/founder-supreme-court.jpg') 62% 32% / cover no-repeat; }
  .hero-inner { padding-top: 260px; }
  .credential-row { grid-template-columns: 1fr; }
  .credential { min-height: auto; }
  .intro-grid, .forums-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 580px; }
  .practice-head { display: block; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact-details { padding-left: 0; border-left: 0; }
}

@media (max-width: 620px) {
  :root { --container: min(100% - 28px, 1180px); }
  .brand small { display: none; }
  .brand strong { max-width: 190px; font-size: 1rem; }
  .hero { min-height: 900px; }
  .hero-inner { padding-bottom: 34px; }
  .display { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-actions .button { width: 100%; }
  .credential-row { margin-top: 46px; }
  .intro, .practice, .forums, .contact { padding: 88px 0; }
  .portrait-frame::before { inset: 16px -10px -16px 14px; }
  .practice-card { grid-template-columns: 42px 1fr; gap: 16px; padding-right: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
