/*
Theme Name: Clay & Associates Advocates
Theme URI: https://clay-law.com
Author: Clay & Associates Advocates
Author URI: https://clay-law.com
Description: Custom child theme for Clay & Associates Advocates - Your Business, Our Solutions.
Template: betheme
Version: 1.0.0
Text Domain: clay-advocates
*/

/* ============================================================
   CLAY & ASSOCIATES ADVOCATES - BRAND SYSTEM
   ============================================================
   Crimson:    #8A1722
   Near-Black: #2A2A2A
   Light Grey: #F2F0ED
   Warm White: #FAF8F5
   Gold:       #B8860B (accent - sparingly)
   ============================================================ */

:root {
  --clay-crimson: #8A1722;
  --clay-crimson-dark: #6E121B;
  --clay-crimson-light: #A82030;
  --clay-crimson-subtle: rgba(138, 23, 34, 0.08);
  --clay-black: #2A2A2A;
  --clay-black-soft: #3D3D3D;
  --clay-grey: #F2F0ED;
  --clay-warm-white: #FAF8F5;
  --clay-gold: #B8860B;
  --clay-text: #2A2A2A;
  --clay-text-muted: #6B6B6B;
  --clay-border: #E0DDD8;
  --clay-border-light: #ECEAE6;
}


/* ============================================================
   1. TYPOGRAPHY
   ============================================================ */

/* Google Fonts import - Cormorant Garamond for display, Georgia fallback for body */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

body,
body .mfn-builder-content,
body #Content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--clay-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.title,
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--clay-black);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1, body h1 { font-size: 48px; }
h2, body h2 { font-size: 36px; }
h3, body h3 { font-size: 28px; }
h4, body h4 { font-size: 22px; }
h5, body h5 { font-size: 18px; font-weight: 500; }
h6, body h6 { font-size: 16px; font-weight: 500; }

/* Paragraph spacing */
p {
  margin-bottom: 1.25em;
  text-align: justify;
}

/* Blockquotes */
blockquote,
.blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  color: var(--clay-crimson);
  border-left: 3px solid var(--clay-crimson);
  padding: 1em 1.5em;
  margin: 2em 0;
  background: var(--clay-crimson-subtle);
}


/* ============================================================
   2. COLOUR OVERRIDES - BeTheme elements
   ============================================================ */

/* Primary accent colour */
a,
.themecolor,
.theme-custom .themecolor,
.post-meta a:hover,
.footer a:hover,
#menu > ul > li.current-menu-item > a,
#menu > ul > li.current_page_item > a,
#menu > ul > li.current-menu-ancestor > a {
  color: var(--clay-crimson);
}

a:hover {
  color: var(--clay-crimson-dark);
}

/* Buttons */
.button,
a.button,
button,
input[type="submit"],
.action_button,
a.action_button,
#Header a.action_button {
  background-color: var(--clay-crimson) !important;
  color: #FFFFFF !important;
  border: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover,
.action_button:hover,
a.action_button:hover,
#Header a.action_button:hover {
  background-color: var(--clay-crimson-dark) !important;
  transform: translateY(-1px);
}

/* Secondary / outline button variant */
.button-outline,
a.button-outline {
  background-color: transparent !important;
  color: var(--clay-crimson) !important;
  border: 1.5px solid var(--clay-crimson) !important;
}

.button-outline:hover,
a.button-outline:hover {
  background-color: var(--clay-crimson) !important;
  color: #FFFFFF !important;
}

/* Background accents */
.themebg,
.theme-custom .themebg,
.mcb-wrap-mfnuidelement .mcb-wrap-inner[class*="bg-"] {
  background-color: var(--clay-crimson);
}


/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */

#Header,
#Top_bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--clay-border-light);
}

/* Sticky header */
.header-fixed #Top_bar,
#Top_bar.is-sticky {
  background-color: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

/* Navigation links */
#menu > ul > li > a {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-black);
  padding: 0 18px;
  transition: color 0.25s ease;
}

#menu > ul > li > a:hover,
#menu > ul > li.hover > a {
  color: var(--clay-crimson);
}

/* Active nav indicator */
#menu > ul > li.current-menu-item > a,
#menu > ul > li.current_page_item > a,
#menu > ul > li.current-menu-ancestor > a {
  color: var(--clay-crimson);
  position: relative;
}

#menu > ul > li.current-menu-item > a::after,
#menu > ul > li.current_page_item > a::after,
#menu > ul > li.current-menu-ancestor > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background-color: var(--clay-crimson);
}

/* Dropdown menus */
#menu ul.sub-menu {
  background-color: #FFFFFF;
  border-top: 2px solid var(--clay-crimson);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

#menu ul.sub-menu li a {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--clay-text);
  padding: 10px 24px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#menu ul.sub-menu li a:hover {
  background-color: var(--clay-crimson-subtle);
  color: var(--clay-crimson);
}

/* Mega menu for Services */
#menu > ul > li.mfn-megamenu > ul.sub-menu {
  border-top: 2px solid var(--clay-crimson);
}

#menu > ul > li.mfn-megamenu > ul.sub-menu > li > a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--clay-crimson);
  text-transform: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--clay-border-light);
  padding-bottom: 12px;
  margin-bottom: 8px;
}


/* ============================================================
   4. HERO / PAGE HEADER
   ============================================================ */

#Subheader {
  background-color: var(--clay-black);
  padding: 80px 0;
}

#Subheader .title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

#Subheader ul.breadcrumbs {
  margin-top: 12px;
}

#Subheader ul.breadcrumbs li,
#Subheader ul.breadcrumbs li a {
  color: rgba(255, 255, 255, 0.6);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}

#Subheader ul.breadcrumbs li a:hover {
  color: #FFFFFF;
}


/* ============================================================
   5. CONTENT SECTIONS
   ============================================================ */

/* Section backgrounds */
.section-warm {
  background-color: var(--clay-warm-white);
}

.section-grey {
  background-color: var(--clay-grey);
}

.section-dark {
  background-color: var(--clay-black);
  color: #FFFFFF;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: #FFFFFF;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* Crimson accent line (used above section headings) */
.clay-accent-line::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--clay-crimson);
  margin-bottom: 16px;
}

.clay-accent-line-center::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--clay-crimson);
  margin: 0 auto 16px;
}

/* Practice area cards */
.clay-practice-card {
  background: #FFFFFF;
  padding: 32px;
  border: 1px solid var(--clay-border-light);
  border-radius: 2px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.clay-practice-card:hover {
  border-color: var(--clay-crimson);
  box-shadow: 0 4px 16px rgba(138, 23, 34, 0.08);
}

.clay-practice-card h3,
.clay-practice-card h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--clay-black);
}

.clay-practice-card:hover h3,
.clay-practice-card:hover h4 {
  color: var(--clay-crimson);
}

.clay-practice-card p {
  font-size: 15px;
  color: var(--clay-text-muted);
  text-align: left;
}

/* Industry sector cards */
.clay-industry-card {
  background: var(--clay-warm-white);
  padding: 24px;
  border-left: 3px solid var(--clay-crimson);
  transition: background-color 0.3s ease;
}

.clay-industry-card:hover {
  background: #FFFFFF;
}

/* Representative experience / case study placeholder */
.clay-case-study {
  background: var(--clay-warm-white);
  padding: 28px 32px;
  border-radius: 2px;
  margin-bottom: 20px;
  border: 1px solid var(--clay-border-light);
}

.clay-case-study .case-label {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay-crimson);
  margin-bottom: 8px;
  display: block;
}

.clay-case-study h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.clay-case-study p {
  font-size: 14px;
  color: var(--clay-text-muted);
  text-align: left;
}


/* ============================================================
   6. TEAM / PEOPLE SECTION
   ============================================================ */

.clay-team-member {
  text-align: center;
  padding: 24px;
}

.clay-team-member img {
  border-radius: 2px;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
  margin-bottom: 16px;
}

.clay-team-member:hover img {
  filter: grayscale(0%);
}

.clay-team-member h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  margin-bottom: 4px;
}

.clay-team-member .role {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay-crimson);
}


/* ============================================================
   7. FOOTER
   ============================================================ */

#Footer {
  background-color: var(--clay-black);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

#Footer .widgets_wrapper {
  padding: 60px 0 40px;
}

#Footer h1, #Footer h2, #Footer h3,
#Footer h4, #Footer h5, #Footer h6 {
  color: #FFFFFF;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

#Footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}

#Footer a:hover {
  color: var(--clay-crimson-light);
}

/* Footer bottom bar */
.footer_copy {
  background-color: #1E1E1E;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 13px;
}

.footer_copy a {
  color: var(--clay-crimson-light);
}

/* Footer tagline */
.clay-footer-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}


/* ============================================================
   8. FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  color: var(--clay-text);
  border: 1px solid var(--clay-border);
  background-color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--clay-crimson);
  outline: none;
  box-shadow: 0 0 0 3px var(--clay-crimson-subtle);
}


/* ============================================================
   9. BLOG / INSIGHTS
   ============================================================ */

.post-item .post-title h2 a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--clay-black);
}

.post-item .post-title h2 a:hover {
  color: var(--clay-crimson);
}

.post-item .post-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.7;
}

.post-item .post-meta {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay-text-muted);
}

/* Blog category tags */
.post-item .post-links .post-categories a {
  color: var(--clay-crimson);
}

/* Read more link */
.post-item .post-links .post-more a {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay-crimson);
}


/* ============================================================
   10. UTILITY CLASSES (for use in BeBuilder)
   ============================================================ */

/* Section padding */
.clay-section { padding: 80px 0; }
.clay-section-sm { padding: 48px 0; }
.clay-section-lg { padding: 120px 0; }

/* Text alignment helpers */
.clay-text-center { text-align: center; }
.clay-text-justify { text-align: justify; }

/* Crimson text */
.clay-crimson { color: var(--clay-crimson); }

/* Subtle divider */
.clay-divider {
  width: 48px;
  height: 2px;
  background: var(--clay-crimson);
  margin: 24px 0;
}

.clay-divider-center {
  width: 48px;
  height: 2px;
  background: var(--clay-crimson);
  margin: 24px auto;
}

/* Stats / numbers display */
.clay-stat {
  text-align: center;
  padding: 24px;
}

.clay-stat .number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--clay-crimson);
  line-height: 1;
  margin-bottom: 8px;
}

.clay-stat .label {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay-text-muted);
}


/* ============================================================
   11. RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {

  h1, body h1 { font-size: 32px; }
  h2, body h2 { font-size: 26px; }
  h3, body h3 { font-size: 22px; }

  #Subheader {
    padding: 48px 0;
  }

  #Subheader .title {
    font-size: 28px;
  }

  .clay-section { padding: 48px 0; }
  .clay-section-lg { padding: 60px 0; }

  blockquote, .blockquote {
    font-size: 18px;
  }

  .clay-stat .number {
    font-size: 36px;
  }

  .clay-practice-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {

  h1, body h1 { font-size: 28px; }
  h2, body h2 { font-size: 22px; }

  .button,
  a.button,
  .action_button,
  a.action_button {
    padding: 12px 24px;
    font-size: 13px;
  }
}


/* ============================================================
   12. PRINT STYLES
   ============================================================ */

@media print {
  #Header, #Footer, .footer_copy,
  .action_button, .button { display: none; }

  body { font-size: 12pt; color: #000; }

  a { color: #000; text-decoration: underline; }

  h1, h2, h3, h4 {
    color: #000;
    page-break-after: avoid;
  }
}
