/*
Theme Name: Upstate NY Lawyer
Theme URI: https://upstatenylawyer.com/
Author: Law Office of Heidi T. Cochrane
Description: Custom theme for UpstateNYLawyer.com.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: upstatenylawyer
*/
:root{--ink:#171717;--muted:#5e5e5e;--paper:#fff;--soft:#f4f1ed;--line:#d8d3cd;--accent:#6f4f3c;--shadow:0 12px 34px rgba(0,0,0,.13);--measure:74rem;--reading:52rem}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Open Sans","Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.65}
img{display:block;max-width:100%;height:auto}
a{color:#4c3426;text-underline-offset:3px}
a:hover{color:#000}
.wrap{width:min(calc(100% - 2rem),var(--measure));margin-inline:auto}
.reading{max-width:var(--reading)}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:1rem;top:1rem;z-index:9999;background:#fff;color:#000;padding:.75rem 1rem}
.practice-ribbon{background:#050505;color:#f7f7f7;text-align:center;padding:.45rem 1rem;font-size:.95rem;letter-spacing:.02em}
.practice-ribbon::before,.practice-ribbon::after{content:"✣";color:#aaa;margin:0 .8rem}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:50}
.masthead{display:flex;justify-content:center;align-items:center;padding:2.35rem 1rem 1.65rem}
.firm-name{display:block;color:#222;text-align:center;text-decoration:none;text-transform:uppercase;font-family:Georgia,"Times New Roman",serif;letter-spacing:.13em;line-height:1.15}
.firm-name span,.firm-name strong{display:block}
.firm-name span{font-size:1.08rem}
.firm-name strong{font-size:1.55rem;font-weight:400}
.site-nav{border-top:1px solid #eee;background:#fff}
.primary-menu{display:flex;align-items:center;justify-content:center;gap:0;list-style:none;margin:0 auto;padding:0;white-space:nowrap}
.primary-menu>li{position:relative}
.primary-menu>li>a{display:block;padding:1rem .72rem;color:#232323;text-decoration:none;text-transform:uppercase;font-size:.74rem;font-weight:600;letter-spacing:.025em}
.primary-menu>li>a:hover,.primary-menu>li:focus-within>a{background:#f1eee9;color:#000}
.menu-item-has-children>a::after{content:"⌄";margin-left:.3rem;font-size:.85em}
.sub-menu{display:none;position:absolute;left:0;top:100%;min-width:17rem;margin:0;padding:.45rem 0;list-style:none;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);white-space:normal}
.menu-item-has-children:hover>.sub-menu,.menu-item-has-children:focus-within>.sub-menu{display:block}
.sub-menu a{display:block;padding:.65rem .9rem;color:#222;text-decoration:none;font-size:.86rem;line-height:1.35}
.sub-menu a:hover,.sub-menu a:focus{background:#f1eee9;color:#000}
.menu-toggle{display:none;margin:.75rem auto;padding:.55rem 1.2rem;border:1px solid #222;background:#fff;text-transform:uppercase;letter-spacing:.08em}
.legacy-hero{position:relative;min-height:640px;display:grid;place-items:center;overflow:hidden;background:#d8d0c7}
.legacy-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.legacy-hero-panel{position:relative;width:min(92%,550px);padding:2rem 2.25rem;background:rgba(255,255,255,.93);text-align:center;box-shadow:0 10px 35px rgba(0,0,0,.08)}
.legacy-hero-panel h1{margin:.45rem 0 1rem;font:400 clamp(2rem,4vw,3.25rem)/1.06 Georgia,"Times New Roman",serif}
.legacy-hero-panel p{margin:.45rem 0;font-size:1.05rem;line-height:1.45}
.consult-line{color:#555;font-size:1.15rem!important}
.consult-line a{color:inherit}
.button{display:inline-block;margin-top:1rem;padding:.75rem 1.2rem;background:#201c19;color:#fff!important;border:1px solid #201c19;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:700;letter-spacing:.055em}
.button:hover{background:#624835;border-color:#624835}
.home-intro{padding:3rem 0 1rem;text-align:center;font-size:1.06rem}
.practice-section{padding:2rem 0 4rem}
.practice-section>h2{text-align:center;margin:0 0 2rem;font:400 clamp(1.75rem,3vw,2.6rem)/1.2 Georgia,"Times New Roman",serif}
.practice-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.practice-card{background:#fff;border:1px solid var(--line);box-shadow:0 6px 22px rgba(0,0,0,.07)}
.practice-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.practice-card>div{padding:1.25rem 1.35rem 1.5rem}
.practice-card h3{margin:0 0 .55rem;font:400 1.42rem/1.2 Georgia,"Times New Roman",serif}
.practice-card p{color:#4e4e4e}
.practice-card a{font-weight:700}
.page-hero{padding:3.5rem 0 2.7rem;background:#f5f3f0;border-bottom:1px solid var(--line);text-align:center}
.page-hero h1{max-width:60rem;margin:.25rem auto 0;font:400 clamp(2.3rem,5vw,4rem)/1.08 Georgia,"Times New Roman",serif}
.eyebrow{margin:0;color:#66554a;text-transform:uppercase;letter-spacing:.14em;font-size:.75rem;font-weight:700}
.lede{max-width:46rem;margin:1rem auto 0;color:#555;font-size:1.15rem}
.content-area{padding:2.5rem 0 4rem}
.breadcrumb{margin-bottom:1.5rem;color:#6b6b6b;font-size:.84rem}
.entry-content{max-width:var(--reading);margin-inline:auto}
.entry-content h2,.entry-content h3,.entry-content h4{font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.22}
.entry-content h2{margin-top:2rem;font-size:2rem}
.entry-content h3{margin-top:1.6rem;font-size:1.5rem}
.entry-content p,.entry-content li{color:#333}
.entry-content a{font-weight:600}
.review-line{margin-top:2.5rem;padding-top:1rem;border-top:1px solid var(--line);color:#777!important;font-size:.82rem}
.cta-band{max-width:var(--reading);margin:3rem auto 0;padding:2rem;background:#f2eee9;border-left:4px solid #6f4f3c;text-align:center}
.cta-band h2{margin:0;font:400 1.8rem Georgia,"Times New Roman",serif}
.practice-overview-images{max-width:var(--reading);margin:0 auto 2rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.practice-overview-images figure{margin:0}
.practice-overview-images img{width:100%;aspect-ratio:2/1;object-fit:cover}
.site-footer{background:#111;color:#ddd;padding:3.5rem 0 2rem}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem}
.footer-grid h2{margin:0 0 .85rem;color:#fff;font:400 1.15rem Georgia,"Times New Roman",serif;letter-spacing:.03em}
.footer-grid ul{margin:0;padding:0;list-style:none}
.footer-grid li{margin:.38rem 0}
.footer-grid a{color:#ddd;text-decoration:none;font-size:.86rem}
.footer-grid a:hover{text-decoration:underline;color:#fff}
.footer-legal{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid #444;color:#aaa;text-align:center;font-size:.78rem}
.wpcf7-form label{display:block;margin-bottom:.35rem;font-weight:700}
.wpcf7-form input:not([type=checkbox]),.wpcf7-form textarea,.wpcf7-form select{width:100%;padding:.72rem;border:1px solid #aaa;background:#fff;font:inherit}
.wpcf7-form textarea{min-height:9rem}
.wpcf7-submit{padding:.8rem 1.25rem;background:#201c19;color:#fff;border:0;font-weight:700}
@media(max-width:1100px){
 .primary-menu>li>a{padding:1rem .5rem;font-size:.68rem}
}
@media(max-width:900px){
 .menu-toggle{display:block}
 .site-nav{display:none}
 .site-nav.is-open{display:block}
 .primary-menu{display:block;white-space:normal;padding:.35rem 1rem 1rem}
 .primary-menu>li>a{font-size:.82rem;padding:.75rem .5rem}
 .sub-menu{display:block;position:static;min-width:0;border:0;box-shadow:none;padding:0 0 .35rem 1rem}
 .sub-menu a{padding:.4rem .65rem}
 .practice-cards{grid-template-columns:1fr}
 .practice-card{display:grid;grid-template-columns:minmax(180px,35%) 1fr}
 .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
 .practice-ribbon{font-size:.76rem}
 .practice-ribbon::before,.practice-ribbon::after{display:none}
 .masthead{padding:1.5rem .5rem 1rem}
 .firm-name strong{font-size:1.2rem}
 .legacy-hero{min-height:600px}
 .legacy-hero-panel{padding:1.5rem 1rem}
 .practice-card{display:block}
 .practice-overview-images,.footer-grid{grid-template-columns:1fr}
}

.page-feature-image {
  margin: 0 0 2rem;
}
.page-feature-image img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 2px;
}


/* Balanced page typography and responsive feature-image layout */
.entry-content > p:first-child {
  margin: 0 0 0.85rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.3;
  font-weight: 700;
  color: #202020;
}
.entry-content h2,
.entry-content h3 {
  margin: 1.65rem 0 0.65rem;
  line-height: 1.25;
  font-weight: 700;
}
.entry-content p {
  margin-top: 0;
  margin-bottom: 1rem;
}
.page-feature-image {
  float: right;
  width: min(36%, 400px);
  margin: 0.2rem 0 1.15rem 2rem;
}
.page-feature-image img {
  width: 100%;
  max-height: 285px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-feature-image figcaption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5b5b5b;
}
.entry-content::after {
  content: '';
  display: block;
  clear: both;
}

@media (max-width: 959px) {
  .page-feature-image {
    float: none;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 1.25rem;
  }
  .page-feature-image img {
    max-height: 340px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .page-feature-image {
    max-width: none;
    margin-bottom: 1rem;
  }
  .page-feature-image img {
    max-height: 260px;
  }
  .entry-content > p:first-child {
    font-size: 1.18rem;
    margin-bottom: 0.7rem;
  }
  .entry-content h2,
  .entry-content h3 {
    margin-top: 1.35rem;
    margin-bottom: 0.55rem;
  }
}


.related-information {
  clear: both;
  margin-top: 1.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid #d8d2c7;
}
.related-information h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}
.related-information > p {
  max-width: 760px;
  margin-bottom: 0.8rem;
  color: #4e4b46;
}
.related-information ul {
  margin: 0;
  padding-left: 1.2rem;
}
.related-information li {
  margin-bottom: 0.55rem;
  line-height: 1.5;
}
.related-information a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
@media (max-width: 640px) {
  .related-information {
    margin-top: 1.35rem;
    padding-top: 1rem;
  }
  .related-information li {
    margin-bottom: 0.7rem;
  }
}


/* Hide the inactive Contact Form 7 submit control until consent is checked. */
.wpcf7-form .wpcf7-submit:disabled,
.wpcf7-form input[type="submit"]:disabled {
  display: none;
}
