/*  
Theme Name: Deshotels Custom Theme
Author: Michelle Deshotels
Version: 2.0.0
Description: A custom block theme with full site editing support
*/

/* ============================================================
   GLOBAL
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
    background: #ffffff;
}

a {
    color: #D90368;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #47034E;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   FLUID TYPOGRAPHY
   ============================================================ */
h1 {
    font-size: clamp(2.44rem, 1.74vw + 2.01rem, 3.75rem);
}

h2 {
    font-size: clamp(1.95rem, 1.39vw + 1.61rem, 2.81rem);
}

h3 {
    font-size: clamp(1.56rem, 1.12vw + 1.28rem, 2.11rem);
}

h4 {
    font-size: clamp(1.25rem, 0.89vw + 1.03rem, 1.58rem);
}

h5, p {
    font-size: clamp(1rem, 0.25vw + 0.84rem, 1.19rem);
}

/* ============================================================
   CONTENT WIDTH FIXES
   ============================================================ */
.entry-content,
.wp-block-post-content,
.wp-block-group.is-layout-constrained {
    max-width: 100% !important;
    width: 100% !important;
}

.wp-block-group.alignwide {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-group.alignfull {
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.siteHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #ffffff;
    border-bottom: 3px dotted #D90368;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.siteHeader .wp-block-site-logo img {
    border-radius: 15px;
}

.siteHeader .wp-block-site-title a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    color: #47034E;
    text-decoration: none;
}

.siteHeader .wp-block-site-title a:hover {
    color: #9B51E0;
    text-decoration: none;
}

.siteHeader .wp-block-navigation a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #47034E;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    text-decoration: none;
}

.siteHeader .wp-block-navigation a:hover {
    color: #D90368;
    text-decoration: none;
    background-color: transparent;
}

.siteHeader .wp-block-navigation .current-menu-item a {
    color: #ffffff;
    font-weight: 700;
    background-color: #D90368;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.mainFooter {
    background-color: #37123C;
    color: #ffffff;
    padding: 2.5rem 2rem 1.5rem;
}

.mainFooter .wp-block-site-logo img {
    border-radius: 15px;
}

.mainFooter .wp-block-site-tagline {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Three column layout */
.footerColumns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

@media screen and (min-width: 768px) {
    .footerColumns {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }
}

.footerLeft {
    flex: 0 0 auto;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .footerLeft {
        width: 30%;
    }
}

.footerNav {
    flex: 0 0 auto;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .footerNav {
        width: 25%;
    }
}

.footerRight {
    flex: 0 0 auto;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .footerRight {
        width: 30%;
    }
}

/* Footer headings */
.footerNavHeading {
    color: #BC96E6;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(188,150,230,0.3);
}

/* Footer nav list */
.footerNavList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footerNavList li {
    margin-bottom: 0.5rem;
}

.footerNavList a {
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footerNavList a:hover {
    color: #FF8A5B;
    text-decoration: none;
}

/* Footer contact link */
.footerContactLink {
    color: #FF8A5B;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
}

.footerContactLink:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Copyright */
.footerCopyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-top: 1rem;
    line-height: 1.6;
}

/* LinkedIn link */
.footerLinkedIn a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: color 0.2s ease;
}

.footerLinkedIn a:hover {
    color: #FF8A5B;
    text-decoration: none;
}

.footerLinkedIn svg {
    flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.trenches-hero {
    background-image: url(images/In_the_Trenches_Hero_-_Light_v6.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    aspect-ratio: 16/9;
    min-height: 500px;
}

/* ============================================================
   BLOG INTRO
   ============================================================ */
.blog-intro {
    max-width: 860px;
    margin: 3rem auto;
    padding: 0 2rem 3rem;
    text-align: center;
}

/* ============================================================
   POSTS SECTION
   ============================================================ */
.posts-section {
    background: #F8F8F8;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wp-block-query {
    margin-top: 2rem;
}

.posts-section .wp-block-query {
    width: 100% !important;
    max-width: 100% !important;
}

.wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.posts-section .wp-block-post-template {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 900px) {
    .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   POST CARDS
   ============================================================ */
.wp-block-post-featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}

.wp-block-post {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(217,3,104,0.15);
}

.wp-block-post .wp-block-post-terms a {
    display: inline-block;
    background: #D90368;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    text-decoration: none;
    margin: 0.75rem 0.75rem 0;
}

.wp-block-post .wp-block-post-title {
    padding: 0.5rem 0.75rem 0;
}

.wp-block-post .wp-block-post-title a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #37123C;
    text-decoration: none;
    line-height: 1.3;
}

.wp-block-post .wp-block-post-title a:hover {
    color: #D90368;
    text-decoration: none;
}

.wp-block-post .wp-block-post-excerpt {
    padding: 0.5rem 0.75rem 1rem;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.wp-block-post .wp-block-post-excerpt__more-link a {
    color: #D90368;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.wp-block-query-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination-numbers a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 2px solid #D90368;
    color: #D90368;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination-numbers a:hover {
    background: #D90368;
    color: #ffffff;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.content-wrapper {
    max-width: 1200px;
    margin: 2rem auto 6rem;
    padding: 0 2rem;
}

.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.post-wrap {
    flex: 1;
    min-width: 0;
}

.post-wrap .wp-block-post-featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.post-wrap .wp-block-post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}
        
        /* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid #BC96E6;
    border-radius: 4px;
    background: #ffffff;
    color: #1A1A1A;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #47034E;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #D90368;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #47034E;
}

.wp-block-post-title,
h1.entry-title {
    display: none;
}
