/*
Theme Name: The Hospitality Desk by Naved
Theme URI: https://thdbynaved.uplifthotels.com
Author: Naved
Description: Editorial blog theme for The Hospitality Desk by Naved — smart insights and premium features for the modern corporate traveler.
Version: 1.0
Text Domain: thd-theme
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root{
  --thd-navy: #16213a;
  --thd-navy-deep: #0e1626;
  --thd-white: #ffffff;
  --thd-cream: #f7f7f5;
  --thd-gray: #6b7280;
  --thd-border: #e6e6e2;
  --thd-accent: #2f6fed;
  --thd-pill-bg: #f1f1ee;

  --thd-font-display: 'Playfair Display', Georgia, serif;
  --thd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --thd-max-width: 1160px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: var(--thd-font-body);
  color: var(--thd-navy);
  background: var(--thd-white);
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }

.thd-container{
  max-width: var(--thd-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.thd-site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--thd-white);
  border-bottom: 1px solid var(--thd-border);
}
.thd-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.thd-logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--thd-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--thd-navy);
}
.thd-logo-mark{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--thd-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--thd-font-display);
  font-size: 16px;
  flex-shrink: 0;
}
.thd-logo img{ height:38px; width:auto; }
.thd-logo-img{ height: 40px; width: auto; }
.thd-logo-text{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.thd-logo-line1{
  font-family: var(--thd-font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--thd-navy);
}
.thd-logo-line2{
  font-family: var(--thd-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--thd-gray);
}

.thd-nav ul{ display: flex; gap: 28px; }
.thd-nav a{
  font-size: 15px;
  font-weight: 500;
  color: var(--thd-navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.thd-nav a:hover,
.thd-nav .current-menu-item a{
  color: var(--thd-accent);
  border-bottom-color: var(--thd-accent);
}

.thd-nav-toggle{ display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.thd-hero{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--thd-navy-deep);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.thd-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,22,38,.55) 0%, rgba(14,22,38,.75) 100%);
}
.thd-hero-content{
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 40px 24px;
}
.thd-hero-content h1{
  font-family: var(--thd-font-display);
  color: var(--thd-white);
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: .03em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.thd-hero-content p{
  color: rgba(255,255,255,.9);
  font-size: clamp(15px, 2vw, 18px);
  margin: 0;
  font-weight: 300;
}

/* placeholder hero pattern shown until a header image is set in Customizer */
.thd-hero.thd-hero--placeholder{
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px);
}

/* ==========================================================================
   Secondary nav
   ========================================================================== */
.thd-subnav{
  background: var(--thd-white);
  border-bottom: 1px solid var(--thd-border);
}
.thd-subnav ul{
  display: flex;
  gap: 32px;
  padding: 18px 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.thd-subnav a{
  font-size: 15px;
  font-weight: 600;
  color: var(--thd-navy);
}
.thd-subnav a:hover,
.thd-subnav .current-menu-item a{ color: var(--thd-accent); }

/* ==========================================================================
   Layout: content + sidebar
   ========================================================================== */
.thd-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}
@media (max-width: 900px){
  .thd-layout{ grid-template-columns: 1fr; padding: 32px 0; }
}

/* ==========================================================================
   Blog grid / cards
   ========================================================================== */
.thd-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 640px){
  .thd-grid{ grid-template-columns: 1fr; }
}

.thd-card{
  background: var(--thd-white);
  border: 1px solid var(--thd-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.thd-card:hover{
  box-shadow: 0 12px 24px rgba(20,25,45,.08);
  transform: translateY(-2px);
}
.thd-card-thumb{
  aspect-ratio: 16/10;
  background: var(--thd-cream);
  position: relative;
  overflow: hidden;
}
.thd-card-thumb img{
  width: 100%; height: 100%; object-fit: cover;
}
/* placeholder shown when a post has no featured image yet */
.thd-card-thumb.thd-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9b9b3;
  background:
    linear-gradient(135deg, #f1f1ee 25%, transparent 25%) -10px 0/ 20px 20px,
    linear-gradient(225deg, #f1f1ee 25%, transparent 25%) -10px 0/ 20px 20px,
    var(--thd-cream);
}
.thd-card-thumb.thd-placeholder svg{ width: 40px; height: 40px; opacity: .5; }

.thd-card-body{ padding: 18px 20px 22px; }
.thd-card-body h2{
  font-family: var(--thd-font-display);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.thd-card-body h2 a:hover{ color: var(--thd-accent); }
.thd-card-body p{
  font-size: 14px;
  color: var(--thd-gray);
  margin: 0 0 14px;
  line-height: 1.5;
}
.thd-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.thd-tags span{
  background: var(--thd-pill-bg);
  color: var(--thd-navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.thd-sidebar-block{
  background: var(--thd-white);
  border: 1px solid var(--thd-border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px;
}
.thd-search-form{ display: flex; gap: 8px; }
.thd-search-form input[type="search"]{
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--thd-border);
  border-radius: 6px;
  font-family: var(--thd-font-body);
  font-size: 14px;
}
.thd-search-form button{
  background: var(--thd-navy);
  border: none;
  color: var(--thd-white);
  width: 44px;
  border-radius: 6px;
  cursor: pointer;
}
.thd-search-form button:hover{ background: var(--thd-accent); }

.thd-sidebar-block h3{
  font-family: var(--thd-font-display);
  font-size: 19px;
  margin: 0 0 14px;
}
.thd-popular-list{ counter-reset: thd-count; }
.thd-popular-list li{
  counter-increment: thd-count;
  display: flex;
  gap: 10px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--thd-border);
}
.thd-popular-list li:last-child{ border-bottom: none; }
.thd-popular-list li::before{
  content: counter(thd-count) ".";
  font-weight: 700;
  color: var(--thd-accent);
  flex-shrink: 0;
}
.thd-popular-list a:hover{ color: var(--thd-accent); }

.thd-subscribe p{
  font-size: 13px;
  color: var(--thd-gray);
  margin: 0 0 14px;
}
.thd-subscribe-form{ display: flex; gap: 8px; }
.thd-subscribe-form input[type="email"]{
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--thd-border);
  border-radius: 6px;
  font-family: var(--thd-font-body);
  font-size: 14px;
}
.thd-subscribe-form button{
  background: var(--thd-accent);
  border: none;
  color: var(--thd-white);
  width: 44px;
  border-radius: 6px;
  cursor: pointer;
}
.thd-subscribe-note{ font-size: 11px !important; color: #a0a0a0 !important; margin-top: 8px !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.thd-site-footer{
  background: var(--thd-navy-deep);
  color: rgba(255,255,255,.75);
  padding: 34px 0;
}
.thd-footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.thd-footer-logo-img{
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.thd-footer-links,
.thd-footer-links ul{ display: flex; gap: 20px; }
.thd-footer-links a{ font-size: 13px; text-decoration: underline; }
.thd-footer-links a:hover{ color: var(--thd-white); }
.thd-footer-copy{ font-size: 13px; }

/* ==========================================================================
   Single post / page basics
   ========================================================================== */
.thd-single{ padding: 48px 0; max-width: 760px; margin: 0 auto; }
.thd-single h1{ font-family: var(--thd-font-display); font-size: clamp(28px,4vw,42px); }
.thd-single .thd-meta{ color: var(--thd-gray); font-size: 14px; margin-bottom: 12px; }

.thd-share{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.thd-share-label{
  font-size: 13px;
  font-weight: 600;
  color: var(--thd-gray);
  margin-right: 2px;
}
.thd-share-btn{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--thd-border);
  background: var(--thd-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--thd-navy);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.thd-share-btn:hover{
  background: var(--thd-accent);
  color: var(--thd-white);
  border-color: var(--thd-accent);
}
.thd-copy-feedback{
  font-size: 12px;
  color: var(--thd-accent);
  font-weight: 600;
}

.thd-author-byline{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--thd-gray);
  margin-bottom: 24px;
}
.thd-author-avatar-sm{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.thd-author-box{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--thd-cream);
  border: 1px solid var(--thd-border);
  border-radius: 10px;
  padding: 22px;
  margin-top: 36px;
}
.thd-author-avatar-lg{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.thd-author-box-text h4{
  font-family: var(--thd-font-display);
  font-size: 17px;
  margin: 0 0 4px;
}
.thd-author-role{
  font-size: 13px;
  font-weight: 600;
  color: var(--thd-accent);
  margin: 0 0 8px;
}
.thd-author-bio{
  font-size: 14px;
  color: var(--thd-gray);
  line-height: 1.6;
  margin: 0;
}
.thd-single .thd-featured{ border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.thd-single .thd-featured img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.thd-single-content{ font-size: 17px; line-height: 1.75; }
.thd-single-content p{ margin: 0 0 20px; }

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 780px){
  .thd-nav{ display: none; }
  .thd-nav-toggle{
    display: inline-flex;
    background: none;
    border: 1px solid var(--thd-border);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
  }
  .thd-nav.thd-nav--open{
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--thd-white);
    border-bottom: 1px solid var(--thd-border);
    padding: 12px 24px 20px;
  }
  .thd-nav.thd-nav--open ul{ flex-direction: column; gap: 14px; }
  .thd-subnav ul{ gap: 16px; }
}
