/* Template: Psychologist (Joomla 4/5/6) */
:root {
  --olive-900: #234b12;
  --olive-800: #2f5e1e;
  --olive-700: #3a6d26;
  --olive-600: #447c2e;
  --olive-500: #4c8a34; /* CTA */
  --bg: #f5f6ef;
  --paper: #fffdf7;
  --ink: #223018;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Georgia, 'Times New Roman', serif; color: var(--ink); background: var(--bg); }
.container { width: min(1150px, 92%); margin: 0 auto; }

/* Top olive bar */
.top-bar { background: var(--olive-800); color: #fff; font-size: .95rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; }
.topbar-left { display: flex; gap: 1rem; align-items: center; }
.topbar-phone { opacity: .95; }
.btn-cta { background: var(--olive-500); color: #fff; padding: .5rem .9rem; border-radius: .4rem; text-decoration: none; font-weight: 600; }

/* Header */
.header { background: #ffffff; border-bottom: 1px solid #e6eddc; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-weight: 800; letter-spacing: .06em; color: var(--olive-800); }
.mainnav a { color: var(--olive-900); text-decoration: none; margin-left: 1rem; font-weight: 600; }
.mainnav a:hover { color: var(--olive-600); }

/* Hero */
.hero { background: linear-gradient(90deg, #ffffff 0%, #f0f6e9 100%); padding: 3.5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.hero-text h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.25; color: var(--olive-900); margin: 0 0 1rem; }
.hero-text p { font-size: 1.05rem; margin: 0 0 1.25rem; color: #2e3a22; }
.btn { display:inline-block; border-radius:.45rem; text-decoration:none; font-weight:700; }
.btn-primary { background: var(--olive-600); color:#fff; padding: .85rem 1.1rem; }
.hero-image img { width: 100%; height: auto; border-radius: .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* Content */
.content { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding: 2.5rem 0; }
.main { background: var(--paper); padding: 1.25rem; border-radius: .6rem; box-shadow: 0 1px 0 #e9f0de; }
.sidebar { background: var(--paper); padding: 1.25rem; border-radius: .6rem; box-shadow: 0 1px 0 #e9f0de; }

/* Footer */
.footer { background: #e7efdd; padding: 2rem 0; margin-top: 2rem; border-top: 1px solid #dbe8cd; }
.copy { color: #36502a; font-size: .95rem; }

/* Typography */
h1, h2, h3 { font-weight: 800; color: var(--olive-900); }

/* Responsive */
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .content { grid-template-columns: 1fr; } .mainnav { display:none; } }


.lang-switcher {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.lang-switcher ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.lang-switcher a {
    text-decoration: none;
    font-weight: bold;
    color: #444;
}

.lang-switcher a:hover {
    color: #000;
}

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

#language_picker_des_110 {
    display: none !important;
}


/* Ukrycie brzydkiego komunikatu systemowego (com_mailto, com_contact) */
#system-message,
#system-message-container,
#system-message-container .alert,
#system-message-container .alert-success,
.alert-success {
    display: none !important;
}



/* --- FORMULARZ: pełna szerokość i piękny układ --- */

.contact-custom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px; /* żeby wyglądał profesjonalnie */
    margin: 0 auto; /* wyśrodkowanie */
}

.contact-custom label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
    color: #234b12;
}

.contact-custom input,
.contact-custom textarea {
    width: 100% !important;
    padding: 0.75rem 1rem;
    border: 1px solid #c9d7c4;
    border-radius: 6px;
    background: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
}

/* przycisk */
.btn-submit {
    background: #4c8a34;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    width: max-content;
}

.btn-submit:hover {
    background: #3c7228;
}

/* elegancki zielony komunikat */
.custom-success {
    background: #e9f6e4;
    border: 1px solid #b7d8ab;
    color: #234b12;
    padding: 1.2rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Przesunięcie ikony domu maksymalnie w lewo w top bar */
.topbar-left .home-icon {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-right: 12px !important;   /* zostaw delikatny odstęp od telefonu */
    display: inline-flex;
    align-items: center;
}

.topbar-left {
    padding-left: 0 !important;
}


.error-message {
    color: #b73232;
    font-size: 0.9rem;
    margin-top: 4px;
}

.field input,
.field textarea {
    border: 1px solid #ccc;
}

.field input:invalid,
.field textarea:invalid {
    border-color: #c25a5a;
}

