/* ==========================================================================
   Laura Adilman, LCSW — Site Styles
   Color scheme: purple #8d6b94, dark text #3e2740, white, burlap texture
   Fonts: Cookie (headings), Open Sans (body)
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gutter: 85px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: #3e2740;
    background: #fff;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 300;
}

a { color: inherit; }

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

/* Ensure no gaps between sections */
.site-main > section {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.site-main > section.purple-section,
.site-main > section.white-section,
.site-main > section.dark-purple-section {
    padding-top: 50px;
    padding-bottom: 70px;
}

/* ==========================================================================
   Site Wrapper
   ========================================================================== */
.site-wrapper {
    width: 100%;
    margin: 0;
    background: #fff;
    overflow: visible;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    padding: 34px var(--gutter);
    background: #fff;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-header.scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 25px;
    letter-spacing: -0.5px;
    color: #000;
}

.logo-cap {
    text-transform: uppercase;
    font-size: 0.9em;
}

.logo-sm {
    text-transform: uppercase;
    font-size: 0.75em;
    position: relative;
    top: -1px;
}

.logo {
    height: 58px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo {
    height: 50px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #3e2740;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    align-items: center;
}

.nav-btn {
    display: inline-block;
    padding: 4px 0;
    background: none;
    color: #3e2740;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
    color: #8d6b94;
    font-weight: 400;
}

.nav-btn.active {
    padding-bottom: 6px;
    border-bottom: 1px solid #8d6b94;
}

/* ==========================================================================
   Hero Banner (burlap texture background)
   ========================================================================== */
.hero-banner {
    background-size: cover;
    background-position: center;
    padding: 60px var(--gutter) !important;
    min-height: 160px;
    display: flex;
    align-items: center;
}

.hero-title {
    font-family: 'Cookie', cursive;
    font-size: 60px;
    font-weight: 400;
    color: #3e2740;
    line-height: 1.2;
}

/* ==========================================================================
   Full-width Image
   ========================================================================== */
.full-width-image {
    line-height: 0;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.purple-section {
    background: #8d6b94;
    color: #fff;
    padding: 50px var(--gutter);
}

.purple-section a {
    color: #fff;
    text-decoration: underline;
}

.dark-purple-section {
    background: #3e2740;
    color: #fff;
    padding: 50px var(--gutter);
}

.dark-purple-section a {
    color: #c9a6d0;
}

.dark-purple-section .btn-outline {
    border-color: #fff;
    color: #fff;
}

.dark-purple-section .btn-outline:hover {
    background: #fff;
    color: #3e2740;
}

/* Doxy.me link preview card */
.content-col-card {
    flex: 0 0 380px;
}

.doxy-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doxy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.4);
}

.doxy-card-img {
    width: 100%;
    display: block;
}

.doxy-card-footer {
    background: #04474d;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.doxy-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.doxy-card-domain {
    font-size: 12px;
    color: #7ec8c8;
}

.white-section {
    background: #fff;
    color: #3e2740;
    padding: 50px var(--gutter);
}

.content-row {
    display: flex;
    gap: 76px;
    align-items: center;
}

.content-col-img {
    flex: 0 0 250px;
}

.content-col-text {
    flex: 1;
    min-width: 0;
}

.content-wide {
    /* content width controlled by section padding (--gutter) */
}

.content-centered {
    text-align: center;
}

/* ==========================================================================
   Headings
   ========================================================================== */
.section-heading {
    margin-bottom: 16px;
}

.script-heading {
    font-family: 'Cookie', cursive;
    font-size: 52px;
    font-weight: 400;
}

.script-heading.dark {
    color: #3e2740;
}

/* ==========================================================================
   Text Content
   ========================================================================== */
.purple-section p,
.white-section p,
.dark-purple-section p {
    margin-bottom: 28px;
    line-height: 1.9;
    font-size: 22px;
}

.purple-section p:last-child,
.white-section p:last-child,
.dark-purple-section p:last-child {
    margin-bottom: 0;
}

/* Inner pages — text sizes */
.page-about p,
.page-about li {
    font-size: 20px;
}

.page-inner p,
.page-inner li {
    font-size: 20px;
}

.page-inner .plus-list li {
    font-size: 24px;
}

/* ==========================================================================
   Lists
   ========================================================================== */
.plus-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.plus-list li {
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
}

.plus-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #c9a6d0;
}

.white-section .plus-list li::before {
    color: #8d6b94;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.bullet-list li {
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
}

.bullet-list li::before {
    content: "\2013";
    position: absolute;
    left: 0;
    font-weight: 400;
    color: #c9a6d0;
}

.aside {
    font-size: 0.8em;
    opacity: 0.7;
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.credentials-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.credentials-list li:last-child {
    border-bottom: none;
}

/* Ordered lists (policies, emergency) */
.purple-section ol,
.white-section ol {
    margin: 12px 0 28px 48px;
}

.purple-section ol li,
.white-section ol li {
    margin-bottom: 6px;
}

/* ==========================================================================
   Images
   ========================================================================== */
.headshot-round {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center calc(50% + 10px);
    margin: -35px 0;
}

.headshot-bordered {
    border: 5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.section-image {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    margin-top: 10px;
}

.white-section .content-col-img,
.purple-section .content-col-img:not(:has(.headshot-round)) {
    flex: 0 0 350px;
}

.page-about.purple-section .content-col-img,
.page-about.white-section .content-col-img,
.page-inner.purple-section .content-col-img,
.page-inner.white-section .content-col-img {
    flex: 0 0 480px;
}

.page-inner .content-row {
    align-items: flex-start;
}

.page-inner .section-image {
    margin-top: 27px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-outline {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #fff;
    color: #8d6b94;
}

.btn-outline.dark {
    border-color: #8d6b94;
    color: #8d6b94;
}

.btn-outline.dark:hover {
    background: #8d6b94;
    color: #fff;
}

/* ==========================================================================
   Map
   ========================================================================== */
.map-with-facade {
    display: flex;
    margin: 20px 0;
    border-radius: 4px;
}

.facade-strip {
    flex: none;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.facade-strip img {
    height: 350px;
    width: auto;
    border: 3px solid #ccc;
    box-shadow: 6px 0 12px rgba(0,0,0,0.3);
}

.map-container {
    flex: 1;
    min-width: 0;
    line-height: 0;
}

.map-container iframe {
    border-radius: 4px;
}

.address-text {
    text-align: center;
    font-size: 17px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Office Photos
   ========================================================================== */
.office-photos {
    padding: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.photo-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #3e2740;
    color: rgba(255,255,255,0.7);
    padding: 24px var(--gutter);
    text-align: center;
    font-size: 13px;
}

.footer-inner {
    /* width controlled by footer padding (--gutter) */
}

.footer-inner p {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

/* ==========================================================================
   Section Divider
   ========================================================================== */
.section-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0 100px;
    padding-top: 30px;
    margin-top: 30px;
}

/* ==========================================================================
   Lotus / Quote section
   ========================================================================== */
.lotus-section .content-col-img {
    flex: 0 0 350px;
}

.lotus-section .content-col-text,
.lotus-section .content-col-text p {
    font-family: 'Cookie', cursive;
    font-size: 42px;
    line-height: 1.6;
}

.lotus-section em {
    font-style: normal;
}

.attribution {
    text-align: right;
    margin-top: -20px !important;
}

/* ==========================================================================
   Closing section
   ========================================================================== */
.closing-section {
    padding: 50px var(--gutter);
}

.closing-section p {
    font-weight: 300;
}

/* ==========================================================================
   Admin Bar
   ========================================================================== */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #3e2740;
    color: #fff;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.admin-bar span {
    white-space: nowrap;
}

.admin-bar-links {
    display: flex;
    gap: 6px;
    flex: 1;
}

.admin-bar-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.admin-bar-links a:hover,
.admin-bar-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.save-btn {
    background: #5cb85c;
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.save-btn:hover { background: #4cae4c; }
.save-btn:disabled { opacity: 0.7; cursor: wait; }

.logout-btn {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

.logout-btn:hover { color: #fff; }

/* Push content down when admin bar is visible */
body:has(.admin-bar) .site-wrapper {
    margin-top: 50px;
}

/* ==========================================================================
   Quill Editor Overrides (editing mode)
   ========================================================================== */
[data-section] {
    background: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 4px;
    min-height: 60px;
}

.white-section [data-section] {
    background: rgba(141,107,148,0.05);
    border-color: rgba(141,107,148,0.3);
}

.dark-purple-section [data-section] {
    background: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 4px;
}

.dark-purple-section [data-title] {
    border-bottom: 1px dashed rgba(255,255,255,0.4);
}

.dark-purple-section [data-title]:hover,
.dark-purple-section [data-title]:focus {
    background: rgba(255,255,255,0.12);
}

/* Editable titles (contenteditable, no WYSIWYG) */
[data-title] {
    border-bottom: 1px dashed rgba(255,255,255,0.4);
    cursor: text;
    outline: none;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background 0.2s;
}

[data-title]:hover,
[data-title]:focus {
    background: rgba(255,255,255,0.12);
}

.white-section [data-title] {
    border-bottom-color: rgba(141,107,148,0.4);
}

.white-section [data-title]:hover,
.white-section [data-title]:focus {
    background: rgba(141,107,148,0.08);
}

.hero-banner [data-title] {
    border-bottom-color: rgba(62,39,64,0.3);
}

.hero-banner [data-title]:hover,
.hero-banner [data-title]:focus {
    background: rgba(62,39,64,0.08);
}

/* Quill toolbar styling in purple sections */
.purple-section .ql-toolbar.ql-snow {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
    border-radius: 4px 4px 0 0;
}

.purple-section .ql-toolbar .ql-stroke {
    stroke: #fff;
}

.purple-section .ql-toolbar .ql-fill {
    fill: #fff;
}

.purple-section .ql-toolbar .ql-picker-label {
    color: #fff;
}

.purple-section .ql-container.ql-snow {
    border-color: rgba(255,255,255,0.2);
}

.white-section .ql-toolbar.ql-snow {
    border-color: rgba(141,107,148,0.2);
    border-radius: 4px 4px 0 0;
}

.white-section .ql-container.ql-snow {
    border-color: rgba(141,107,148,0.2);
}

/* Keep text white in purple section editors */
.purple-section .ql-editor {
    color: #fff;
}

.purple-section .ql-editor a {
    color: #fff;
}

.white-section .ql-editor {
    color: #3e2740;
}

/* ==========================================================================
   Responsive — Tablet (<=1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .content-col-img {
        flex: 0 0 160px;
    }

    .lotus-section .content-col-img {
        flex: 0 0 160px;
    }

    /* Page-inner image columns: override 480px down to 280px */
    .page-about.purple-section .content-col-img,
    .page-about.white-section .content-col-img,
    .page-inner.purple-section .content-col-img,
    .page-inner.white-section .content-col-img {
        flex: 0 0 280px;
    }
}

/* ==========================================================================
   Responsive — Mobile (<=768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root { --gutter: 20px; }

    body {
        font-size: 15px;
    }

    .site-header {
        position: -webkit-sticky;
        position: sticky;
        padding: 12px var(--gutter);
    }

    .site-header.scrolled {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .logo {
        height: 42px;
    }

    .site-header.scrolled .logo {
        height: 38px;
    }

    .mobile-menu-toggle {
        display: block;
        position: static;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 6px;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-btn {
        text-align: center;
        padding: 10px 0;
        font-size: 13px;
    }

    .hero-title {
        font-size: 34px;
    }

    .full-width-image img {
        height: 300px;
    }

    .content-row {
        flex-direction: column;
        gap: 20px;
    }

    .content-col-img,
    .white-section .content-col-img,
    .purple-section .content-col-img:not(:has(.headshot-round)),
    .content-col-card {
        flex: none;
        text-align: center;
    }

    .content-col-text {
        width: 100%;
    }

    .headshot-round {
        width: 130px;
        height: 130px;
        margin: 0 auto;
    }

    .section-image {
        max-height: 300px;
    }

    .script-heading {
        font-size: 30px;
    }

    .lotus-section .content-col-img {
        flex: none;
    }

    .lotus-section .content-col-img img {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Reduce section body text from 22px for mobile */
    .purple-section p,
    .white-section p,
    .dark-purple-section p {
        font-size: 17px;
    }

    .lotus-section .content-col-text,
    .lotus-section .content-col-text p {
        font-size: 30px;
    }

    .closing-section p {
        font-size: 16px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid img {
        height: 220px;
    }

    /* Logo text: reduce from 25px for mobile */
    .logo-text {
        font-size: 20px;
    }

    /* Page-inner image columns: full width when stacked */
    .page-about.purple-section .content-col-img,
    .page-about.white-section .content-col-img,
    .page-inner.purple-section .content-col-img,
    .page-inner.white-section .content-col-img {
        flex: none;
    }

    /* Page-inner section-image: remove top margin when stacked */
    .page-inner .section-image {
        margin-top: 0;
    }

    /* Inner page text: reduce sizes */
    .page-about p,
    .page-about li,
    .page-inner p,
    .page-inner li {
        font-size: 16px;
    }

    .page-inner .plus-list li {
        font-size: 20px;
    }

    /* Facade strip: normal full-width image on mobile */
    .map-with-facade {
        flex-direction: column;
    }

    .facade-strip {
        width: 100%;
        position: relative;
        z-index: 1;
    }

    .facade-strip img {
        width: 100%;
        height: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .facade-expand-icon {
        display: none;
    }

    .map-container {
        margin-left: 0;
    }

    .map-container {
        position: relative;
    }

    .map-container::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        box-shadow: inset 0 -8px 16px rgba(0,0,0,0.25);
        pointer-events: none;
    }

    .map-container iframe {
        height: 250px;
    }

    /* Headshot bordered: scale border for mobile */
    .headshot-bordered {
        border-width: 3px;
    }

    .admin-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .admin-bar-links {
        flex-wrap: wrap;
        gap: 4px;
    }

    .admin-bar-links a {
        font-size: 11px;
        padding: 4px 6px;
    }

    .save-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    body:has(.admin-bar) .site-wrapper {
        margin-top: 70px;
    }
}

/* ==========================================================================
   Responsive — Small phones (<=480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root { --gutter: 16px; }

    .logo {
        height: 36px;
    }

    /* Logo text: further reduce on small phones */
    .logo-text {
        font-size: 17px;
    }

    .hero-title {
        font-size: 28px;
    }

    /* Section body text: further reduce */
    .purple-section p,
    .white-section p,
    .dark-purple-section p {
        font-size: 15px;
    }

    /* Inner page text: further reduce */
    .page-about p,
    .page-about li,
    .page-inner p,
    .page-inner li {
        font-size: 15px;
    }

    .page-inner .plus-list li {
        font-size: 18px;
    }

    .lotus-section .content-col-text,
    .lotus-section .content-col-text p {
        font-size: 24px;
    }


    .full-width-image img {
        height: 220px;
    }

    .script-heading {
        font-size: 26px;
    }

    .headshot-round {
        width: 110px;
        height: 110px;
    }

    .btn-outline {
        padding: 10px 20px;
        font-size: 12px;
        display: block;
        text-align: center;
    }

    .photo-grid img {
        height: 180px;
    }

    .address-text {
        font-size: 15px;
    }

    body:has(.admin-bar) .site-wrapper {
        margin-top: 90px;
    }
}
