/*
Theme Name: Kleider
Theme URI: https://kleiderindia.com
Author: Kleider Fashions
Author URI: https://kleiderindia.com
Description: Custom theme for Kleider Fashions, Chromepet, Chennai. Est. 2018.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kleider
Tags: custom-theme, lifestyle, fashion, retail
*/

/* ============================================================
   KLEIDER THEME — MASTER STYLESHEET
   Chromepet's favourite lifestyle store · Est. 2018
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* --- Brand Tokens --- */
:root {
  /* Colours */
  --ink:        #1A1008;
  --cream:      #F7F0E6;
  --warm-white: #FDF8F2;
  --gold:       #C9860A;
  --teal:       #1A6B5A;
  --plum:       #6B2D5E;
  --rust:       #C04B2A;
  --cobalt:     #1A3D7C;

  /* Gold tints */
  --gold-10:    rgba(201,134,10,0.10);
  --gold-20:    rgba(201,134,10,0.20);
  --gold-50:    rgba(201,134,10,0.50);

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--warm-white);
  overflow-x: hidden;
}

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

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

a:hover { opacity: 0.75; }

ul { list-style: none; }

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

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-sm); }
}

/* --- Typography Scale --- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  color: inherit;
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  line-height: 1.7;
}

/* --- Ornamental Divider --- */
.brand-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: var(--space-md) 0;
}

.brand-rule__line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.brand-rule__diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--cream);
  border: 1.5px solid var(--teal);
}

.btn-primary:hover {
  background: transparent;
  color: var(--teal);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247,240,230,0.4);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  opacity: 1;
}

.btn-gold {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--gold);
}

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

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 1.5px solid #25D366;
  gap: 0.6rem;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  opacity: 1;
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-xl) 0;
}

.section--lg {
  padding: var(--space-2xl) 0;
}

.section--sm {
  padding: var(--space-lg) 0;
}

/* Background variants */
.bg-ink    { background-color: var(--ink);        color: var(--cream); }
.bg-cream  { background-color: var(--cream);      color: var(--ink);   }
.bg-warm   { background-color: var(--warm-white); color: var(--ink);   }
.bg-teal   { background-color: var(--teal);       color: var(--cream); }
.bg-plum   { background-color: var(--plum);       color: var(--cream); }

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header .eyebrow {
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* --- Cards --- */
.card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26,16,8,0.12);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.card__body {
  padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.card__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.75;
  line-height: 1.6;
}

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: var(--gold-10);
  color: var(--gold);
  border: 1px solid var(--gold-20);
}

.badge--rust {
  background: rgba(192,75,42,0.1);
  color: var(--rust);
  border-color: rgba(192,75,42,0.2);
}

.badge--teal {
  background: rgba(26,107,90,0.1);
  color: var(--teal);
  border-color: rgba(26,107,90,0.2);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-teal   { color: var(--teal); }
.text-cream  { color: var(--cream); }
.text-muted  { opacity: 0.65; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* --- Fade-in animation on scroll --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
