/*
Theme Name: Playa Dust Hair
Theme URI: https://playadust.com
Author: Playa Dust Hair
Author URI: https://playadust.com
Description: A desert boho e-commerce theme for Playa Dust Hair products. Features a full-width hero, product grid, inspirational gallery, and about section with a mobile-optimized layout and slide-out drawer menu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: playa-dust
Tags: e-commerce, one-page, mobile-first, custom-menu, featured-images, full-width-template

*/

/* ─────────────────────────────────────────
   TABLE OF CONTENTS
   1. CSS Variables & Reset
   2. Typography
   3. Buttons
   4. Navigation & Drawer
   5. Hero Section
   6. Products Section
   7. Inspo Gallery Section
   8. About Section
   9. Footer
   10. Animations
   11. Responsive Breakpoints
   12. WordPress Core Alignment Classes
───────────────────────────────────────── */

/* ── 1. CSS Variables & Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sand:       #E8D5B0;
  --sand-dark:  #C9A96A;
  --terra:      #A0522D;
  --dust:       #D4956A;
  --cream:      #FBF5EC;
  --sage:       #8A9E7E;
  --charcoal:   #3D3530;
  --warm-white: #FAF6F0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── 2. Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--charcoal);
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.section-title em {
  font-style: italic;
  color: var(--terra);
}

/* ── 3. Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--terra);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #8B3E1A;
  transform: translateY(-1px);
  color: white;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--terra);
  color: var(--terra);
  padding: 0.78rem 1.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--terra);
  color: white;
}

.btn-buy {
  background: var(--terra);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.44rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-buy:hover {
  background: #8B3E1A;
}

.btn-buy.added {
  background: var(--sage);
}

/* ── 4. Navigation & Drawer ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61, 53, 48, 0.5);
  z-index: 350;
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-overlay.show {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 270px;
  background: var(--cream);
  z-index: 400;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 2.5rem;
  box-shadow: -6px 0 30px rgba(61, 53, 48, 0.2);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.drawer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--terra);
}

.drawer-logo span {
  font-style: italic;
  color: var(--dust);
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--charcoal);
  line-height: 1;
  padding: 0.25rem;
}

.drawer-close:hover {
  color: var(--terra);
}

.drawer-nav {
  list-style: none;
  flex: 1;
}

.drawer-nav li {
  border-bottom: 1px solid rgba(201, 169, 106, 0.25);
}

.drawer-nav a {
  display: block;
  padding: 0.95rem 0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s, padding-left 0.2s;
}

.drawer-nav a:hover {
  color: var(--terra);
  padding-left: 0.5rem;
}

.drawer-footer {
  margin-top: 2rem;
}

.drawer-footer a {
  display: block;
  text-align: center;
  background: var(--terra);
  color: white;
  padding: 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.drawer-footer a:hover {
  background: #8B3E1A;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: rgba(251, 245, 236, 0.97);
  border-bottom: 1px solid rgba(201, 169, 106, 0.3);
}

.site-branding .site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--terra);
  text-decoration: none;
  margin: 0;
  font-weight: 400;
}

.site-branding .site-title span {
  font-style: italic;
  color: var(--dust);
}

#primary-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-navigation ul li a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}

#primary-navigation ul li a:hover {
  color: var(--terra);
}

#primary-navigation .nav-cta {
  background: var(--terra);
  color: white !important;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-size: 0.74rem;
}

#primary-navigation .nav-cta:hover {
  background: #8B3E1A;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 5. Hero Section ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 62px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 3.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--sand);
  color: var(--terra);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.3rem;
  width: fit-content;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--terra);
}

.hero-sub {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #6B5E52;
  max-width: 400px;
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 53, 48, 0.5) 0%, transparent 50%);
}

.hero-tag {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: white;
  background: rgba(61, 53, 48, 0.55);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  white-space: nowrap;
}

/* ── 6. Products Section ── */
#products {
  background: var(--warm-white);
  padding: 5rem 3rem;
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 106, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(160, 82, 45, 0.12);
}

.product-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--terra);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.product-body {
  padding: 1.2rem;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.product-desc {
  font-size: 0.76rem;
  color: #7A6A60;
  line-height: 1.55;
  margin-bottom: 0.9rem;
  font-weight: 300;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--terra);
}

/* ── 7. Inspo Gallery Section ── */
#inspo {
  background: var(--cream);
  padding: 5rem 3rem;
}

.inspo-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.inspo-subtext {
  font-size: 0.9rem;
  color: #7A6A60;
  max-width: 460px;
  margin: 0.5rem auto 0;
  font-weight: 300;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-width: 980px;
  margin: 0 auto;
}

.g-item {
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.g-item:first-child {
  grid-column: span 2;
}

.g-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.g-item:hover img {
  transform: scale(1.04);
}

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 53, 48, 0.65) 0%, transparent 55%);
}

.g-caption {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: white;
}

/* ── 8. About Section ── */
#about {
  background: var(--sand);
  padding: 5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-body {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #5A4A3F;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--terra);
  display: block;
}

.stat-l {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A6A60;
  font-weight: 600;
}

.about-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-imgs img {
  width: 100%;
  object-fit: cover;
  border-radius: 13px;
  display: block;
}

/* ── 9. Footer ── */
#colophon {
  background: var(--charcoal);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--sand);
}

.footer-logo span {
  font-style: italic;
  color: var(--dust);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--sand);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(251, 245, 236, 0.4);
  margin-top: 0.6rem;
  font-weight: 300;
}

/* ── 10. Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fu { opacity: 0; animation: fadeUp 0.65s ease forwards; }
.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; }

/* ── 11. Responsive Breakpoints ── */
@media (max-width: 900px) {
  #primary-navigation { display: none; }
  .hamburger { display: flex; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { order: 2; padding: 2.5rem 1.5rem; }
  .hero-right { order: 1; height: 55vw; min-height: 260px; }

  #about { grid-template-columns: 1fr; gap: 2rem; }
  .about-imgs { grid-template-columns: repeat(3, 1fr); }
  .about-imgs img { height: 150px !important; }

  #products, #inspo, #about { padding: 3.5rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-right { height: 62vw; }
  .hero-title { font-size: 1.85rem; }

  #products, #inspo, #about { padding: 3rem 1rem; }
  .products-grid { gap: 0.8rem; }
  .product-img { height: 150px; }
  .product-desc { display: none; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-item:first-child { grid-column: span 2; }

  .about-imgs { display: none; }
  .footer-links { gap: 0.85rem; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-img { height: 200px; }
  .product-desc { display: block; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-item:first-child { grid-column: span 1; }
}

/* ── 12. WordPress Core Classes ── */
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}
