/*
Theme Name: Apex Resolution
Theme URI: https://apexresolution.com
Author: Apex Resolution
Author URI: https://apexresolution.com
Description: A professional WordPress theme for Apex Resolution, a mediation practice dedicated to resolving complex business and financial disputes.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apexresolution
Tags: business, professional, mediation, legal
*/

:root {
    /* Colors from Figma */
    --color-primary: #223a30;
    /* Dark Green */
    --color-secondary: #18233a;
    /* Dark Blue */
    --color-accent: #c4a484;
    /* Optional Accent - Gold/Tan */
    --color-text-light: #faf9f7;
    --color-text-dark: #18233a;
    --color-bg-light: #faf9f7;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-cormorant: 'Cormorant Garamond', serif;

    /* Custom Spacing Constants (To be used instead of BS utilities) */
    --section-padding-top: 100px;
    --section-padding-bottom: 100px;
    --element-gap: 40px;
}

/* Base Reset & Styles */
body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Header & Navigation */
.header-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 0;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease, padding 0.3s ease;
}

.admin-bar .header-main{
    padding-top: 65px;
}

/* Sticky header state - shown when scrolling up */
.header-main.header-sticky {
    position: fixed !important;
    top: 0;
    background-color: rgba(251, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    transform: translateY(0);
}

.admin-bar .header-main.header-sticky{
    top: 32px;
}


/* Hidden header state - when scrolling down */
.header-main.header-hidden {
    position: fixed;
    transform: translateY(-100%);
}

/* Dark header for front page when sticky */
.front-page .header-main.header-sticky .logo-text,
.front-page .header-main.header-sticky .nav-link {
    color: var(--color-text-dark);
}

.front-page .header-main.header-sticky .nav-link:hover {
    color: var(--color-text-dark);
    opacity: 0.7;
}

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

.logo-link {
    text-decoration: none;
}

.logo-white img,
.logo-dark img {
    width: 250px;
    height: auto;
}

.logo-white {
    display: none;
}

.logo-dark {
    display: block;
}

.front-page .header-sticky .logo-dark,
.front-page .logo-white{
    display: block;
}

.front-page .header-sticky .logo-white,
.front-page .logo-dark {
    display: none;
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-size: 24px;
    /* Approx 1.5rem */
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    /* From Figma */
}

.menu-item a{
    color: var(--color-text-light);
    font-family: var(--font-cormorant);
    font-size: 20px;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.menu-item a:hover {
    color: var(--color-text-light);
}

.header-sticky .menu-item a{
	color:#18233A;
}


/* Hero Section */
.section-hero {
    background-color: var(--color-primary);
    background-image: url('images/apex-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-text-light);
	padding:395px 0;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 44.11%);
    z-index: 2;
}

/* .section-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/hex-pattern.png');
    background-repeat: repeat;
    opacity: 0.04;
    mix-blend-mode: multiply;
    z-index: 2;
} */

.section-hero .container {
    position: relative;
    z-index: 3;
}

/* Hero background video */
.section-hero-video {
    position: relative;
    overflow: hidden;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.section-hero-video .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-cormorant);
    font-size: 64px;
    max-width: 1330px;
    margin: 0 auto;
	font-weight:400;
    line-height: 1;
    letter-spacing: -1.28px;
    text-transform: uppercase;
}

/* About Section */
.section-about {
    padding: 200px 0 200px;
    /* Top L/R Bottom from Figma */
    background-color: var(--color-bg-light);
    position: relative;
}
.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 96px;
    background-color: var(--color-text-dark);
}

.section-practice-areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 96px;
    background-color: var(--color-secondary);
}


.about-content-wrapper {
    display: flex;
    align-items: flex-start;
    /* Top align image and text */
    gap: 80px;
    /* from Figma */
}

.about-image-col {
    flex: 0 0 432px;
    /* Fixed width from Figma */
    max-width: 432px;
}

.about-image-wrapper img {
    width: 100%;
    display: block;
    /* Aspect ratio? */
}

.about-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14px;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    padding-left: 23px;
    /* Align with text below */
}

.about-intro-block {
    border-left: 2px solid var(--color-text-dark);
    padding-left: 21px;
    margin-bottom: 37px;
    margin-left: 25px;
    margin-top: 15px;
}

.about-name {
    font-family: var(--font-cormorant);
    /* Fallback for Optima */
    font-size: 32px;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1;
    font-weight: 400;
    /* Regular/Light */
}

.about-intro-text {
    font-family: var(--font-cormorant);
    font-size: 20px;
    line-height: 1.6;
    /* 32.3px / 20px approx 1.6 */
    color: var(--color-text-dark);
    margin: 0;
}

.about-full-bio {
    padding-left: 23px;
    font-family: var(--font-cormorant);
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 40px;
}

.about-full-bio p {
    margin-bottom: 20px;
}

.about-actions {
    padding-left: 23px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-link-arrow {
    font-family: var(--font-cormorant);
    font-size: 19px;
    /* 19.2px */
    text-transform: uppercase;
    color: var(--color-text-dark);
    text-decoration: none;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.text-link-arrow:hover {
    opacity: 0.7;
}

/* Responsive About */


/* Experience Section (Unified) */
.section-experience-master {
    position: relative;
    background-color: var(--color-secondary);
    /* #18233a */
	background-color: var(--color-secondary);
	background:linear-gradient(0deg, #18233A, #18233A);
    color: var(--color-text-light);
    padding: 100px 0 100px;
    overflow: hidden;
}

.exp-background-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('images/experience-pattern.png');
    /* Hex Pattern */
    background-repeat: repeat;
    background-size: 242px auto;
    opacity: 0.34;
    mix-blend-mode: multiply;
    /* or normal with opacity? Figma said mix-blend-multiply opacity 0.34 over #18233a */
}

/* Gradient overlay on top of pattern? Figma context had complicated stacking. 
   Let's just use the hex pattern for texture. */

.section-experience-master .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    /* Constrain width */
}

.exp-intro {
    margin-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exp-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.8;
}

.exp-title {
    font-family: var(--font-cormorant);
    /* Fallback for Optima */
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.exp-title{
	margin-bottom:20px;
}

.exp-desc {
    font-family: var(--font-cormorant);
    font-size: 24px;
    max-width: 926px;
    line-height: 1.4;
    opacity: 0.9;
}

.exp-informed {
    margin-bottom: 80px;
}

.exp-informed-title {
    font-family: var(--font-cormorant);
	font-size: 24px;
	text-transform: uppercase;
	margin-bottom: 40px;
	font-weight:300;
}

.exp-informed-title em {
    font-style: italic;
    font-family: var(--font-cormorant);
}

.exp-informed-desc {
    font-family: var(--font-cormorant);
	font-size: 24px;
	max-width: 900px;
	margin: 0 auto;
	color: #fff;
}

.exp-list-wrapper {
    max-width: 936px;
    margin: 0 auto 165px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.exp-list-item {
    padding-left: 26px;
    border-left: 1px solid #FFFFFF;
    position: relative;
    text-align: left;
}

.exp-item-number {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
	color:#fff;
    display: block;
    margin-bottom: 8px;
	font-weight: 500;
}

.exp-item-title {
    font-family: var(--font-cormorant);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.exp-item-text {
    font-family: var(--font-cormorant);
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 0;
}

.exp-shaped-wrapper {
	display: flex;
	align-items: center;
	gap: 60px;
	padding: 100px 0;
}

.exp-shaped-content {
    flex: 1;
    text-align: left;
}

.exp-shaped-title {
    font-family: var(--font-heading);
    /* Or Cormorant? */
    font-size: 32px;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
	font-weight:300;
}

.exp-shaped-title em {
    font-style: italic;
}

.exp-shaped-desc {
	font-family: var(--font-cormorant);
	font-size: 20px;
	max-width: 457px;
}

.exp-shaped-image {
    flex: 1;
}

/* Experience Carousel Section */
.section-experience-carousel {
    background-color: var(--color-secondary);
    padding: 100px 0;
    color: var(--color-text-light);
}

.section-experience-carousel .exp-shaped-wrapper {
    padding: 0;
}

.experience-carousel .exp-shaped-content {
    position: relative;
}

.experience-carousel .owl-dots {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 0;
    padding: 0;
}

.experience-carousel .owl-dots .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.experience-carousel .owl-dots .owl-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.experience-carousel .owl-dots .owl-dot.active {
    background-color: var(--color-text-light);
    transform: scale(1.2);
}

.home-arrow-container{
	padding-top: 50px;
	text-align: center;
}
.home-arrow-container span{
	font-size: 24px;
    cursor: pointer;
}
.home-arrow-container a,
.home-arrow-container a:hover{
	text-decoration: none;
}

/* Practice Areas */
.section-practice-areas {
    padding-top: var(--section-padding-top);
    padding-bottom: var(--section-padding-bottom);
    background-color: var(--color-bg-light);
    text-align: center;
}

.section-subtitle-small {
    font-family: var(--font-body);
    font-size: 12px;
    /* Figma looked small */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
    color: var(--color-text-dark);
}

.section-title-large {
    font-size: 48px;
    /* Approx 3rem or 48px from visual */
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    /* Cinzel or Cormorant? Let's use Cinzel as it matches branding if not specified */
    color: var(--color-text-dark);
}

.section-practice-areas .section-title-large{
	font-size:32px;
	margin-bottom:20px;
	font-weight:300;
}

.practice-area-desc {
    max-width: 888px;
    /* Figma width */
    margin: 0 auto 80px;
    /* Spacer before grid */
    font-family: var(--font-cormorant);
    font-size: 20px;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.practice-grid {
    display: flex;
    height: 425px;
    gap: 15px;
    width: 100%;
}

.practice-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: flex-end;
    /* Align content bottom */
    justify-content: center;
    color: var(--color-text-light);
    cursor: pointer;
    flex: 1 1 0%;
    transition: flex 0.4s ease;
}

.practice-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.practice-card:hover img {
    transform: scale(1.05);
}

.practice-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.practice-card-content {
    position: relative;
    z-index: 3;
    padding: 0 20px 40px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.practice-card.practice-card-active .practice-card-content{
    text-align: left;
}

.practice-card.practice-card-active{
    align-items: stretch;
}

.practice-card.practice-card-active .practice-card-title-wrapper {
    padding: 40px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.practice-card.practice-card-active .practice-card-title-wrapper h3{
    width: 400px;
    position: relative;
    max-width: 100%;
}

.practice-card.practice-card-active .practice-card-title-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #FAF9F7;
}

.practice-card-active .practice-card-content::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #18233A 0%, #18233A 100%), linear-gradient(0deg, rgba(24, 35, 58, 0.91) 0%, rgba(24, 35, 58, 0.91) 100%);
    background-blend-mode: color, multiply, normal;
    opacity: 0.7;
}

.practice-card-title-wrapper{
    position: relative;
    z-index: 3;
}

.practice-card-title {
    font-family: var(--font-heading);
    /* Or Cormorant? Screenshot looks serif title */
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-arrow {
    font-size: 20px;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.practice-card:not(.practice-card-active):hover .card-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Expanded Content Styles */
.practice-card-expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
    width: 100%;
}

.practice-card-expanded-content p {
    margin-bottom: 16px;
    font-family: var(--font-cormorant);
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.practice-card-button {
    display: flex;
    width: 183.875px;
    height: 47px;
    padding: 13px 62px;
    justify-content: center;
    align-items: center;
    border: 1px solid #FAF9F7;
    color: var(--color-text-light);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

.practice-card-button:hover {
    border: 1px solid #FAF9F7;
    background: rgba(255, 255, 255, 0.39);
}

/* Active/Expanded State */
.practice-card.practice-card-active {
    flex: 3 1 0%;
}

.practice-card.practice-card-active .practice-card-expanded-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
    transition: opacity 0.5s ease 0.4s;
}

.practice-card.practice-card-active .card-arrow {
    display: none;
}

/* Collapsed State (when grid has active card) */
.practice-grid.has-active .practice-card:not(.practice-card-active) {
    flex: 0.5 1 0%;
    filter: grayscale(100%) opacity(0.5);
    transition: flex 0.4s ease, filter 0.3s ease;
}

.practice-grid.has-active .practice-card:not(.practice-card-active) .practice-card-title {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.practice-grid.has-active .practice-card:not(.practice-card-active) .card-arrow {
    opacity: 0;
}

/* Responsive Grid */


/* Contact Section */
.section-contact {
    padding: 120px 0;
    /* From Figma */
    background-color: #fbfaf9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-title {
    font-family: var(--font-cormorant);
    /* Fallback for Optima */
    font-size: 32px;
    text-transform: uppercase;
    color: var(--color-text-dark);
    /* #18233a */
    margin-bottom: 24px;
    letter-spacing: -0.32px;
}

.contact-desc {
    font-family: var(--font-cormorant);
    font-size: 17px;
    line-height: 1.3;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    max-width: 420px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.contact-logo img {
    width: 350px;
    height: auto;
    max-width: 100%;
    margin-left: -15px;
}

.detail-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-text-dark);
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.detail-text {
    font-family: var(--font-cormorant);
    font-size: 16px;
    color: var(--color-text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-text-dark);
    font-weight: 500;
}

.form-input {
    background-color: #faf9f7;
    border: 1px solid rgba(24, 35, 58, 0.12);
    /* Light border */
    border-radius: 2px;
    padding: 12px 16px;
    font-family: var(--font-cormorant);
    font-size: 16px;
    color: var(--color-text-dark);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-secondary);
}

.btn-submit {
    background-color: var(--color-secondary);
    /* #18233a */
    color: #faf9f7;
    border: 1px solid var(--color-secondary);
    padding: 14px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #223a30;
    border-color: #223a30;
}


/* Footer Section */
.footer-main {
    background-color: #223a30;
    /* Dark Primary */
    color: var(--color-text-light);
    /* #faf9f7 */
    padding: 80px 0;
    /* L/R padding to match main content */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 29px;
}

.footer-col-left {
    width: 388px;
    max-width: 100%;
}

.footer-bio {
    font-family: var(--font-cormorant);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.footer-contact {
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 58px;
}

.footer-contact strong{
	font-weight:500;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 16px;
	font-weight:600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    color: var(--color-text-light);
    text-decoration: none;
    font-family: var(--font-cormorant);
    font-size: 16px;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-family: var(--font-cormorant);
    font-size: 16px;
}

.footer-group-title {
    font-family: var(--font-cormorant);
    font-size: 16px;
    opacity: 0.8;
    display: block;
    margin-bottom: 8px;
}

.footer-sub-links {
    list-style: disc;
    /* Bullets */
    padding-left: 20px;
    margin-bottom: 16px;
}

.footer-sub-links li {
    font-family: var(--font-cormorant);
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align text top */
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}
.footer-bottom-left span{
    display: inline-block;
 	padding-left:6px;    
}
.footer-bottom-left span a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 24px;
}

.footer-bottom-center {
    display: flex;
    gap: 20px;
}

.footer-bottom-center a {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer-bottom-right {
    max-width: 450px;
    text-align: right;
}

.footer-bottom-left p,
.footer-bottom-right p{
	margin-bottom:0;
}



/* WordPress specific styles */
.contact-form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 2px;
}

.contact-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Gravity Forms styling to match theme */
.contact-form-wrapper .gform_wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.contact-form-wrapper .gform_wrapper .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.contact-form-wrapper .gform_wrapper .gfield {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.contact-form-wrapper .gform_wrapper .gfield_label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: var(--color-text-dark) !important;
    font-weight: 500 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.contact-form-wrapper .gform_wrapper .gfield_required {
    color: var(--color-text-dark) !important;
}

.contact-form-wrapper .gform_wrapper .ginput_container {
    margin: 0 !important;
}

.contact-form-wrapper .gform_wrapper input[type="text"],
.contact-form-wrapper .gform_wrapper input[type="email"],
.contact-form-wrapper .gform_wrapper input[type="tel"],
.contact-form-wrapper .gform_wrapper input[type="text"]:not([type="submit"]):not([type="button"]),
.contact-form-wrapper .gform_wrapper input[type="email"]:not([type="submit"]):not([type="button"]),
.contact-form-wrapper .gform_wrapper input[type="tel"]:not([type="submit"]):not([type="button"]),
.contact-form-wrapper .gform_wrapper .gfield input[type="text"],
.contact-form-wrapper .gform_wrapper .gfield input[type="email"],
.contact-form-wrapper .gform_wrapper .gfield input[type="tel"],
.contact-form-wrapper .gform_wrapper textarea,
.contact-form-wrapper .gform_wrapper .gfield textarea {
    background-color: #faf9f7 !important;
    border: 1px solid rgba(24, 35, 58, 0.12) !important;
    border-radius: 2px !important;
    padding: 12px 16px !important;
    font-family: var(--font-cormorant) !important;
    font-size: 16px !important;
    color: var(--color-text-dark) !important;
    outline: none !important;
    transition: border-color 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.contact-form-wrapper .gform_wrapper input[type="text"]:focus,
.contact-form-wrapper .gform_wrapper input[type="email"]:focus,
.contact-form-wrapper .gform_wrapper input[type="tel"]:focus,
.contact-form-wrapper .gform_wrapper .gfield input[type="text"]:focus,
.contact-form-wrapper .gform_wrapper .gfield input[type="email"]:focus,
.contact-form-wrapper .gform_wrapper .gfield input[type="tel"]:focus,
.contact-form-wrapper .gform_wrapper textarea:focus,
.contact-form-wrapper .gform_wrapper .gfield textarea:focus {
    border-color: var(--color-secondary) !important;
    outline: none !important;
    box-shadow: none !important;
}

.contact-form-wrapper .gform_wrapper textarea,
.contact-form-wrapper .gform_wrapper .gfield textarea {
    resize: none !important;
    min-height: 138px !important;
}

.contact-form-wrapper .gform_wrapper .gform_button,
.contact-form-wrapper .gform_wrapper input[type="submit"],
.contact-form-wrapper .gform_wrapper button[type="submit"] {
    background-color: var(--color-secondary) !important;
    color: #faf9f7 !important;
    border: 1px solid var(--color-secondary) !important;
    padding: 15.5px 32px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    border-radius: 2px !important;
    width: auto !important;
    display: inline-block !important;
}

.contact-form-wrapper .gform_wrapper .gform_button:hover,
.contact-form-wrapper .gform_wrapper input[type="submit"]:hover,
.contact-form-wrapper .gform_wrapper button[type="submit"]:hover {
    background-color: #223a30 !important;
    border-color: #223a30 !important;
}

.contact-form-wrapper .gform_wrapper .gform_validation_errors {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    padding: 12px !important;
    border-radius: 2px !important;
    margin-bottom: 20px !important;
}

.contact-form-wrapper .gform_wrapper .gfield_validation_message {
    color: #721c24 !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    font-family: var(--font-body) !important;
}

.contact-form-wrapper .gform_wrapper .gform_confirmation_message {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
    padding: 12px !important;
    border-radius: 2px !important;
    margin-top: 20px !important;
    font-family: var(--font-body) !important;
}

/* Override Gravity Forms default styles */
.contact-form-wrapper .gform_wrapper * {
    box-sizing: border-box;
}

.contact-form-wrapper .gform_wrapper .gfield_description {
    font-size: 14px !important;
    color: var(--color-text-dark) !important;
    opacity: 0.8 !important;
    margin-top: 5px !important;
}

/* Remove default Gravity Forms styling */
.contact-form-wrapper .gform_wrapper .gfield input,
.contact-form-wrapper .gform_wrapper .gfield select,
.contact-form-wrapper .gform_wrapper .gfield textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

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

.button-navigation {
    padding: 0;
    text-align: right;
}

.gform_required_legend,
.gfield_required{
    display: none !important;
}
.site-tagline {
    font-family: var(--font-cormorant);
    font-size: 22px;
    color: #fff;
}
.header-sticky .site-tagline {
    color: var(--color-text-dark);
}
@media (max-width: 1200px) {
    .practice-card-expanded-content p{
        font-size: 17px;
    }
    .about-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .about-image-col {
        width: 100%;
        max-width: 432px;
    }

    .about-text-col {
        width: 100%;
    }
	
	.section-contact,
    .footer-main {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-top {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
	
	.section-hero {
		padding: 195px 0 150px;
	}
	.hero-title {
		font-size: 50px;
	}
	.practice-card-title {
		font-size: 18px;
	}
	.practice-card-content {
		padding: 0 5px 40px;
	}
	.section-about {
		padding: 180px 0 80px;
	}
	.exp-shaped-wrapper {
		padding: 0 0 50px;
	}
	.section-contact {
		padding: 80px 0;
	}
	.contact-desc {
		max-width: 100%;
	}
	.footer-col-right{
		padding-top:40px;
	}
	.footer-col-right .row{
		width:100%;
	}
	.footer-bottom{
		justify-content:center;
		text-align:center;
	}
	.footer-bottom-right {
		max-width: 100%;
		text-align: center ! IMPORTANT;
		margin-top: 10px !important;
	}
}

/* Responsive Experience */
@media (max-width: 992px) {
	.about-image-wrapper {
        margin-bottom: 40px;
    }
	.about-actions {
		padding-left: 0;
	}
	.about-full-bio {
		padding-left: 0;
	}
	.about-intro-block {
		margin-left: 0;
	}
	.about-subtitle {
		padding-left: 0;
	}
	
	
    .exp-list-wrapper {
        padding: 0 20px;
    }

    .exp-shaped-wrapper {
        flex-direction: column;
    }

    .exp-shaped-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .practice-grid {
        flex-wrap: wrap;
        height: auto;
    }

    .practice-card {
        height: 400px;
        /* flex: 1 1 calc(50% - 7.5px); */
    }
    
    .practice-grid.has-active .practice-card:not(.practice-card-active) {
        flex: 0.3 1 0%;
        min-width: 80px;
    }
    
    .practice-card.practice-card-active {
        flex: 2.5 1 0%;
    }
	.hero-title {
        font-size: 2.5rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
	.about-actions {
		padding-left: 0;
	}
	.exp-list-wrapper {
        padding: 0 0;
    }
	.about-full-bio {
		padding-left: 0;
	}
	.about-intro-block {
		margin-left: 0;
	}
	.about-subtitle {
		padding-left: 0;
	}
	.about-image-wrapper{
		margin-bottom:20px;
	}

    .practice-grid {
        flex-direction: column;
        height: auto;
    }
    
    .practice-card {
        width: 100%;
        height: 300px;
        flex: 1 1 auto;
    }
    
    .practice-card.practice-card-active {
        height: auto;
        min-height: 400px;
        flex: 1 1 auto;
    }
    
    .practice-grid.has-active .practice-card:not(.practice-card-active) {
        height: 150px;
        flex: 0 0 auto;
    }
    
    .practice-grid.has-active {
        flex-direction: column;
    }
	
    .header-main {
        padding: 20px 0;
    }

    .header-main.header-sticky {
        padding: 15px 20px;
    }

    .section-contact,
    .footer-main,
    .section-experience-master {
        padding: 60px 0;
    }

    .header-content {
        gap: 20px;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .hero-title {
        font-size: 36px;
        padding: 0 20px;
    }

    .footer-col-right {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    .footer-bottom-right {
        text-align: center;
    }

    .exp-shaped-image {
        display: none;
    }

    /* Simplified for mobile */
}

@media (max-width: 767px) {
    .practice-card.practice-card-active .practice-card-title-wrapper h3{
        width: 100%;
    }
    .practice-card.practice-card-active .practice-card-title-wrapper h3::after {
        display: none;
    }
    .practice-card-expanded-content p{
        font-size: 16px;
    }
	.exp-intro {
		margin-bottom: 80px;
	}
	.exp-shaped-wrapper {
        padding: 0 0 25px;
    }
	.home-arrow-container {
		padding-top: 0;
	}
	.exp-list-wrapper {
        margin: 0 auto 100px;
    }
	.footer-col-right {
        padding-top: 0;
    }
	.footer-nav-col{
		padding-top:40px;	
	}
	.footer-contact {
		margin-bottom: 18px;
	}
	.header-main.header-sticky {
        padding: 15px 0;
    }
	.section-about::before {
        display: none;
	}
	.section-about {
        padding: 0 0 80px;
    }
	.section-practice-areas {
		padding-top: 80px;
		padding-bottom: 80px;
	}
	.logo-text {
		font-size: 15px;
	}
	.section-hero {
        padding: 113px 0 80px;
    }
	.hero-title {
        font-size: 34px;
        padding: 0 0;
    }
}