/*
Theme Name: Cedar Innovatives
Theme URI: https://cedarinnovatives.com
Author: Kenneth Joseph
Author URI: https://cedarinnovatives.com
Description: Custom WordPress theme for Cedar Innovatives — a dual-business brand covering Cedar Coaching Center and Cedar Printing & Signage, based in Bengaluru.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: cedar-innovatives
Tags: business, portfolio, custom-menu, featured-images, responsive-layout
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Brand Design System)
   ============================================================ */
:root {
  /* Brand Colors */
  --navy:       #122348;
  --green:      #00674f;
  --cream:      #f5f3ef;
  --white:      #ffffff;
  --light-gray: #e8e6e1;
  --dark-text:  #1a1a2e;
  --body-text:  #4a4a5a;
  --green-light:#e6f2ee;
  --navy-light: #e8eaf0;
  --accent:     #c9a96e;

  /* Derived / Utility */
  --navy-dark:  #0d1a36;
  --green-dark: #004d3a;
  --green-mid:  #008060;
  --shadow-sm:  0 2px 8px rgba(18, 35, 72, 0.08);
  --shadow-md:  0 8px 32px rgba(18, 35, 72, 0.12);
  --shadow-lg:  0 16px 48px rgba(18, 35, 72, 0.16);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-heading:  'Aleo', Georgia, serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad:   80px 24px;
  --section-pad-sm:60px 24px;
  --container:     1200px;
  --header-height: 72px;

  /* ── Semantic theme tokens (used for dark mode) ── */
  --page-bg:       #ffffff;
  --surface:       #ffffff;
  --surface-alt:   #f5f3ef;
  --surface-card:  #ffffff;
  --text-head:     #1a1a2e;
  --text-body-val: #4a4a5a;
  --border-col:    #e8e6e1;
}

/* ── DARK MODE OVERRIDES ── */
[data-theme="dark"] {
  --page-bg:       #0c1628;
  --surface:       #122348;
  --surface-alt:   #0d1a36;
  --surface-card:  #16294d;
  --text-head:     #e8e6e1;
  --text-body-val: #9ba8c0;
  --border-col:    rgba(255, 255, 255, 0.12);

  /* Override existing vars */
  --dark-text:     #e8e6e1;
  --body-text:     #9ba8c0;
  --light-gray:    rgba(255, 255, 255, 0.12);
  --navy-light:    #16294d;
  --green-light:   #0a2a1f;
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:     0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg:     0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
  width: 100%;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark-text);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
}

p {
  line-height: 1.75;
  color: var(--body-text);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad);
}

.section--sm {
  padding: var(--section-pad-sm);
}

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

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

.section--green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ============================================================
   SECTION HEADER (reusable heading block)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 0 auto;
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn--white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--cream);
}

.btn--lg {
  padding: 15px 32px;
  font-size: 15px;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge--green {
  background: var(--green);
  color: var(--white);
}

.badge--navy {
  background: var(--navy-light);
  color: var(--navy);
}

.badge--green-light {
  background: var(--green-light);
  color: var(--green);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card--cream {
  background: var(--cream);
}

.card--navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ============================================================
   IMAGE PLACEHOLDER (during development)
   ============================================================ */
.img-placeholder {
  background: linear-gradient(135deg, var(--navy-light), var(--green-light));
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(18, 35, 72, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-text);
  font-size: 13px;
  opacity: 0.6;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6a 100%);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 103, 79, 0.12));
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(245, 243, 239, 0.65);
  font-size: 15px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   STAR RATING
   ============================================================ */
.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  fill: #f59e0b;
}

/* ============================================================
   WHATSAPP COLOR
   ============================================================ */
.whatsapp-btn {
  background: #25D366 !important;
  border-color: #25D366 !important;
}

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

/* ============================================================
   DIVIDER LINE
   ============================================================ */
.divider-line {
  width: 100%;
  height: 1px;
  background: var(--light-gray);
  margin: 40px 0;
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
