/*
Theme Name: Christian Counselling
Theme URI: https://christian-counselling.com.au
Description: Modern, calming one-page theme for Christian Counselling services
Version: 1.0
Author: AMT Digital
Author URI: https://amtdigital.com.au
*/

/* ===== CSS Variables ===== */
:root {
    --primary-color: #5B8FA3;
    --primary-dark: #4A7285;
    --secondary-color: #8FAAAA;
    --accent-color: #C9A87C;
    --text-dark: #2C3E50;
    --text-body: #4A5568;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(91, 143, 163, 0.08);
    --shadow-md: 0 4px 20px rgba(91, 143, 163, 0.12);
    --shadow-lg: 0 8px 30px rgba(91, 143, 163, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', Georgia, serif;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* ===== Container & Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-light);
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.site-logo img {
    height: 69px;
    width: auto;
}

.header-contact {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.contact-name {
    font-weight: 600;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

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

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

/* ===== Hero Section ===== */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(91, 143, 163, 0.08), transparent 70%);
    pointer-events: none;
}

/* Hero with background image */
.hero-has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-has-image::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(91, 143, 163, 0.7));
    z-index: 1;
}

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

.hero-has-image h1,
.hero-has-image .hero-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: backwards;
}

/* ===== Services Section ===== */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.services-intro h2 {
    margin-bottom: 1.5rem;
}

.services-intro p {
    padding: 0 0.5rem;
}

/* Team Section */
.team-section {
    margin: 4rem 0;
    background: var(--bg-light);
    padding: 4rem 0;
    border-radius: 20px;
}

.team-heading {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
}

.counsellors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.counsellor-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.counsellor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.counsellor-photo-large {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.counsellor-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.counsellor-content {
    padding: 2rem;
}

.counsellor-content h4 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.counsellor-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.counsellor-quote-text {
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    font-weight: 500;
}

.counsellor-quote-text::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.counsellor-bio {
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.counsellor-bio p {
    margin-bottom: 1rem;
}

.counsellor-contact-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.counsellor-contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.counsellor-contact-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.counsellor-contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.counsellor-contact-info a:hover {
    text-decoration: underline;
}

/* Legacy single counsellor quote (kept for backwards compatibility) */
.counsellor-quote {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
}

.counsellor-photo {
    flex-shrink: 0;
}

.counsellor-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light);
}

.quote-content {
    flex: 1;
}

.quote-text {
    font-size: 2.2rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.quote-author {
    font-weight: 600;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.service-card p {
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ===== About Section ===== */
.about-section {
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.about-text {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

.qualifications {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.qualifications h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.qualifications li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-body);
    line-height: 1.6;
}

.qualifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== Contact Section ===== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

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

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.contact-info {
    color: white;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-content h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-info-content p,
.contact-info-content a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-info-content a:hover {
    color: white;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
}

.site-footer a {
    color: var(--accent-color);
}

.site-footer a:hover {
    color: white;
}

/* ===== Forminator Form Styling ===== */
.contact-form .forminator-ui,
.contact-form .forminator-custom-form {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.contact-form .forminator-row {
    margin-bottom: 1.5rem;
}

.contact-form .forminator-field {
    margin-bottom: 0 !important;
}

.contact-form .forminator-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
}

.contact-form .forminator-input,
.contact-form .forminator-textarea,
.contact-form .forminator-select {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    background: var(--bg-light) !important;
    color: var(--text-body) !important;
}

.contact-form .forminator-input:focus,
.contact-form .forminator-textarea:focus,
.contact-form .forminator-select:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    background: white !important;
    box-shadow: none !important;
}

.contact-form .forminator-textarea {
    min-height: 150px !important;
    resize: vertical !important;
}

.contact-form .forminator-button {
    width: 100% !important;
    padding: 0.875rem 2rem !important;
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    border: 2px solid var(--primary-color) !important;
    text-align: center !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    margin-top: 1rem !important;
}

.contact-form .forminator-button:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

.contact-form .forminator-error-message {
    color: #e74c3c !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

.contact-form .forminator-success {
    padding: 1.5rem !important;
    background: #d4edda !important;
    color: #155724 !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
    border: none !important;
}

.contact-form .forminator-response-message {
    padding: 1.5rem !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
}

/* Hide Forminator branding */
.contact-form .forminator-custom-form .forminator-addon-wrap,
.contact-form .forminator-custom-form .forminator-footer {
    display: none !important;
}

/* Adjust field spacing */
.contact-form .forminator-field--inner {
    padding: 0 !important;
}

.contact-form .forminator-col {
    padding: 0 !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 14rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Hide book appointment button in header on mobile */
    .header-contact .btn {
        display: none;
    }
    
    /* Hide email on mobile for cleaner header, but show both phone numbers */
    .header-contact .contact-item:has(svg path[d*="M4 4h16"]) {
        display: none;
    }
    
    .site-logo img {
        height: 58px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team section mobile */
    .team-section {
        padding: 3rem 0;
        margin: 2rem -1rem;
        border-radius: 0;
    }
    
    .team-heading,
    .team-intro {
        padding: 0 1.5rem;
    }
    
    .counsellors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .counsellor-photo-large {
        height: 250px;
    }
    
    .counsellor-content {
        padding: 1.5rem;
    }
    
    .counsellor-quote-text {
        font-size: 1rem;
        padding: 1.25rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .counsellor-quote-text::before {
        font-size: 2.5rem;
    }
    
    /* Fix contact section right padding */
    .contact-section .container {
        padding: 0 1.25rem !important;
    }
    
    .contact-content {
        padding: 0;
        max-width: 100%;
    }
    
    .contact-header {
        padding: 0 0.5rem;
    }
    
    .contact-wrapper {
        padding: 0;
        gap: 2rem;
    }
    
    .contact-form {
        margin: 0;
        padding: 2.5rem 1.25rem;
    }
    
    .contact-info {
        margin: 0;
        padding: 0 1rem;
    }
    
    .contact-info-item {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Legacy single counsellor */
    .counsellor-quote {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .about-text {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 13rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Hide book appointment button in header on mobile */
    .header-contact .btn {
        display: none;
    }
    
    .site-logo img {
        height: 58px;
    }
    
    /* Extra padding for services intro */
    .services-intro p {
        padding: 0 1rem;
    }
    
    /* Team section padding */
    .team-heading,
    .team-intro {
        padding: 0 1.25rem;
    }
    
    /* Contact section padding */
    .contact-section .container {
        padding: 0 1.25rem !important;
    }
    
    .contact-content,
    .contact-header {
        padding: 0;
    }
    
    .contact-form {
        padding: 2.5rem 1rem;
    }
    
    .contact-info {
        padding: 0 0.5rem;
    }
}
