/* =====================================================================
   style_V2.css — Cognitive Craftsman site skin
   Purpose:
   - Keep the Cognitive Craftsman color scheme and identity
   - Mirror the Proy Law site structure, spacing, typography, and layout
   - Preserve legacy selectors so older HTML continues to render cleanly
   ===================================================================== */

/* ---- Legacy baseline (compatibility) ---- */
body{
  padding:0;
  margin:0;
  background-color:#FDFDFD;
}

table{ border-collapse:collapse; border:0; }

table, td{
  width:100%;
  height:100%;
  border:0;
}

td{ vertical-align:top; padding:0; }

a:hover{ text-decoration:none; }

img{
  border:0;
  max-width:100%;
  height:auto;
}

.main_text, table, li, input, textarea{
  font-size:large;
  color:#4C4C4C;
  text-align:justify;
}

/* ---- Theme tokens ---- */
:root{
  --brand-blue:#012435;      /* mapped to Cognitive Craftsman ink */
  --brand-ink:#012435;       /* Daintree */
  --brand-accent:#906A30;    /* Corn Harvest */
  --brand-paper:#FDFDFD;     /* Romance */
  --brand-black:#000000;

  --text:#4C4C4C;
  --bg:var(--brand-paper);
  --muted:#6A6A6A;
  --card-border:rgba(1,36,53,0.18);
  --focus:var(--brand-accent);

  --body-font:'Trebuchet MS','Segoe UI',Tahoma,Verdana,Arial,Helvetica,sans-serif;
  --logo-font:'Goudy Old Style', var(--body-font);

  --wrap-min:980px;
  --wrap-fluid:92vw;
  --wrap-max:1400px;

  --radius-lg:16px;
  --radius-md:12px;
  --img-radius:12px;
}

*, *::before, *::after{ box-sizing:border-box; }

html{ font-size:18px; }

body{
  font-family:var(--body-font);
  font-size:1rem;
  line-height:1.65;
  color:var(--text);
  background:var(--bg);
  font-weight:400;
}

p, li, .sidebar-card, .site-footer{
  font-size:1rem;
  line-height:1.65;
  font-weight:400;
}

.main_text, table, li, input, textarea, select, button,
.style1,.style2,.style3,.style4,.style5,.style6,.style7,.style8,.style9,.style10,.style11,.style12{
  font-family:var(--body-font);
}

/* ---- Links ---- */
a,
a:visited{
  color:var(--brand-ink);
  text-decoration:none;
  border-bottom:1px solid rgba(1,36,53,0.42);
  padding-bottom:0.02em;
  text-underline-offset:0.15em;
}

a:hover,
a:active{
  color:var(--brand-accent);
  border-bottom-color:rgba(144,106,48,0.65);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
  border-radius:10px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--brand-paper);
  color:var(--brand-ink);
  padding:10px 14px;
  border:2px solid var(--brand-ink);
  border-radius:12px;
}
.skip-link:focus{
  left:12px;
  top:12px;
  z-index:9999;
}

/* ---- Headings ---- */
h1,h2,h3,h4,h5,h6{
  font-family:inherit;
  font-size:1em;
  font-weight:inherit;
  line-height:1.65;
  margin:0 0 1rem;
  color:inherit;
}

/* ---- Layout ---- */
.site-wrap{
  width:100%;
  max-width:clamp(var(--wrap-min), var(--wrap-fluid), var(--wrap-max));
  margin:0 auto;
  padding:24px 16px 48px;
}

.layout{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  grid-template-areas:"sidebar main";
  gap:34px;
  align-items:start;
}

.sidebar{ grid-area:sidebar; }
.main-content{ grid-area:main; min-width:0; }

@media (max-width: 900px){
  .site-wrap{ padding:16px 14px 40px; }
  .layout{
    grid-template-columns:1fr;
    grid-template-areas:
      "main"
      "sidebar";
    gap:22px;
  }
}

/* ---- Logos / sidebar ---- */
.logo-block{ margin:6px 0 14px; }
.logo,
.logo-link{
  display:block;
  border-bottom:0 !important;
  text-decoration:none !important;
}
.logo-link svg{ display:block; width:100%; max-width:260px; height:auto; }

.sidebar-card{
  background:#FFFFFF;
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  padding:16px 18px;
  margin:0 0 18px;
  box-shadow:0 1px 2px rgba(0,0,0,0.06);
  text-align:left;
}

.sidebar-card,
.sidebar-card *{
  font-weight:400;
}

.card-title{
  margin:0 0 10px;
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.02em;
  text-align:center;
  color:var(--brand-ink);
}

.book-link{
  display:block;
  text-align:center;
  border:1px solid var(--card-border);
  border-radius:var(--radius-md);
  padding:10px;
  border-bottom:1px solid var(--card-border);
}
.book-link:hover{ border-color:rgba(1,36,53,0.35); }
.book-link img{ border-radius:10px; }

.vcard{ text-align:left; }
.nowrap{ white-space:nowrap; }
@media (max-width:420px){ .nowrap{ white-space:normal; } }

.vcard .fn.org{
  font-weight:700;
  margin:0 0 8px;
  color:var(--brand-ink);
}
.vcard .adr{ margin:0 0 10px; }

/* ---- Header / navigation ---- */
.main-header,
.site-nav{
  margin:56px 0 24px;
}

.site-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.site-nav a{
  display:inline-block;
  padding:6px 6px;
  font-size:1.3rem;
  font-weight:700;
  white-space:nowrap;
  border-bottom:0;
}

.site-nav a:hover{ color:var(--brand-accent); }

@media (max-width:700px){
  .main-header,
  .site-nav{ margin:26px 0 18px; }

  .site-nav ul{
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
  }

  .site-nav a{
    padding:10px 10px;
    font-size:1.15rem;
  }
}

/* ---- Main content ---- */
.content{ text-align:justify; }
@media (max-width:700px){ .content{ text-align:left; } }

.content p{ margin:0 0 1rem; }

.content ul{
  list-style:disc;
  margin:0 0 1rem 1.3rem;
  padding:0;
}
.content ol{
  margin:0 0 1rem 1.3rem;
  padding:0;
}
.content li{ margin:0.35rem 0; }

.content img{ border-radius:var(--img-radius); }
a.logo img,
a.logo-link img{ border-radius:0; box-shadow:none; }

.page-title{
  margin:0 0 0.6rem;
  color:var(--brand-ink);
}
.page-subtitle{
  margin:0 0 1.2rem;
  color:var(--brand-accent);
}
.gold{ color:var(--brand-accent); }

.card{
  background:#FFFFFF;
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  padding:16px 18px;
  margin:16px 0 0;
  box-shadow:0 1px 2px rgba(0,0,0,0.06);
}

.small{ font-size:0.9rem; }
.muted{ color:var(--muted); }
.tm{ font-size:0.8em; vertical-align:super; }

/* ---- Forms ---- */
.form-field{ margin:0 0 10px; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
.sidebar-card form input[type="text"],
.sidebar-card form input[type="email"],
.sidebar-card form input[type="tel"],
.sidebar-card form textarea{
  width:100%;
  box-sizing:border-box;
  padding:10px 12px;
  font-size:1rem;
  font-family:var(--body-font);
  border:1px solid var(--card-border);
  border-radius:12px;
  background:#FFFFFF;
  color:var(--text);
  margin:6px 0;
}

textarea,
.sidebar-card form textarea{
  min-height:120px;
  resize:vertical;
}

::placeholder{ color:#666666; opacity:1; }
.sidebar-card form textarea::placeholder{ white-space:normal; }

.btn-primary,
.sidebar-card form input[type="submit"],
.sidebar-card form button[type="submit"]{
  display:inline-block;
  width:100%;
  box-sizing:border-box;
  margin-top:10px;
  padding:10px 12px;
  font-size:1rem;
  font-family:var(--body-font);
  border:none;
  border-radius:14px;
  background:var(--brand-ink);
  color:#FFFFFF;
  font-weight:700;
  cursor:pointer;
  transition:background-color 150ms ease, filter 150ms ease;
}

.btn-primary:hover,
.sidebar-card form input[type="submit"]:hover,
.sidebar-card form button[type="submit"]:hover{
  background:var(--brand-accent);
}

.contact-honeypot,
.hp-field{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

.form-notice,
.contact-form-note{
  margin-top:10px;
  color:#b00020;
  font-size:0.85rem;
  font-weight:400;
  text-align:center;
}

/* ---- Footer ---- */
.site-footer{
  margin-top:28px;
  text-align:center;
}
.site-footer p{ margin:0 0 10px; }

.footer-sep{
  margin:0 6px;
  color:var(--muted);
}

.footer-logo-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  flex-wrap:nowrap;
  margin-top:12px;
}

.footer-logo-row a,
.footer-logo-link,
.footer-logo-link:link,
.footer-logo-link:visited,
.footer-logo-link:hover,
.footer-logo-link:active{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  border-bottom:0 !important;
  background:none !important;
  background-image:none !important;
  box-shadow:none !important;
  line-height:0;
}

.footer-logo-row svg,
.footer-logo-link svg{
  display:block;
  height:75px;
  width:auto;
  max-width:100%;
}

/* ---- Screen-reader utility ---- */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ---- Legacy utility classes retained ---- */
.h_text{ color:#4C4C4C; }
.h2_text{ color:#4C4C4C; }

.l_text{ color:#A2A2A2; text-decoration:none; }
.l_text:hover{ color:var(--brand-accent); }

.c_text{ color:#BFBFBF; font-size:9px; line-height:13px; }
.c2_text{ color:#7F7F7F; font-size:9px; line-height:13px; }
.c2_text a{ color:var(--brand-ink); }

.fs{ font-size:9px; }
.tt{ text-transform:uppercase; }

.no_class, form, .no_class td{
  width:auto;
  height:auto;
  margin:0;
  padding:0;
  border:0;
}

.line{ background:#BFBFBF; height:1px; }

.bg{
  background:#FFFFFF;
  padding:3px 0 3px 2px;
  display:block;
  color:#929292;
  text-decoration:none;
}
.bg:hover{
  background:#F3EEE7;
  color:var(--brand-accent);
}

li a{
  color:var(--brand-ink);
  text-decoration:none;
}
li a:hover{ color:var(--brand-accent); }

.style-image{
  margin:5px;
  border-radius:var(--img-radius);
  box-shadow:0 1px 2px rgba(0,0,0,0.08);
}

b, strong,
.green-initiatives-link{
  font-weight:400;
}
