/* ==========================================================================
   Katerina Dafini Psychotherapy — site styles
   Extracted from the original inline <style> block.
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nobile', sans-serif;
    line-height: 1.6;
    color: #405449;
    background-color: #DEEEE1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    color: white;
    padding: 100px 0;
    text-align: center;
}

/* Image optimization - add loading attributes */
img {
    max-width: 100%;
    height: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/responsive/hero-bg-1200w.jpg') center/cover;
    filter: brightness(0.3) contrast(1.2);
    z-index: -1;
}

@media (max-width: 768px) {
    .hero::before {
        background: url('../images/responsive/hero-bg-768w.jpg') center/cover;
    }
}

@media (max-width: 480px) {
    .hero::before {
        background: url('../images/responsive/hero-bg-480w.jpg') center/cover;
    }
}

.hero h1, .hero p {
    color: white;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #438951;
    color: white !important;
}

.btn-primary:hover {
    background-color: #3a7545;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: #438951;
}

/* --- Generic sections ---------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #3B4540;
    text-align: left;
}

.section h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #405449;
}

.grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* --- "What Is Psychotherapy?" -------------------------------------------- */
.therapy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 50px;
}

.therapy-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.therapy-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.therapy-cards h2 {
    text-align: left;
    margin-bottom: 30px;
}

.therapy-icon {
    width: 3em;
    height: 3em;
    background-color: #438951;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
}

.therapy-icon img {
    width: 60%;
    height: 60%;
    filter: brightness(0) invert(1);
}

.card {
    background: #e8f3e8;
    padding: 30px;
    border-radius: 12px;
}

/* --- About --------------------------------------------------------------- */
.about {
    background-color: #D1E7D2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: top;
}

.about img {
    width: 100%;
    border-radius: 12px;
}

/* --- Contact ------------------------------------------------------------- */
.contact {
    background-color: white;
    color: #405449;
}

.contact h2 {
    color: #3B4540;
    text-align: center;
    margin-bottom: 20px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

.contact-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-left: 6px solid #438951;
    border-radius: 12px;
    padding: 30px;
}

.contact-card h3 {
    color: #3B4540;
    margin-bottom: 20px;
}

.contact-card a {
    color: #438951;
    text-decoration: underline;
}

/* --- Fees & Sessions ----------------------------------------------------- */
.prices {
    background-color: #D1E7D2;
}

.prices h2 {
    text-align: center;
    color: #3B4540;
}

.prices-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #405449;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.price-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-top: 6px solid #438951;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.price-card h3 {
    color: #3B4540;
    margin-bottom: 10px;
    /* Reserve two lines so single-line titles (e.g. "Couple Sessions")
       align their price row with the two-line titles beside them. */
    min-height: 3.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-amount {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #438951;
    line-height: 1.1;
    margin-bottom: 18px;
}

.price-unit {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7c72;
    margin-top: 4px;
}

.price-body {
    color: #405449;
    font-size: 0.98rem;
}

.prices-notes {
    text-align: center;
    margin-top: 40px;
    color: #405449;
}

.price-consultation {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #3B4540;
    margin-bottom: 10px;
}

.price-concession {
    font-size: 0.98rem;
    margin-bottom: 10px;
}

.price-payment {
    font-size: 0.98rem;
}

.contact-card .btn {
    margin-top: 20px;
}

/* --- Accreditation ------------------------------------------------------- */
.accreditation {
    background-color: #f8f8f8;
}

.accreditation h2 {
    text-align: center;
    margin-bottom: 20px;
}

.accreditation-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.accreditation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.accreditation-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.accreditation-text a {
    color: #438951;
    text-decoration: underline;
}

.accreditation-logos {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.accreditation-logos img {
    max-height: 80px;
    width: auto;
}

/* --- Scroll reveal ------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Greek section ------------------------------------------------------- */
.greek-section {
    background: url('../images/bromley-aerial.jpg') center/cover;
    padding: 80px 0;
}

.greek-content {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 60px 40px;
    color: #405449;
}

.greek-content h2 {
    color: #3B4540;
    text-align: center;
    margin-bottom: 50px;
}

.greek-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.greek-column h3 {
    color: #438951;
    margin-bottom: 15px;
    margin-top: 30px;
}

.greek-column h3:first-child {
    margin-top: 0;
}

/* --- "Begin today" (styles retained from original; markup not present) --- */
.begin-today {
    background-color: #f8f8f8;
}

.begin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.begin-left h2 {
    text-align: left;
    margin-bottom: 30px;
}

.begin-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.begin-card {
    background-color: #e8f3e8;
    padding: 25px;
    border-radius: 12px;
}

.wide-card {
    grid-column: 1 / -1;
}

.begin-card h3 {
    color: #3B4540;
    margin-bottom: 15px;
}

.begin-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline-green {
    border: 2px solid #438951;
    color: #438951;
    background: transparent;
}

.btn-outline-green:hover {
    background-color: #438951;
    color: white;
}

.begin-image img {
    width: 100%;
    border-radius: 12px;
}

/* --- Group therapy ------------------------------------------------------- */
.group-therapy {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/group-therapy-bg.jpg') center/cover;
    color: white;
}

.group-therapy-content {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    color: #405449;
}

.group-therapy h2 {
    color: #3B4540;
    text-align: center;
    margin-bottom: 50px;
}

.group-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.group-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    text-align: left;
    align-items: start;
}

.group-card-content h3 {
    color: #3B4540;
    margin-bottom: 15px;
}

.group-icon {
    width: 44px;
    height: 44px;
    background-color: #e8f3e8;
    border-radius: 8px;
    flex-shrink: 0;
}

/* --- Locations (styles retained from original; markup not present) ------- */
.locations {
    background-color: #4A644E;
    color: white;
}

.locations h2 {
    color: white;
    text-align: left;
    margin-bottom: 40px;
}

.locations-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.locations-image img {
    width: 100%;
    border-radius: 12px;
}

.locations-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-card {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 25px;
}

.location-card h3 {
    color: #BFE0C5;
    margin-bottom: 15px;
}

/* --- Contact steps (styles retained from original; markup not present) --- */
.contact-steps {
    background-color: #f5f5f5;
}

.contact-steps-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-image img {
    width: 100%;
    border-radius: 12px;
}

.contact-steps h2 {
    text-align: left;
    margin-bottom: 40px;
}

.steps {
    margin-bottom: 30px;
}

.step {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #438951;
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    color: #438951;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.step h3 {
    color: #438951;
    margin-bottom: 10px;
}

.ready-callout {
    background-color: #BFE0C5;
    padding: 20px;
    border-radius: 12px;
    color: #3B4540;
}

/* --- Footer -------------------------------------------------------------- */
.footer {
    background-color: #3B4540;
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* --- Responsive layout collapse ------------------------------------------ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .about-content, .therapy-content, .locations-content, .contact-steps-content, .greek-grid, .begin-content, .contact-cards, .accreditation-content {
        grid-template-columns: 1fr;
    }

    .grid-3, .group-cards {
        grid-template-columns: 1fr;
    }

    .begin-cards {
        grid-template-columns: 1fr;
    }

    .accreditation-logos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Contact form (styles retained from original; markup not present) ---- */
.form-toggle {
    display: none;
}

.form-toggle + label {
    cursor: pointer;
    display: inline-block;
}

.form-toggle + label::after {
    content: " ▼";
    transition: all 0.3s;
}

.form-toggle:checked + label::after {
    content: " ▲";
}

.contact-form {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: left;
    display: none;
    transition: all 0.3s ease;
}

.form-toggle:checked ~ .contact-form {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #438951;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.contact-success {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* --- Office / "Visit the Practice" block -------------------------------- */
.office-block {
    align-items: center;
    margin-top: 60px;
}

.office-block .contact-image img {
    max-height: 360px;
    object-fit: cover;
}

.office-details h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    color: #405449;
    margin-bottom: 16px;
}

.office-details p {
    font-size: 1.1rem;
    line-height: 1.7;
}
