/* base.css — Embolster / Tella Hugo Template
 *
 * Component styling layer. References CSS custom properties (--foo)
 * defined in custom.css (sheet-driven theme overrides).
 *
 * IMPORTANT: This theme sets html { font-size: 62.5% } so 1rem = 10px.
 * All rem values here are written accordingly:
 *   1.4rem = 14px,  1.6rem = 16px,  1.8rem = 18px,  3.6rem = 36px
 *
 * Load order: base.css (this file) → custom.css (variables)
 * Never edit per-client. Edit the sheet, regenerate custom.css.
 */

/* =====================
   FONT OVERIDES
   ===================== */

/* ── Additional fonts (beyond theme defaults) ── */
@font-face { font-family:'Lato'; font-weight:300; font-style:normal; src:url('../webfonts/lato-v24-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-weight:400; font-style:normal; src:url('../webfonts/lato-v24-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-weight:700; font-style:normal; src:url('../webfonts/lato-v24-latin-700.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-weight:900; font-style:normal; src:url('../webfonts/lato-v24-latin-900.woff2') format('woff2'); }
@font-face { font-family:'Raleway'; font-weight:300; font-style:normal; src:url('../webfonts/raleway-v29-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Raleway'; font-weight:400; font-style:normal; src:url('../webfonts/raleway-v29-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Raleway'; font-weight:600; font-style:normal; src:url('../webfonts/raleway-v37-latin-600.woff2') format('woff2'); }
@font-face { font-family:'Raleway'; font-weight:700; font-style:normal; src:url('../webfonts/raleway-v37-latin-700.woff2') format('woff2'); }
@font-face { font-family:'Nunito'; font-weight:300; font-style:normal; src:url('../webfonts/nunito-v32-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Nunito'; font-weight:400; font-style:normal; src:url('../webfonts/nunito-v32-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Nunito'; font-weight:600; font-style:normal; src:url('../webfonts/nunito-v32-latin-600.woff2') format('woff2'); }
@font-face { font-family:'Nunito'; font-weight:700; font-style:normal; src:url('../webfonts/nunito-v32-latin-700.woff2') format('woff2'); }
@font-face { font-family:'Montserrat'; font-weight:300; font-style:normal; src:url('../webfonts/montserrat-v26-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Montserrat'; font-weight:400; font-style:normal; src:url('../webfonts/montserrat-v26-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Montserrat'; font-weight:600; font-style:normal; src:url('../webfonts/montserrat-v26-latin-600.woff2') format('woff2'); }
@font-face { font-family:'Montserrat'; font-weight:700; font-style:normal; src:url('../webfonts/montserrat-v26-latin-700.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:400; font-style:normal; src:url('../webfonts/playfair-display-v40-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-weight:700; font-style:normal; src:url('../webfonts/playfair-display-v40-latin-700.woff2') format('woff2'); }

body        { font-family: var(--font-body); }
.blog-title,
.blog-description,
.post-title { font-family: var(--font-heading); }
.tella-nav-links .btn.site-menu { font-family: var(--font-nav); }


/* =====================
   WHITE TOP NAV BAR
   ===================== */

.tella-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--nav-bg-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1000;
}

.tella-nav-inner {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tella-logo              { margin-right: auto; }
.tella-logo img          { height: 100%; width: auto; }
.tella-logo-text         { font-size: 1.25rem; font-weight: 700; color: var(--nav-logo-text-color); }
.tella-nav-links         { display: flex; align-items: center; gap: 0.5rem; }

/* Push hero down to clear the fixed nav */
#site-head   { margin-top: var(--nav-height); position: relative; max-height: 85vh; overflow: hidden; }
.post[id]    { scroll-margin-top: calc(var(--nav-height) + 10px); }

/* ── Mobile: hide desktop links, show hamburger ── */
@media (max-width: 768px) {
    .tella-nav-links  { display: none; }
    .tella-hamburger  { display: flex; }
    .tella-nav        { height: 70px; }
    #site-head        { margin-top: 70px; }
    .post[id]         { scroll-margin-top: 80px; }
}

/* ── Hamburger button ── */
.tella-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.tella-hamburger:hover { background: rgba(21,96,131,0.08); }
.tella-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cover-text-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}
/* Animate to X when open */
.tella-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tella-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tella-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
.tella-mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    background: var(--nav-bg-color);
    border-top: 1px solid var(--section-dark-bg-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 999;
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}
.tella-mobile-menu.is-open { display: flex; }

.tella-mobile-link {
    display: block;
    padding: 1.2rem 2rem;
    font-family: var(--font-nav);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cover-text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--section-dark-bg-color);
    transition: background 0.15s, color 0.15s;
}
.tella-mobile-link:last-child { border-bottom: none; }
.tella-mobile-link:hover, .tella-mobile-link:active {
    background: var(--section-dark-bg-color);
    color: var(--sticky-menu-text-color);
}

@media (min-width: 769px) {
    .tella-hamburger  { display: none !important; }
    .tella-mobile-menu { display: none !important; }
}

.tella-nav-links .btn.site-menu {
    background-color: transparent;
    color: var(--cover-text-color);
    border: none;
    border-radius: 3px;
    padding: 5px 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tella-nav-links .btn.site-menu:hover {
    background-color: transparent;
    color: var(--sticky-menu-text-color);
}

/* Section headings (h2 .post-title) */
/* Theme default h2 = 4rem (40px). Controlled via --font-size-section-title variable. */
.post-holder .post-title      { color: var(--cover-text-color); font-size: var(--font-size-section-title, 3rem); }
.post-holder.dark .post-title { color: var(--cover-text-color); font-size: var(--font-size-section-title, 3rem); }
@media (max-width: 768px) {
    .post-holder .post-title { font-size: var(--font-size-section-title-mobile, 2.4rem); }
}

/* ── Section spacing — override theme defaults
   Theme sets .post { padding: 4rem 0 } and .post-header { padding: 60px 0 }
   which creates ~100px+ of dead space above every section heading.
   ── */
.post                { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.post-holder .post-header { padding: 1.5rem 0 1rem !important; }

/* Section sub-headings (h3–h5 in body content)
   NOTE: 1.8rem = 18px at 62.5% html base */
.post-content h3,
.post-content h4,
.post-content h5 {
    font-family: var(--font-card-title, var(--font-heading));
    color: var(--color-subheading, var(--section-light-text-color));
    font-size: var(--font-size-subheading, 1.8rem);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Wide content — any section with body_class: "wide-section" */
.wide-section .post-content {
    max-width: var(--layout-max-width);
    width: 90vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1.5rem !important;
}

/* Body font size override — theme default is 2rem (20px), reduced to 1.6rem (16px) */
body { font-size: 1.6rem; }


/* =====================
   HERO — LEFT ALIGN, OVERLAY CARD, CTA BUTTON
   ===================== */

/* Left-align hero text. Applied via .tella-hero-left class on #site-head-content. */
#site-head-content.tella-hero-left {
    text-align: left;
    padding-left: 5%;
    max-width: 55%;
}

@media (max-width: 768px) {
    #site-head-content.tella-hero-left {
        text-align: center;
        padding-left: 1rem;
        max-width: 100%;
    }
}

/* Overlay card — bottom-left of hero image.
   #site-head has position:relative added in the nav rule above so
   absolute positioning is anchored correctly. */
.tella-hero-overlay {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    max-width: 420px;
    background-color: rgba(42, 46, 48, 0.85);
    border-left: 3px solid var(--cover-text-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1.4rem 1.8rem;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10;
}

.tella-hero-overlay p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 1.7;
    color: #ffffff;
}

@media (max-width: 768px) {
    .tella-hero-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        margin: 0;
        border-left: none;
        border-top: 3px solid var(--cover-text-color);
        border-radius: 0;
    }
}

/* Hero CTA button — inline in header_subheadline field */
.tella-hero-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1.2rem 3rem;
    background-color: var(--cover-text-color);
    color: #ffffff !important;
    font-family: var(--font-nav);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: var(--border-radius);
    border: 2px solid var(--cover-text-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.tella-hero-cta:hover {
    background-color: transparent;
    color: var(--cover-text-color) !important;
    border-color: var(--cover-text-color);
}

@media (max-width: 768px) {
    .tella-hero-cta { font-size: 1.4rem; padding: 1rem 2rem; }
}


/* =====================
   SERVICE CARDS — HORIZONTAL
   ===================== */

.tella-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.tella-card {
    background: var(--section-light-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.tella-card:hover       { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.tella-card-image img   { width: 100%; height: 180px; object-fit: cover; }
.tella-card-body        { padding: 1.5rem; }

/* 3.6rem = 36px at 62.5% base */
.tella-card-icon {
    font-size: var(--font-size-card-icon, 3.6rem);
    margin-bottom: 1rem;
    color: var(--cover-text-color);
}

/* 1.8rem = 18px */
.tella-card h3 {
    color: var(--cover-text-color);
    font-family: var(--font-card-title, var(--font-heading));
    font-size: var(--font-size-card-title, 1.8rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* 1.4rem = 14px */
.tella-card p {
    color: var(--section-light-text-color);
    font-size: var(--font-size-card-body, 1.4rem);
    line-height: 1.6;
}

@media (max-width: 1024px) and (min-width: 769px) { .tella-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px)                          { .tella-cards { grid-template-columns: 1fr; } }


/* =====================
   SERVICE CARDS — VERTICAL
   ===================== */

.tella-cards-vertical { display: flex; flex-direction: column; gap: 1.25rem; max-width: 100%; }

.tella-card-vertical {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    background: var(--section-light-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.tella-card-vertical:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.10); }

.tella-card-vertical-aside {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 200px;
    min-width: 200px;
    background-color: var(--section-dark-bg-color);
    color: var(--cover-text-color);
    font-size: var(--font-size-card-icon, 3.6rem);
}
.tella-card-vertical-aside img {
    width: 200px; height: 300px;
    object-fit: cover; object-position: center; display: block;
}

.tella-card-vertical-body {
    padding: 1.5rem;
    display: flex; flex-direction: column; justify-content: center;
    flex: 1 1 0; min-width: 0;
}

.tella-card-vertical-body h3 {
    color: var(--cover-text-color);
    font-family: var(--font-card-title, var(--font-heading));
    font-size: var(--font-size-card-title, 1.8rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tella-card-vertical-body p {
    color: var(--section-light-text-color);
    font-size: var(--font-size-card-body, 1.6rem);
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .tella-card-vertical            { flex-direction: column; }
    .tella-card-vertical-aside      { width: 100%; min-width: unset; height: 180px; }
    .tella-card-vertical-aside img  { width: 100%; height: 180px; }
}


/* =====================
   CARD DESCRIPTION LISTS
   ===================== */

.tella-card-desc ul {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
}

.tella-card-desc ul.fa-ul .fa-li {
    display: none;
}

.tella-card-desc ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.4rem;
    font-size: var(--font-size-card-body, 1.4rem) !important;
    line-height: 1.5;
    margin-left: 0;
}

.tella-card-desc ul li::before {
    content: '➤';
    position: absolute;
    left: 0;
    color: var(--cover-text-color);
    font-size: 0.85em;
    top: 0.15em;
}

.tella-card-desc {
    font-size: var(--font-size-card-body, 1.4rem);
}

.tella-card-desc p {
    font-size: var(--font-size-card-body, 1.4rem);
    margin: 0 0 0.5rem 0;
}

.tella-card-desc p:last-child {
    margin-bottom: 0;
}

.tella-blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem; max-width: 100%; margin: 0 auto;
}

.tella-blog-card {
    background: var(--section-light-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    overflow: hidden; text-decoration: none; color: inherit; display: block;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.tella-blog-card:hover     { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.tella-blog-image           { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.tella-blog-image img      { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.tella-blog-body           { padding: 1.5rem; }

.tella-blog-date {
    font-size: 1.1rem;
    color: var(--sticky-menu-text-color);
    text-transform: uppercase; letter-spacing: 1px;
    display: block; margin-bottom: 0.5rem;
}

.tella-blog-body h3 {
    color: var(--cover-text-color);
    font-family: var(--font-card-title, var(--font-heading));
    font-size: var(--font-size-card-title, 1.8rem);
    font-weight: 600; margin-bottom: 0.75rem;
}

.tella-blog-body p {
    color: var(--section-light-text-color);
    font-size: var(--font-size-card-body, 1.4rem);
    line-height: 1.6;
}

@media (max-width: 1024px) and (min-width: 769px) { .tella-blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px)                          { .tella-blog-grid { grid-template-columns: 1fr; } }

.view-all-link {
    text-align: center; margin-top: 2rem;
    padding-top: 1.5rem; border-top: 1px solid var(--section-dark-bg-color);
}


/* =====================
   BLOG LIST PAGE
   ===================== */

.blog-list-page         { max-width: var(--layout-max-width); margin: 0 auto; padding: calc(2rem + var(--nav-height) + 10px) 2rem 4rem; background-color: var(--section-light-bg-color); color: var(--section-light-text-color); }
.blog-list-header       { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--section-dark-bg-color); }
.blog-list-header h1    { font-family: var(--font-heading); color: var(--cover-text-color); font-size: 5rem; margin-bottom: 0.5rem; }
.blog-list-intro        { color: var(--section-light-text-color); font-size: 1.8rem; }
.blog-sort-bar          { margin-bottom: 2rem; font-size: 1.4rem; color: var(--section-light-text-color); opacity: 0.6; }

.blog-list-grid {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: 2rem; margin-bottom: 3rem;
}

.blog-list-card {
    display: flex; flex-direction: column;
    background: var(--section-light-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.blog-list-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

.blog-list-card .tella-blog-image           { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.blog-list-card .tella-blog-image img       { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.blog-list-card .tella-blog-body            { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-list-card .tella-blog-body h3         { color: var(--cover-text-color); font-family: var(--font-card-title, var(--font-heading)); font-size: var(--font-size-card-title, 1.8rem); font-weight: 600; margin-bottom: 0.75rem; }
.blog-list-card .tella-blog-body p          { color: var(--section-light-text-color); font-size: var(--font-size-card-body, 1.4rem); line-height: 1.6; }
.blog-list-card .tella-blog-date            { font-size: 1.1rem; color: var(--sticky-menu-text-color); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.5rem; }
.blog-list-card .tella-blog-meta-row        { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0.6rem; min-height: 2rem; }
.blog-list-card .blog-read-more             { font-size: 1.3rem; font-weight: 600; color: var(--cover-text-color); text-transform: uppercase; letter-spacing: 0.5px; margin-top: auto; padding-top: 1rem; }

.blog-list-image-placeholder {
    width: 100%; height: 180px;
    background-color: var(--section-dark-bg-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--cover-text-color); opacity: 0.3;
}

.blog-list-tags   { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.blog-tag         { display: inline-block; padding: 2px 8px; background-color: var(--section-dark-bg-color); color: var(--cover-text-color); border-radius: 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-read-more   { font-size: 1.3rem; font-weight: 600; color: var(--cover-text-color); text-transform: uppercase; letter-spacing: 0.5px; margin-top: auto; padding-top: 1rem; }
.blog-list-footer { text-align: center; padding-top: 2rem; border-top: 1px solid var(--section-dark-bg-color); }

@media (max-width: 600px) { .blog-list-grid { grid-template-columns: 1fr; } .blog-list-header h1 { font-size: 3rem; } }


/* =====================
   BLOG ARTICLE (single)
   ===================== */

.blog-single-page,
.blog-list-wrapper  { background-color: var(--section-light-bg-color); color: var(--section-light-text-color); }
.blog-article       { max-width: var(--layout-max-width); margin: 0 auto; padding: calc(var(--nav-height) + 2rem) 2rem 4rem; }
.blog-article-nav-top { margin-bottom: 2rem; }

.blog-back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--cover-text-color); font-size: 1.4rem; font-weight: 600;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.blog-back-link:hover { color: var(--sticky-menu-text-color); }

.blog-article-header  { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 2px solid var(--section-dark-bg-color); }
.blog-article-meta    { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.blog-article-title   { font-family: var(--font-heading); color: var(--cover-text-color); font-size: 5rem; line-height: 1.2; margin-bottom: 1rem; }
.blog-article-description { font-size: 2rem; color: var(--section-light-text-color); line-height: 1.6; opacity: 0.8; margin: 0; }

.blog-article-featured-image { margin-bottom: 3rem; border-radius: var(--border-radius); overflow: hidden; }
.blog-article-featured-image img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5,
.blog-article-content h6 { font-family: var(--font-heading); color: var(--cover-text-color); }

.blog-article-content h2 { font-size: 2.8rem; font-weight: 700; margin: 3rem 0 1rem; line-height: 1.25; }
.blog-article-content h3 { font-size: 2.2rem; font-weight: 600; margin: 2.5rem 0 0.75rem; line-height: 1.3; }
.blog-article-content h4 { font-size: 1.8rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.blog-article-content h5,
.blog-article-content h6 { font-size: 1.6rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }

.blog-article-content p { color: var(--section-light-text-color); font-size: 2rem; line-height: 1.8; margin-bottom: 1.5rem; }
.blog-article-nav-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--section-dark-bg-color); text-align: center; }

@media (max-width: 600px) { .blog-article-title { font-size: 3rem; } }


/* =====================
   SINGLE PAGE
   ===================== */

.page-template          { padding-top: var(--nav-height); }
.page-template .post-header { padding-top: 1rem; }


/* =====================
   LEGAL / STANDALONE PAGE HEADINGS
   ===================== */

.page-template .post-content h2 {
    font-family: var(--font-nav);
    color: var(--section-light-text-color);
    font-size: 2.0rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 3rem 0 1rem;
    line-height: 1.3;
}

.page-template .post-content h3 {
    font-family: var(--font-nav);
    color: var(--section-light-text-color);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
}

.page-template .post-content h4 {
    font-family: var(--font-nav);
    color: var(--section-light-text-color);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.5rem;
}


/* =====================
   SOCIAL LINKS — section
   ===================== */

.tella-social-links     { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; padding: 1rem 0; }
.tella-social-item      { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--cover-text-color); font-size: 1.4rem; font-weight: 600; transition: color 0.2s ease, transform 0.2s ease; }
.tella-social-item:hover { color: var(--sticky-menu-text-color); transform: translateY(-3px); }
.tella-social-item i    { font-size: 4rem; }

/* =====================
   SOCIAL LINKS — footer
   ===================== */

.tella-footer-socials       { display: flex; justify-content: center; gap: 1.5rem; padding: 0.75rem 0; }
.tella-footer-social-item   { color: var(--footer-color); font-size: 2rem; text-decoration: none; transition: color 0.2s ease; }
.tella-footer-social-item:hover { color: var(--sticky-menu-text-color); }


/* =====================
   CONTACT FORM
   ===================== */

.tella-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.tella-contact-details  { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--section-dark-bg-color); }
.tella-contact-item     { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--cover-text-color); font-size: 1.6rem; font-weight: 600; transition: color 0.2s ease; }
.tella-contact-item:hover { color: var(--sticky-menu-text-color); }
.tella-contact-item i   { font-size: 1.8rem; width: 2rem; text-align: center; }

.tella-form-row         { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.tella-form-group       { display: flex; flex-direction: column; gap: 0.4rem; }
.tella-form-group--full { width: 100%; margin-bottom: 1.25rem; }

.tella-contact-form label     { font-size: 1.4rem; font-weight: 600; color: var(--section-light-text-color); font-family: var(--font-body); }
.tella-required               { color: var(--cover-text-color); margin-left: 2px; }

.tella-contact-form input[type="text"],
.tella-contact-form input[type="email"],
.tella-contact-form input[type="tel"],
.tella-contact-form textarea {
    width: 100%; padding: 0.75rem 1rem;
    border: 1.5px solid var(--input-border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem; font-family: var(--font-body);
    color: var(--section-light-text-color);
    background-color: var(--section-light-bg-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.tella-contact-form input[type="text"]:focus,
.tella-contact-form input[type="email"]:focus,
.tella-contact-form input[type="tel"]:focus,
.tella-contact-form textarea:focus {
    outline: none; border-color: var(--cover-text-color);
    box-shadow: 0 0 0 3px rgba(21,96,131,0.12);
}

.tella-contact-form input[aria-invalid="true"],
.tella-contact-form textarea[aria-invalid="true"] { border-color: var(--color-error); }
.tella-contact-form textarea    { resize: vertical; min-height: 120px; }
.tella-field-error              { font-size: 1.3rem; color: var(--color-error); min-height: 1.6rem; font-family: var(--font-body); }
.tella-form-group--checkbox     { margin-top: 0.25rem; }

.tella-checkbox-label {
    display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer;
    font-weight: 400 !important; font-size: 1.5rem; line-height: 1.5;
    color: var(--section-light-text-color);
}
.tella-checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--cover-text-color); cursor: pointer; }
.tella-checkbox-label a         { color: var(--cover-text-color); font-weight: 600; text-decoration: underline; }
.tella-checkbox-label a:hover   { color: var(--sticky-menu-text-color); }

.tella-submit-btn {
    background-color: var(--cover-text-color) !important;
    color: #ffffff !important; border: none;
    padding: 1rem 2.5rem; font-size: 1.6rem; font-weight: 600;
    border-radius: var(--border-radius); cursor: pointer;
    letter-spacing: 0.5px; text-transform: uppercase;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.tella-submit-btn:hover:not(:disabled) { background-color: var(--sticky-menu-text-color) !important; }
.tella-submit-btn:disabled             { opacity: 0.65; cursor: not-allowed; }
.tella-form-group--submit              { margin-top: 0.5rem; }

.tella-form-message[hidden] { display: none !important; }
.tella-form-message {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.25rem 1.5rem; border-radius: var(--border-radius);
    font-size: 1.6rem; font-weight: 600; margin-top: 1.25rem; font-family: var(--font-body);
}
.tella-form-message--success { background-color: var(--form-success-bg); color: var(--form-success-text); border: 1px solid var(--form-success-border); }
.tella-form-message--error   { background-color: var(--form-error-bg);    color: var(--form-error-text);    border: 1px solid var(--form-error-border); }
.tella-form-group .cf-turnstile { margin-top: 0.25rem; }

@media (max-width: 600px) {
    .tella-form-row         { grid-template-columns: 1fr; }
    .tella-contact-details  { flex-direction: column; gap: 1rem; }
}


/* =====================
   RESOURCE CARDS (Option B — link-aware section cards)
   ===================== */

.tella-blog-meta-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem;
    margin-bottom: 0.6rem; min-height: 2rem;
}

.tella-resource-source {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-body); font-size: 1.2rem; font-weight: 600;
    color: var(--highlight); letter-spacing: 0.02em; text-transform: uppercase;
}
.tella-resource-source i { font-size: 1.1rem; }

.tella-resource-badge {
    display: inline-flex; align-items: center;
    font-family: var(--font-body); font-size: 1.2rem; font-weight: 600;
    color: var(--color-primary);
    background-color: rgba(79, 163, 219, 0.12);
    padding: 0.2rem 0.9rem; border-radius: 999px; line-height: 1.6;
}

.tella-card-external:hover { border-color: var(--highlight); }
.tella-card-external .blog-read-more i { font-size: 1.2rem; margin-left: 0.2rem; }

.tella-resource-category { margin-bottom: 4rem; }
.tella-resource-category-title {
    font-family: var(--font-heading); font-size: 2.4rem; font-weight: 600;
    color: var(--section-light-text-color);
    margin: 0 0 1.8rem; padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--card-border-color);
}

.tella-resource-redirect {
    font-family: var(--font-body); font-size: 1.6rem;
    color: var(--section-light-text-color); padding: 2rem 0;
}
.tella-resource-redirect a { color: var(--cover-text-color); font-weight: 600; text-decoration: underline; }


/* =====================
   LOGO SIZE OVERRIDE
   Overrides the inline style height set in custom_body.html.
   Adjust per-client here rather than editing the partial.
   10px padding top/bottom = (120px nav - 100px logo) / 2
   ===================== */
.tella-logo img { height: 100px !important; width: auto !important; padding: 10px 0; }
