/*
Theme Name: Listening Ear Theme
Theme URI: 
Author: Your Name
Author URI: 
Description: A Bootstrap 5 theme for a mental health therapy service
Version: 1.0
License: GNU General Public License v2 or later
Tags: bootstrap, therapy, mental-health
*/

/* === RESET / NORMALIZE === */
/**
custom normalize.css for breakdance.
based on normalize.css with the following changes.
if you modify, dont forget to update normalize.min.css. there's no build process.
*/

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: white;
  font-family: system-ui, -apple-system,
    "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace;
  font-size: 1em;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

html {
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/* === VARIABLES === */
:root {
    --color-primary: #1C1C1C;
    --color-green: #849660;
    --color-secondary: #6B6460;
    --color-accent: #C9A03A;
    --color-light: #EDE5CF;
    --color-dark: #656262;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

/* === BASE === */
body {
    font-family: var(--font-body);
    color: var(--color-dark);
}

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

/* === NAVBAR — DEFAULT (inner pages) === */
.navbar {
    position: relative;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    z-index: 100;
}

.navbar-brand {
    color: var(--color-primary) !important;
    font-weight: 600;
}

.nav-link {
    color: var(--color-primary) !important;
    position: relative;
}

.nav-link:hover {
    color: var(--color-secondary) !important;
}

.nav-link.active {
    color: var(--color-primary) !important;
}

.nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    background-color: var(--color-green);
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
}

.navbar-toggler {
    border-color: rgba(0,0,0,0.2);
}

/* === NAVBAR — TRANSPARENT (front page & contact page) === */
.home .navbar,
.has-transparent-nav .navbar {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: none;
}

.home .navbar-brand,
.has-transparent-nav .navbar-brand {
    color: var(--color-accent) !important;
}

.home .nav-link,
.has-transparent-nav .nav-link {
    color: #fff !important;
}

.home .nav-link:hover,
.has-transparent-nav .nav-link:hover {
    color: rgba(255,255,255,0.75) !important;
}

.home .nav-link.active,
.has-transparent-nav .nav-link.active {
    color: #fff !important;
}

.home .nav-link.active::after,
.has-transparent-nav .nav-link.active::after {
    background-color: var(--color-accent);
}

.home .navbar-toggler,
.has-transparent-nav .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    background-image: url('assets/images/rocks.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

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

/* === BUTTONS === */
.btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:first-child:active {
    background-color: #b38a2e;
    border-color: #b38a2e;
    color: #fff;
}

/* === SECTIONS === */
.about {
    background-color: #fff;
}

.about h2 {
    color: var(--color-accent);
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li::before {
    content: '•';
    color: var(--color-accent);
    margin-right: 0.5em;
}

.services {
    background-color: var(--color-green);
    color: #fff;
}

.services-heading {
    font-weight: 700;
    color: #fff;
}

.services-tabs {
    gap: 0.5rem;
    flex-wrap: wrap;
    border: none;
}

.services-tab {
    background: none;
    border: none;
    color: #fff;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.services-tab.active {
    background-color: var(--color-accent);
    color: #fff;
}

.services-tab:not(.active):hover {
    background-color: rgba(255,255,255,0.15);
}

.contact {
    background-color: #F5F5F5;
}

.contact-heading {
    font-weight: 700;
    color: var(--color-accent);
}

.contact-subtext {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.contact iframe {
    border-radius: 8px;
}

/* === WHY SECTION === */
.why {
    background-color: var(--color-light);
}

.why h2 {
    color: var(--color-accent);
}

.why-intro {
    max-width: 680px;
    color: var(--color-secondary);
}

.why-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.why-item h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* === FOOTER === */
footer {
    background-color: var(--color-accent);
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 0.75;
}

.lead {
    font-size: 1.25rem;
    color: #EFBB19D9;
}

#hero-title {
    font-size: 75px;
    color: #EFBB19D9;
}

/* === RESPONSIVE === */

/* Transparent navbar — give collapsed menu a dark background on mobile */
@media (max-width: 991px) {
    .home .navbar .navbar-collapse,
    .has-transparent-nav .navbar .navbar-collapse {
        background-color: var(--color-primary);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
}

@media (max-width: 767px) {
    /* Hero */
    #hero-title {
        font-size: 3rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* About page intro */
    .about-intro-heading {
        font-size: 1.8rem;
    }

    /* Services page */
    .services-page-heading {
        font-size: 2rem;
    }

    .service-heading {
        font-size: 1.6rem;
    }

    /* Contact & Services page hero */
    .contact-page-hero-title,
    .services-hero-title {
        font-size: 2.2rem;
    }

    .contact-page-heading {
        font-size: 1.6rem;
    }

    /* General section headings */
    .about h2,
    .why h2,
    .contact-heading,
    .latest-posts-heading,
    .quals-heading,
    .story-heading {
        font-size: 1.6rem;
    }

    /* Testimonial quote marks */
    .tq {
        font-size: 2rem;
    }

    /* Subscribe form stacks on small screens */
    .subscribe-form {
        flex-direction: column;
    }
}


/* === HOME PAGE — CONSTRAIN CONTENT WIDTH === */
.home .about .container,
.home .why .container,
.home .services .container,
.home .contact .container {
    max-width: 1100px;
}

/* === ABOUT PAGE — CONSTRAIN CONTENT WIDTH === */
.page-template-page-about-php .about-intro .container,
.page-template-page-about-php .testimonials .container,
.page-template-page-about-php .latest-posts .container {
    max-width: 1100px;
}

/* === CONTACT PAGE — CONSTRAIN CONTENT WIDTH === */
.contact-page .container {
    max-width: 1100px;
}

/* === SERVICES PAGE — CONSTRAIN CONTENT WIDTH === */
.service-section .container,
.services-page-title .container {
    max-width: 1100px;
}

/* === ABOUT INTRO === */
.about-intro {
    background-color: #fff;
}

.about-intro-heading {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

/* === TESTIMONIALS === */
.testimonials {
    background-color: var(--color-light);
}

.testimonial-avatar-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-accent);
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-body {
    position: relative;
    border: none;
    padding: 0;
    margin: 0 0 1rem;
}

.testimonial-body p {
    color: var(--color-dark);
    font-size: 0.95rem;
    margin: 0;
}

.tq {
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: var(--color-accent);
    font-family: Georgia, serif;
}

.tq-open {
    margin-bottom: -1.5rem;
}

.tq-close {
    margin-top: 0rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.1rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-bottom: 0;
}

/* === LATEST POSTS === */
.latest-posts {
    background-color: #F5F5F5;
}

.latest-posts-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.latest-posts-sub {
    color: var(--color-secondary);
}

.subscribe-input {
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 0.55rem 1.1rem;
}

.subscribe-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(201,160,58,0.2);
}

.btn-subscribe {
    background-color: var(--color-secondary);
    color: #fff;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    white-space: nowrap;
}

.btn-subscribe:hover {
    filter: brightness(0.9);
    color: #fff;
}

.post-card {
    padding: 0.5rem 0;
}

.post-date {
    font-size: 0.875rem;
    color: var(--color-secondary);
    margin-bottom: 0.3rem;
}

.post-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--color-accent);
}

.post-excerpt {
    color: var(--color-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.post-readmore {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.post-readmore:hover {
    text-decoration: underline;
}

/* === SERVICES PAGE === */
.services-hero {
    min-height: 45vh;
    background-image: url('assets/images/01edf76e-2dbd-4f51-a715-25c2a3e9a426.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.service-beige {
    background-color: var(--color-light);
}

.service-white {
    background-color: #fff;
}

.service-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.service-tagline {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.service-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.service-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--color-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.service-feature h5 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
}

.service-feature p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* === CONTACT PAGE === */
.page-template-page-contact-php .navbar {
    position: absolute;
    background-color: transparent;
    box-shadow: none;
}

.contact-page-hero {
    min-height: 45vh;
    background-image: url('assets/images/01edf76e-2dbd-4f51-a715-25c2a3e9a426.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.contact-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
}

.contact-page-hero .container {
    position: relative;
    z-index: 1;
}

.contact-page-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.contact-page {
    background-color: #F5F5F5;
}

.contact-page-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.contact-page-intro {
    color: var(--color-secondary);
    margin-bottom: 1.75rem;
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-dark);
}

.contact-details-list i {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.contact-details-list a {
    color: var(--color-accent);
    text-decoration: none;
}

.contact-details-list a:hover {
    text-decoration: underline;
}

.contact-form-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* === CONTACT FORM 7 === */
.wpcf7-form p {
    margin-bottom: 1.25rem;
}

.wpcf7-form label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201,160,58,0.15);
}

.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    background-color: var(--color-accent);
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 0.65rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #b38a2e;
}

/* Validation messages */
.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-form .wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: #eaf5ea;
    color: #2d6a2d;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
    background-color: #fdf0f0;
    color: #c0392b;
}