/*
Theme Name: Crelooking
Theme URI: https://crelooking.com
Description: Premium Beauty Tech & Aesthetics theme — luxury editorial design for the anglophone affiliate market.
Author: Crelooking
Author URI: https://crelooking.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: crelooking
*/

/* ============================================================
   CRELOOKING DESIGN SYSTEM
   Direction: Luxury Editorial × High-Tech Minimalism
   References: Aesop.com, The Strategist, Net-a-Porter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cr-bg: #FAFAF8;
  --cr-fg: #1A1A1A;
  --cr-accent: #B8936A;
  --cr-accent-dark: #96774F;
  --cr-accent-light: #D4B88A;
  --cr-muted: #8A8A8A;
  --cr-light: #F2F0EC;
  --cr-card: #FFFFFF;
  --cr-dark: #111111;
  --cr-teal: #2D6A6A;
  --cr-rose: #C08B7E;
  --cr-border: rgba(0,0,0,0.06);
  --cr-serif: 'Playfair Display', Georgia, serif;
  --cr-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --cr-radius: 0px;
  --cr-shadow: 0 4px 24px rgba(0,0,0,0.04);
  --cr-shadow-hover: 0 16px 48px rgba(0,0,0,0.08);
  --cr-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --cr-max-width: 1280px;
}

/* ===== GLOBAL RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--cr-bg) !important;
  color: var(--cr-fg);
  font-family: var(--cr-sans) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.woocommerce-loop-product__title {
  font-family: var(--cr-serif) !important;
  letter-spacing: -0.01em;
}

a { transition: var(--cr-transition); }
img { max-width: 100%; height: auto; }

/* ===== ASTRA OVERRIDES ===== */
.ast-container { max-width: var(--cr-max-width) !important; }
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-page {
  background: transparent !important;
  padding: 0 !important;
}

/* ============================================================
   HEADER
   ============================================================ */

/* Top announcement bar */
.cr-topbar {
  background: var(--cr-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--cr-sans);
}
.cr-topbar a { color: var(--cr-accent); text-decoration: underline; text-underline-offset: 2px; }
.cr-topbar a:hover { color: var(--cr-accent-light); }

/* Main header */
.cr-header {
  background: var(--cr-fg);
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cr-header-inner {
  max-width: var(--cr-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.cr-logo {
  font-family: var(--cr-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.cr-logo span { color: var(--cr-accent); }

/* Navigation */
.cr-nav { display: flex; align-items: center; gap: 2rem; }
.cr-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  font-family: var(--cr-sans);
}
.cr-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cr-accent);
  transition: width 0.3s ease;
}
.cr-nav a:hover { color: white; }
.cr-nav a:hover::after { width: 100%; }
.cr-nav a.active { color: var(--cr-accent); }

/* Mobile toggle */
.cr-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.cr-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: var(--cr-transition);
}

/* Mobile menu */
.cr-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cr-fg);
  z-index: 99999;
  padding: 80px 5vw 40px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.cr-mobile-menu.active { display: flex; }
.cr-mobile-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1.4rem;
  font-family: var(--cr-serif);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
}
.cr-mobile-menu a:hover { color: var(--cr-accent); }
.cr-mobile-close {
  position: absolute;
  top: 20px;
  right: 5vw;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hide Astra header */
.site-header,
#ast-desktop-header,
.ast-mobile-header-wrap,
.ast-above-header-bar,
.ast-main-header-bar-alignment { display: none !important; }

@media (max-width: 900px) {
  .cr-nav { display: none; }
  .cr-mobile-toggle { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.cr-footer {
  background: var(--cr-dark);
  color: rgba(255,255,255,0.6);
  font-family: var(--cr-sans);
}
.cr-footer-inner {
  max-width: var(--cr-max-width);
  margin: 0 auto;
  padding: 5rem 5vw 2rem;
}
.cr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.cr-footer-brand h3 {
  font-family: var(--cr-serif);
  font-size: 1.8rem;
  color: white;
  font-weight: 400;
  margin: 0 0 1rem;
}
.cr-footer-brand h3 span { color: var(--cr-accent); }
.cr-footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}
.cr-footer h4 {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cr-accent);
  font-weight: 600;
  margin: 0 0 1.5rem;
}
.cr-footer ul { list-style: none; padding: 0; margin: 0; }
.cr-footer li { margin-bottom: 0.8rem; }
.cr-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
}
.cr-footer a:hover { color: var(--cr-accent); }
.cr-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  max-width: var(--cr-max-width);
  margin: 0 auto;
}
.cr-footer-legal { display: flex; gap: 2rem; }
.cr-footer-legal a { color: rgba(255,255,255,0.3); font-size: 0.72rem; }
.cr-footer-legal a:hover { color: var(--cr-accent); }

/* Hide Astra footer */
.site-footer,
.ast-small-footer,
.ast-footer-overlay,
.site-above-footer-wrap,
#ast-footer-markup { display: none !important; }

@media (max-width: 768px) {
  .cr-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cr-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 500px) {
  .cr-footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTENT AREAS
   ============================================================ */

/* Blog / Archive */
.ast-archive-description { padding: 3rem 0 1rem !important; }
.ast-archive-description .page-title {
  font-family: var(--cr-serif) !important;
  font-size: 2.4rem !important;
  font-weight: 400 !important;
}

/* Single post */
.single .entry-header { padding: 3rem 0 1rem !important; }
.single .entry-title {
  font-size: 2.4rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

/* Post content */
.entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
}
.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 2.5rem;
}
.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 2rem;
}
.entry-content a {
  color: var(--cr-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(184,147,106,0.3);
}
.entry-content a:hover {
  color: var(--cr-fg);
  text-decoration-color: var(--cr-fg);
}

/* WooCommerce */
.woocommerce .products .product {
  background: var(--cr-card);
  border: 1px solid var(--cr-border);
  transition: var(--cr-transition);
}
.woocommerce .products .product:hover {
  transform: translateY(-4px);
  box-shadow: var(--cr-shadow-hover);
}
.woocommerce .button,
.woocommerce a.button {
  background: var(--cr-fg) !important;
  color: white !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-family: var(--cr-sans) !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  transition: var(--cr-transition) !important;
}
.woocommerce .button:hover,
.woocommerce a.button:hover {
  background: var(--cr-accent) !important;
  color: var(--cr-fg) !important;
}

/* ============================================================
   UTILITY CLASSES (for page content)
   ============================================================ */
.cr-section { padding: 6rem 5vw; max-width: var(--cr-max-width); margin: 0 auto; }
.cr-section-tag {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cr-accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cr-section-tag::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--cr-accent);
}
.cr-section-title {
  font-family: var(--cr-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}
.cr-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--cr-sans);
  cursor: pointer;
  transition: var(--cr-transition);
  border: none;
  text-decoration: none;
}
.cr-btn-dark { background: var(--cr-fg); color: white; }
.cr-btn-dark:hover { background: var(--cr-accent); color: var(--cr-fg); }
.cr-btn-ghost { background: transparent; color: var(--cr-fg); border: 1.5px solid var(--cr-fg); }
.cr-btn-ghost:hover { background: var(--cr-fg); color: white; }
.cr-btn-accent { background: var(--cr-accent); color: var(--cr-fg); }
.cr-btn-accent:hover { background: var(--cr-accent-dark); }

/* Scroll reveal */
.cr-fade { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.cr-fade.visible { opacity: 1; transform: none; }
.cr-fade-d1 { transition-delay: 0.1s; }
.cr-fade-d2 { transition-delay: 0.2s; }
.cr-fade-d3 { transition-delay: 0.3s; }
