/*
Theme Name: HSC Editorial
Theme URI: https://livehsc.com
Author: House of Shazia Cheema
Author URI: https://livehsc.com
Description: A refined editorial theme for House of Shazia Cheema — events, weddings, and the HSC course portfolio. Inspired by the quiet, magazine-led aesthetic of luxury wedding studios. Generous whitespace, italic serif headlines, and image-first storytelling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hsc-editorial
Tags: editorial, elegant, minimal, wedding, events, portfolio, blog
*/

/* ==========================================================================
   1. RESET & ROOT
   ========================================================================== */

:root {
  --cream:        #f4efe6;
  --cream-deep:   #ebe3d4;
  --ink:          #1a1a1a;
  --ink-soft:     #3a3a3a;
  --muted:        #6f6353;
  --rule:         #cfc4b0;
  --accent:       #8c6f4a;
  --serif:        'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity .3s ease, color .3s ease; }
a:hover { opacity: .65; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 em, h2 em, h3 em, h4 em { font-style: italic; font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

p { color: var(--ink-soft); }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.container { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
.container--narrow { max-width: 900px; }
.container--medium { max-width: 1100px; }

section { padding: 7rem 0; }

.divider {
  width: 40px; height: 1px;
  background: var(--ink);
  margin: 2.5rem auto;
}

/* ==========================================================================
   4. HEADER / NAV
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: #fff;
  transition: background .4s ease, padding .4s ease;
}

.site-header.is-scrolled {
  background: var(--cream);
  color: var(--ink);
  mix-blend-mode: normal;
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--rule);
}

.site-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: inherit;
}

.site-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: .7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  color: inherit;
  font-size: .75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  min-height: 44px;
  min-width: 44px;
  padding: .75rem 1rem;
  margin: -.75rem -1rem;
}

/* ==========================================================================
   5. HERO (used on multiple page templates)
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.hero--short { height: 70vh; min-height: 480px; }

.hero__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72);
}

.hero__content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 6rem;
  color: #fff;
}

.hero__content--center {
  justify-content: center;
  text-align: center;
  padding: 0 3rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: .7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: .9;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.95;
  max-width: 16ch;
  margin-bottom: 2rem;
  color: #fff;
}

.hero__content--center .hero__title { max-width: 22ch; }

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: .7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.5);
  width: fit-content;
  transition: gap .4s ease;
}

.hero__cta::after { content: '→'; font-size: 1rem; }
.hero__cta:hover { gap: 1.5rem; opacity: 1; }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: .7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}

.btn:hover { background: var(--ink); color: var(--cream); opacity: 1; }

.btn--light {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--light:hover { background: var(--cream); color: var(--ink); }

.btn--filled { background: var(--ink); color: var(--cream); }
.btn--filled:hover { background: transparent; color: var(--ink); }

/* ==========================================================================
   7. INTRO / TEXT SECTIONS
   ========================================================================== */

.intro {
  padding: 10rem 0 7rem;
  text-align: center;
}

.intro__title {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  max-width: 24ch;
  margin: 1.5rem auto 2.5rem;
}

.intro p {
  max-width: 56ch;
  margin: 0 auto 1.25rem;
  font-size: 1.02rem;
}

/* ==========================================================================
   8. FEATURE GRID (3-up cards)
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature {
  position: relative;
  text-align: left;
}

.feature__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.feature__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.feature:hover .feature__image img { transform: scale(1.04); }

.feature__title {
  font-size: 1.7rem;
  margin-bottom: .5rem;
}

.feature__desc {
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   9. SHOWCASE (alternating image + text)
   ========================================================================== */

.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.showcase__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.showcase__image img {
  width: 100%; height: 100%; object-fit: cover;
}

.showcase__title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
}

.showcase__text p { margin-bottom: 1.1rem; }

.showcase--reverse .showcase__inner { direction: rtl; }
.showcase--reverse .showcase__inner > * { direction: ltr; }

/* ==========================================================================
   10. PRESS / LOGOS BAR
   ========================================================================== */

.press {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.press__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.press__label {
  font-size: .65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.press__logos {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.press__logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  opacity: .65;
}

/* ==========================================================================
   11. QUOTE SECTION
   ========================================================================== */

.quote-block {
  padding: 9rem 0;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
}

.quote-block blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 auto 2rem;
}

.quote-block cite {
  font-style: normal;
  font-size: .7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: .55;
}

/* ==========================================================================
   12. MARQUEE / SCROLLING GALLERY
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding: 5rem 0;
}

.marquee__track {
  display: flex;
  gap: 1.5rem;
  animation: marquee-scroll 50s linear infinite;
  width: max-content;
}

.marquee__track img {
  height: 360px;
  width: auto;
  object-fit: cover;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   13. CTA FOOTER (above site footer)
   ========================================================================== */

.cta-band {
  padding: 9rem 0;
  text-align: center;
}

.cta-band__title {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1;
  margin-bottom: 2rem;
}

.cta-band p {
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   14. COURSE PAGE
   ========================================================================== */

.curriculum {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.curriculum__module {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.curriculum__module:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 2.5rem; }
.curriculum__module:nth-child(even) { padding-left: 2.5rem; }

.curriculum__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--muted);
  min-width: 60px;
}

.curriculum__title {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.curriculum__desc {
  font-size: .9rem;
  color: var(--ink-soft);
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4rem;
}

.course-meta__item {
  text-align: center;
}

.course-meta__label {
  font-size: .65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

.course-meta__value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
}

/* ==========================================================================
   15. BLOG / JOURNAL
   ========================================================================== */

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}

.post-card {
  display: block;
}

.post-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.post-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.post-card:hover .post-card__image img { transform: scale(1.04); }

.post-card__meta {
  font-size: .65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}

.post-card__title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.post-card__excerpt {
  font-size: .95rem;
  color: var(--ink-soft);
}

/* Single post */
.single-post-hero {
  padding: 9rem 0 4rem;
  text-align: center;
}

.single-post-hero__meta {
  margin-bottom: 1.5rem;
}

.single-post-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  max-width: 22ch;
  margin: 0 auto 2rem;
}

.single-post-featured {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 4rem;
}

.single-post-featured img { width: 100%; height: 100%; object-fit: cover; }

.single-post-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}

.single-post-body p { margin-bottom: 1.5rem; }
.single-post-body h2 { font-size: 2rem; margin: 3rem 0 1rem; }
.single-post-body h3 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.single-post-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 3rem 0;
  text-align: center;
}
.single-post-body img { margin: 2.5rem 0; }
.single-post-body a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ==========================================================================
   16. SITE FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 0 2rem;
}

.site-footer .container { padding: 0 3rem; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.footer-brand__desc {
  font-size: .9rem;
  opacity: .65;
  max-width: 32ch;
  color: var(--cream);
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: .5;
  font-weight: 500;
  color: var(--cream);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .7rem; }
.footer-col a { font-size: .95rem; opacity: .85; color: var(--cream); }

.site-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(244,239,230,.15);
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  opacity: .5;
  letter-spacing: .08em;
}

/* ==========================================================================
   17. REVEAL ANIMATION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS never runs (blocked, fails, or slow to parse), don't leave
   content permanently invisible. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Respect OS-level reduced motion preference: still show content,
   just skip the animated entrance. */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }
}

/* ==========================================================================
   18. WORDPRESS CORE STYLES
   ========================================================================== */

.alignleft  { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; padding-top: .5rem; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); height: 1px;
  overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}

.sticky { background: var(--cream-deep); padding: 1rem; }
.bypostauthor { /* required by WP */ }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 0;
  font-size: .8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pagination a, .pagination .current {
  padding: .75rem 1.25rem;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.pagination .current { background: var(--ink); color: var(--cream); }

/* Comments (basic styling so they don't look ugly) */
.comments-area { max-width: 680px; margin: 4rem auto; padding: 0 2rem; }
.comments-title { font-size: 1.8rem; margin-bottom: 2rem; }
.comment-list { list-style: none; }
.comment-body { padding: 2rem 0; border-bottom: 1px solid var(--rule); }

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  .site-header { padding: 1rem 1.5rem; }
  .site-header.is-scrolled { padding: .75rem 1.5rem; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .site-nav.is-open {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    z-index: 99;
    padding: 6rem 2rem 2rem;
    color: var(--ink);
  }
  .site-nav.is-open ul {
    flex-direction: column;
    gap: 2rem;
    font-size: 1rem;
  }

  .hero__content { padding: 0 1.5rem 3rem; }
  section { padding: 4rem 0; }
  .intro { padding: 6rem 0 4rem; }
  .features { grid-template-columns: 1fr; gap: 2rem; }
  .showcase__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .showcase--reverse .showcase__inner { direction: ltr; }
  .posts { grid-template-columns: 1fr; }
  .curriculum { grid-template-columns: 1fr; }
  .curriculum__module:nth-child(odd),
  .curriculum__module:nth-child(even) {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
  .course-meta { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .site-footer__bottom { flex-direction: column; gap: .5rem; }
  .press__inner { justify-content: center; text-align: center; }
}
