/*
Theme Name: KnS Makeover
Theme URI: https://example.com/kns-beauty
Author: KNS
Author URI: https://example.com
Description: Luxury Bridal Makeup & Makeup Education theme for KnS Makeover. Bridal makeup, occasion glam, self makeup classes. Built with ACF, CPTs, Bootstrap 5.
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kns-beauty
Tags: custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, beauty, salon, makeup, responsive, modern
*/

/* ============================================
   CSS Variables - Luxury Beauty Palette
   ============================================ */
:root {
  --color-primary: #d6226c;
  --color-primary-dark: #b81a5a;
  --color-accent-tan: #c9a68c;
  --color-accent-gold: #d2b48c;
  --color-nude: #fcf3eb;
  --color-nude-light: #fdf8f5;
  --color-cream: #faf6f2;
  --color-dark: #1a1a1a;
  --color-charcoal: #2d2d2d;
  --color-navy: #1e2a3a;
  --color-white: #ffffff;
  --color-gray: #6b6b6b;
  --color-gray-light: #9a9a9a;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', 'Segoe UI', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --radius-pill: 50px;
  --radius-card: 12px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

.font-script {
  font-family: var(--font-script);
  color: var(--color-primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn-beauty {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-soft);
}

.btn-beauty:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-beauty-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* ============================================
   Section Spacing
   ============================================ */
.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section-light {
  background-color: var(--color-nude);
}

.section-cream {
  background-color: var(--color-cream);
}

/* ============================================
   Utilities
   ============================================ */
.container-beauty {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

.text-primary-color {
  color: var(--color-primary) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.custom-logo-link img,
.custom-logo {
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Section subtitle (under H2) */
.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.section-title-wrap {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.75rem;
}

.section-title-wrap .section-title {
  margin-bottom: 0.65rem;
}

.section-title-wrap .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-tan));
  border-radius: 2px;
  margin: 1rem auto 0;
}

.section-title-wrap.text-start .section-title::after {
  margin-left: 0;
  margin-right: auto;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-gray);
  line-height: 1.65;
  margin: 0;
}

.section-title-wrap .section-lead {
  margin-top: 0.75rem;
}

/* Inner pages (default page template) */
.page-content .entry-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.page-content .entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-charcoal);
}

.page-content .entry-content > *:first-child {
  margin-top: 0;
}

.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.page-content .entry-content p,
.page-content .entry-content ul,
.page-content .entry-content ol {
  margin-bottom: 1.1rem;
}

.page-content .entry-content img {
  border-radius: var(--radius-card);
}

.page-content .entry-content .alignwide {
  max-width: 100%;
}

/* Compact primary button in header */
.btn-beauty.btn-beauty-header {
  padding: 10px 22px;
  font-size: 11px;
}


/* SECTION */
.reels-section {
  margin-top: 40px;
}

/* GRID */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* CARD */
.reel-item {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16; /* perfect reel ratio */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

/* VIDEO */
.reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* BUTTON */
.visit-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  text-align: center;
  padding: 10px;
  background: rgba(184, 26, 90, 0.9);
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

/* ✅ LARGE SCREEN (4 columns) */
@media (min-width: 1200px) {
  .reels-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ✅ TABLET (2 columns) */
@media (max-width: 1024px) {
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ✅ MOBILE (1 column full width) */
@media (max-width: 600px) {
  .reels-grid {
    grid-template-columns: 1fr;
  }

  .reel-item {
    aspect-ratio: 9 / 16;
  }
}