/*
 Theme Name:   Envince Tulo Child
 Theme URI:    https://worldoftulo.com
 Description:  Tulo-branded child theme for Envince by ThemeGrill
 Author:       Tulo / Adeprimo
 Template:     envince
 Version:      1.0.0
 Text Domain:  envince-tulo-child
*/

/* ==========================================================================
   TULO BRAND TOKENS
   ==========================================================================
   Primary Orange:     #ED5400
   Dark (near-black):  #151720
   Cream/Beige:        #F4EEE6
   Secondary Cream:    #DFDAD2
   Muted Gray:         #7E7870
   White:              #FFFFFF
   Font:               Chevin (proprietary) — fallback: Poppins (Google Fonts)
   ========================================================================== */


/* --------------------------------------------------------------------------
   FONT IMPORT
   --------------------------------------------------------------------------
   Chevin self-hosted from assets/ directory (TTF format).
   Three files cover the weight range used across the theme.
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Chevin';
    src: url('assets/Chevin_Thin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chevin';
    src: url('assets/Chevin_Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chevin';
    src: url('assets/Chevin_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chevin';
    src: url('assets/Chevin_DemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chevin';
    src: url('assets/Chevin_DemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Poppins kept as fallback in the font stack (loaded only if Chevin fails) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* ==========================================================================
   CSS CUSTOM PROPERTIES (for easy maintenance)
   ========================================================================== */
:root {
    --tulo-orange:        #ED5400;
    --tulo-orange-hover:  #D44B00;
    --tulo-dark:          #151720;
    --tulo-cream:         #F4EEE6;
    --tulo-cream-dark:    #DFDAD2;
    --tulo-muted:         #7E7870;
    --tulo-white:         #FFFFFF;
    --tulo-text:          #151720;
    --tulo-text-light:    #F4EEE6;

    /* Surface hierarchy:
       body (outer frame)  = secondary cream (#DFDAD2)
       container (content) = primary cream (#F4EEE6)
       This avoids pure white anywhere while keeping content readable. */
    --tulo-surface-outer: #DFDAD2;
    --tulo-surface-main:  #F4EEE6;

    /* Switch 'Chevin' to 'Poppins' below if you don't have the Chevin license */
    --tulo-font-primary:  'Chevin', 'Poppins', sans-serif;
}


/* ==========================================================================
   GLOBAL / BODY
   ========================================================================== */
body {
    font-family: var(--tulo-font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.667;
    color: var(--tulo-text);
    background-color: var(--tulo-surface-outer);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   SURFACES — ELIMINATE WHITE BACKGROUNDS
   ==========================================================================
   Envince uses white (#fff) on: #container, .site-header, article.entry,
   and the footer bar. Replace all with Tulo cream tones.
   ========================================================================== */

/* Main boxed container — scoped to avoid hitting .container inside header */
#container,
#wrapper,
main > .container,
.site-content > .container,
.site-content {
    background-color: var(--tulo-surface-main);
}

/* ---- Header logo / branding area ---- */
/* The header has three vertical zones:
   1. Top social bar (div:first-child)  — dark, handled by Envince
   2. Logo/branding (.container inside #header) — we style below
   3. Nav bar (.navbar-default)          — dark, handled by Envince

   We use the darker cream for the logo area so it contrasts with
   the lighter content surface below, plus a bottom border for definition. */

#header > .container,
.site-header > .container {
    background-color: var(--tulo-cream-dark);
    border-bottom: 3px solid var(--tulo-orange);
    box-shadow: 0 2px 8px rgba(21, 23, 32, 0.08);
}

/* Keep text in the header branding area dark and readable */
#header .site-title a,
.site-header .site-title a {
    color: var(--tulo-text);
}

#header .site-description,
.site-header .site-description {
    color: var(--tulo-muted);
}

/* Logo — half the default size, responsive on mobile */
.header-logo .custom-logo {
    max-width: min(180px, 100%);
    width: auto;
    height: auto;
}

/* Compact the logo/branding area to fit the smaller logo */
#main-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.header-logo {
    padding-top: 0 !important;
}

/* Empty tagline container — collapse */
.site-branding .header-text {
    display: none;
}

/* Flex-align the row so Login sits vertically centered with logo */
#main-header > .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#sidebar-header p {
    margin-bottom: 0;
}

/* Login / user info text in header branding area only (> targets direct child) */
#header > .container .tulo_login,
#header > .container .tulo_login a,
#header > .container [class*="login"],
#header > .container a {
    color: var(--tulo-text);
}

#header > .container a:hover {
    color: var(--tulo-orange);
}

/* Article / post cards */
article.entry,
.entry,
.post,
.type-post,
.type-page {
    background-color: var(--tulo-surface-main);
}

/* Sidebar widgets */
.widget,
aside {
    background-color: transparent;
}

/* Footer bar (the bottom credit bar) */
.footer-bar,
.site-info,
#colophon .site-info,
.below-footer {
    background-color: var(--tulo-dark);
    color: var(--tulo-text-light);
}

.footer-bar a,
.site-info a {
    color: var(--tulo-cream);
}

.footer-bar a:hover,
.site-info a:hover {
    color: var(--tulo-orange);
}

/* WordPress admin bar login/logout area (visible when logged in) */
.logged-in-as,
.logged-in-as a {
    color: var(--tulo-text);
}

/* Search and other form containers that may inherit white */
.search-form,
.widget_search {
    background-color: transparent;
}

/* Comment form / comment area */
#respond,
.comment-list,
.comments-area {
    background-color: var(--tulo-surface-main);
}


/* ==========================================================================
   TYPOGRAPHY — HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a,
.widget-title,
.site-title,
.site-title a {
    font-family: var(--tulo-font-primary);
    color: var(--tulo-text);
}

h1, .entry-title, .site-title {
    font-size: 54px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -1px;
}

h2 {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

h3, .widget-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--tulo-muted);
}

h4 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Override parent theme .font-headlines and .wrap selectors
   that force "Open Sans" on widget titles, reply title, etc. */
.widget-title.font-headlines,
.archive-title.font-headlines,
.comment-reply-title.font-headlines,
h3.widget-title.font-headlines,
h3.comment-reply-title.font-headlines {
    font-family: var(--tulo-font-primary);
}

.widget-title > .wrap,
#comments-number > .wrap,
#reply-title > .wrap,
.comment-reply-title > .wrap,
.attachment-meta-title > .wrap {
    font-family: var(--tulo-font-primary);
}


/* ==========================================================================
   TYPOGRAPHY — BODY TEXT & LINKS
   ========================================================================== */
p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.667;
    color: var(--tulo-text);
    margin-bottom: 1.25em;
}

a {
    color: var(--tulo-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--tulo-orange-hover);
    text-decoration: none;
}

.entry-title a {
    color: var(--tulo-text);
}

.entry-title a:hover {
    color: var(--tulo-orange);
}


/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header,
.main-header,
#masthead {
    background-color: var(--tulo-dark);
}

.site-title a,
.site-title a:hover {
    color: var(--tulo-text);
}

.site-description {
    color: var(--tulo-muted);
}

/* Top bar / breaking news bar — these are the dark bars from Envince */
.top-bar,
.below-header,
.breaking-news {
    background-color: var(--tulo-dark);
    color: var(--tulo-text-light);
}

/* Social icons bar at top of header */
#header > div:first-child {
    background-color: #333;
}

/* Primary navigation */
.navbar-default,
.main-navigation {
    background-color: var(--tulo-dark);
    border: none;
}

#header .navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a,
.main-navigation a {
    font-family: var(--tulo-font-primary);
    font-weight: 500;
    font-size: 15px;
    color: var(--tulo-text-light);
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.2s ease;
}

#header .navbar-default .navbar-nav > li > a:hover,
#header .navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.main-navigation a:hover {
    color: var(--tulo-orange);
    background-color: transparent;
}

#header .navbar-default .navbar-nav > .active > a,
#header .navbar-default .navbar-nav > .active > a:hover,
#header .navbar-default .navbar-nav > .active > a:focus,
#header .navbar-default .navbar-nav > .current-menu-item > a,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .current-menu-item > a {
    color: var(--tulo-orange);
    background-color: transparent;
}

/* Dropdown menus */
.navbar-default .navbar-nav .open .dropdown-menu,
.dropdown-menu {
    background-color: var(--tulo-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a,
.dropdown-menu > li > a {
    color: var(--tulo-text-light);
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.dropdown-menu > li > a:hover {
    color: var(--tulo-orange);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile toggle */
.navbar-default .navbar-toggle {
    border-color: var(--tulo-muted);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: var(--tulo-text-light);
}


/* ==========================================================================
   BUTTONS & CALLS TO ACTION
   ========================================================================== */
.btn,
button,
input[type="submit"],
input[type="button"],
.reply a,
.more-link {
    font-family: var(--tulo-font-primary);
    font-weight: 700;
    font-size: 16px;
    background-color: var(--tulo-orange);
    color: var(--tulo-white);
    border: none;
    border-radius: 3px;
    padding: 12px 24px;
    text-transform: none;
    letter-spacing: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn:hover,
.btn:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.reply a:hover,
.more-link:hover {
    background-color: var(--tulo-orange-hover);
    color: var(--tulo-white);
    box-shadow: 0 2px 8px rgba(237, 84, 0, 0.3);
}

/* Secondary / outline button variant */
.btn-default,
.btn-secondary {
    background-color: var(--tulo-dark);
    color: var(--tulo-white);
}

.btn-default:hover,
.btn-secondary:hover {
    background-color: #0d0e15;
    color: var(--tulo-white);
}


/* ==========================================================================
   CONTENT AREA
   ========================================================================== */
.entry-content {
    font-family: var(--tulo-font-primary);
    font-size: 18px;
    line-height: 1.667;
    color: var(--tulo-text);
}

.entry-meta,
.entry-meta a,
.post-date,
.byline {
    font-family: var(--tulo-font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--tulo-muted);
}

.entry-meta a:hover {
    color: var(--tulo-orange);
}

/* Featured image — stretch to full article width */
article .entry-header .img-hyperlink img {
    width: 100%;
    height: auto;
}

/* Category labels / tags */
.cat-links a,
.tag-links a,
.entry-category a {
    color: var(--tulo-orange);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.widget {
    font-family: var(--tulo-font-primary);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tulo-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--tulo-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget ul li a {
    color: var(--tulo-text);
}

.widget ul li a:hover {
    color: var(--tulo-orange);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer,
#colophon,
.footer-bar {
    background-color: var(--tulo-dark);
    color: var(--tulo-text-light);
}

.site-footer a,
#colophon a,
.footer-bar a {
    color: var(--tulo-cream);
    transition: color 0.2s ease;
}

.site-footer a:hover,
#colophon a:hover,
.footer-bar a:hover {
    color: var(--tulo-orange);
}

.site-footer .widget-title {
    color: var(--tulo-text-light);
    border-bottom-color: var(--tulo-orange);
}


/* ==========================================================================
   ENVINCE MAGAZINE WIDGETS (specific overrides)
   ========================================================================== */

/* Category color accent — override Envince's default category colors */
.cat-item a:hover,
.widget_flavor_flavor_cat .flavor-title,
.flavor-cat .cat-title {
    color: var(--tulo-orange);
}

/* Magazine section titles */
.flavor-title,
.cat-title,
.tg-module-title {
    font-family: var(--tulo-font-primary);
    font-weight: 600;
    border-bottom-color: var(--tulo-orange);
}

/* Post thumbnail overlays */
.flavor-cat .post-thumbnail .entry-meta,
.flavor .post-thumbnail .entry-meta {
    font-family: var(--tulo-font-primary);
}


/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-family: var(--tulo-font-primary);
    font-size: 16px;
    color: var(--tulo-text);
    background-color: var(--tulo-white);
    border: 1px solid var(--tulo-cream-dark);
    border-radius: 3px;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--tulo-orange);
    box-shadow: 0 0 0 2px rgba(237, 84, 0, 0.15);
    outline: none;
}

/* Search widget */
.search-form .search-submit {
    background-color: var(--tulo-orange);
    color: var(--tulo-white);
    border: none;
}


/* ==========================================================================
   BREADCRUMBS & PAGINATION
   ========================================================================== */
.breadcrumb,
.breadcrumb-trail {
    font-family: var(--tulo-font-primary);
    font-size: 14px;
    color: var(--tulo-muted);
    background-color: transparent;
}

.breadcrumb a {
    color: var(--tulo-orange);
}

.pagination .page-numbers,
.nav-links .page-numbers {
    font-family: var(--tulo-font-primary);
    color: var(--tulo-text);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background-color: var(--tulo-orange);
    color: var(--tulo-white);
    border-color: var(--tulo-orange);
}


/* ==========================================================================
   UTILITY — ENVINCE PRIMARY COLOR OVERRIDE
   ========================================================================== */

/* Override Envince's built-in primary color wherever it's applied inline */
.envince-primary-color,
.flavor-title::after,
.flavor-title::before {
    color: var(--tulo-orange);
}

.envince-primary-bgcolor {
    background-color: var(--tulo-orange);
}


/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991px) {
    h1, .entry-title {
        font-size: 36px;
    }

    h2 {
        font-size: 30px;
    }

    h3, .widget-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    h1, .entry-title {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    body {
        font-size: 16px;
    }

    p, .entry-content {
        font-size: 16px;
    }
}
