/*
Theme Name: Goat Marketing Pros
Theme URI: https://goatmarketing.com
Author: Jerry Schrader
Author URI: https://goatmarketing.com
Description: Professional legal marketing WordPress theme with custom styling
Version: 2.0
License: Private
Text Domain: goat-marketing
/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --medium-gray: #6b6b6b;
    --light-gray: #b8b8b8;
    --lighter-gray: #e5e5e5;
    --white: #ffffff;
    --accent-gray: #4a4a4a;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

a {
    color: var(--primary-black);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--medium-gray);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===================================
   Layout - Custom Grid System
   =================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { width: 8.333%; }
.col-2 { width: 16.666%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-5 { width: 41.666%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333%; }
.col-8 { width: 66.666%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333%; }
.col-11 { width: 91.666%; }
.col-12 { width: 100%; }

/* Responsive columns */
@media (min-width: 768px) {
    .col-md-1 { width: 8.333%; }
    .col-md-2 { width: 16.666%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-5 { width: 41.666%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333%; }
    .col-md-8 { width: 66.666%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.333%; }
    .col-md-11 { width: 91.666%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { width: 8.333%; }
    .col-lg-2 { width: 16.666%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-5 { width: 41.666%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333%; }
    .col-lg-8 { width: 66.666%; }
    .col-lg-9 { width: 75%; }
    .col-lg-10 { width: 83.333%; }
    .col-lg-11 { width: 91.666%; }
    .col-lg-12 { width: 100%; }
}

/* Flex utilities */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-xl); }

.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-black);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-black);
    color: var(--primary-black);
    padding: 10px 30px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-black);
    color: var(--white);
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    background-color: var(--primary-black);
    border-bottom: 1px solid var(--dark-gray);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-logo:hover {
    color: var(--light-gray);
}

/* Custom logo */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Main Navigation */
.main-navigation {
    display: none;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    color: var(--white);
}

.main-navigation a:hover {
    color: var(--light-gray);
}

/* Dropdown menu */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white);
    border: 1px solid var(--lighter-gray);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    text-transform: none;
    font-size: 0.9rem;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--lighter-gray);
    color: var(--primary-black);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle span:not(:last-child) {
    margin-bottom: 5px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid var(--lighter-gray);
}

.mobile-navigation a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-navigation .sub-menu {
    padding-left: 20px;
}

.mobile-navigation .sub-menu a {
    font-size: 1rem;
    text-transform: none;
    padding: 10px 0;
}

/* Show desktop menu on large screens */
@media (min-width: 992px) {
    .main-navigation {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,.02) 10px,
        rgba(255,255,255,.02) 20px
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: var(--light-gray);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 80px 0;
}

.section-gray {
    background-color: #f8f9fa;
}

.section-dark {
    background-color: var(--secondary-black);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Cards
   =================================== */
.service-card {
    background: var(--white);
    border: 1px solid var(--lighter-gray);
    border-radius: 8px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--primary-black);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   Stats Section
   =================================== */
.stats-item {
    text-align: center;
    padding: 2rem;
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--light-gray);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: var(--secondary-black);
    color: var(--light-gray);
    padding: 60px 0 30px;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    border: 1px solid var(--lighter-gray);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-black);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.is-invalid {
    border-color: #dc3545;
}

/* Forminator plugin overrides */
.forminator-ui {
    font-family: inherit;
}

.forminator-label {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.forminator-input,
.forminator-textarea,
.forminator-select {
    border: 1px solid var(--lighter-gray);
    border-radius: 4px;
    padding: 12px 16px;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.forminator-input:focus,
.forminator-textarea:focus,
.forminator-select:focus {
    border-color: var(--primary-black);
    outline: none;
}

.forminator-button {
    background-color: var(--primary-black);
    color: var(--white);
    border: none;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forminator-button:hover {
    background-color: var(--dark-gray);
}

/* ===================================
   Pagination
   =================================== */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--lighter-gray);
    border-radius: 4px;
    color: var(--primary-black);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
}

.pagination .current {
    background-color: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .stats-number {
        font-size: 2.25rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hide-desktop {
    display: block;
}

.hide-mobile {
    display: none;
}

@media (min-width: 992px) {
    .hide-desktop {
        display: none;
    }
    
    .hide-mobile {
        display: block;
    }
}

.shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.shadow-lg {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Logo and Phone Wrapper for Mobile */
.logo-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Header Phone Styling */
.header-phone .phone-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 2px solid #ffffff;
    border-radius: 8px;
}

.header-phone .phone-link:hover {
    background-color: #ffffff;
    color: #000000;
}

.header-phone .phone-link svg {
    transition: transform 0.3s ease;
}

.header-phone .phone-link:hover svg {
    transform: scale(1.1);
}

/* Mobile: Show phone under logo, hide desktop version */
.header-phone-mobile {
    display: block;
    margin-top: 0.75rem;
}

.header-phone-desktop {
    display: none;
}

/* Desktop: Hide mobile version, show phone to the right */
@media (min-width: 992px) {
    .logo-phone-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .header-phone-mobile {
        display: none;
    }
    
    .header-phone-desktop {
        display: block;
        margin-left: 1.5rem;
    }
    
    .header-phone .phone-link {
        font-size: 1.125rem;
        padding: 10px 20px;
    }
    
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Footer Bottom Styling */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
}

.footer-phone {
    display: flex;
    align-items: center;
}

.footer-phone a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Desktop: Side by side */
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-black);
        transition: left 0.3s ease;
        padding: 2rem;
        overflow-y: auto; /* Enable scrolling if content is too long */
        z-index: 999;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        display: flex !important; /* Force display */
        width: 100%;
    }

    .main-navigation li {
        margin: 1rem 0;
        width: 100%;
        display: block !important; /* Force display */
    }
    
    .main-navigation li a {
        font-size: 1.125rem;
        padding: 1rem 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--color-medium-gray);
        margin-top: 0.5rem;
        padding-left: 1rem;
        display: none; /* Hide by default */
    }
    
    .main-navigation .menu-item-has-children.active .sub-menu {
        display: block;
    }
    
    /* Add body overflow hidden when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

/* Fix mobile navigation top position */
.mobile-navigation.active {
    top: 130px !important;
}

/* Make sure mobile navigation doesn't cover content */
@media (max-width: 768px) {
    .mobile-navigation {
        top: 130px;
    }
}

/* services page */
.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
}

.service-icon i {
  font-size: 36px;
  color: #ffffff;
}

/* about page **/
.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
}

.value-icon i {
  font-size: 36px;
  color: #ffffff;
}