:root {
  /* Spacing */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;

  /* Added color variables for consistent theming */
  /* Colors */
  --color-primary: #733e27;
  --color-primary-dark: #5a2f1e;
  --color-accent: #ba977d;
  --color-neutral-darkest: #2a2928;
  --color-neutral-dark: #424240;
  --color-neutral: #6b6459;
  --color-neutral-light: #d1baa5;
  --color-neutral-lighter: #d4cdc5;
  --color-neutral-lightest: #ebdfd3;
  --color-white: #ffffff;
}

.subpage-hero{
	margin-top:90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--color-primary);
	color:white;
	height: 25rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.subpage-hero:before{
    position: absolute;
    top:0;
    left:0;
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(66,66,64, .5);
    z-index: -1;
}


.subpage-hero h1{
    font-size: 6rem;
    text-align: center;
}

.subpage-content p{
    font-size: 18px;
    line-height: 1.6;
    color: #6b6459;
}

/*FEATURED PROFESSIONALS BASE STYLES*/

.professionals-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.professionals-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: #6b6459;
}

/* Professionals Grid */
.professionals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* Professional Card */
.professional-card {
    background: #ebdfd3;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px);
}

.professional-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.professional-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-content {
    padding: 30px;
}

.professional-name {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    color: #733e27;
    margin: 0 0 8px 0;
}

.professional-title {
    font-size: 14px;
    color: #ba977d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.professional-services {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.professional-services li {
    font-size: 14px;
    color: #6b6459;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.professional-services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ba977d;
}

.professional-social {
    margin-bottom: 15px;
}

.professional-social a {
    color: #733e27;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.professional-cta {
    display: inline-block;
    background: #733e27;
    color: #ebdfd3;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.professional-cta:hover {
    background: #5a2f1e;
}

/* ABOUT PAGE STYLES */

/* CONTACT PAGE STYLES */

.subpage-content .contact-card{
    background:var(--color-neutral-lightest)
}

.subpage-content .contact-card h3{
    color: var(--color-primary);
}



@media (max-width: 1024px) {

	.subpage-hero{
		margin-top:60px;
		height: 16rem;
	}

	/*FEATURED PROFESSIONALS TABLET*/

	.professionals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}

@media (max-width: 767px) {

    .subpage-hero h1{
        font-size: 3rem;
    }

	/*FEATURED PROFESSIONALS MOBILE*/
    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .professionals-intro {
        margin-bottom: 40px;
    }

    .professionals-intro p {
        font-size: 16px;
    }

    .professional-card:hover {
        transform: none;
    }
}
