/*
Theme Name: Cradly - Smart Parenting Assistant
Theme URI: https://cradly.com
Author: Cradly Team
Author URI: https://cradly.com
Description: A modern, minimalist theme for Cradly - Your Smart Parenting Assistant. Features a beautiful hero section with family imagery, responsive navigation with mobile menu, and elegant typography.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cradly
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ========================================
   CRADLY THEME - SOFT MODERNISM DESIGN
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ========================================
   ROOT VARIABLES & COLOR PALETTE
   ======================================== */

:root {
  /* Cradly Color Palette */
  --lime-accent: #CCFF00;
  --warm-cream: #F5F1ED;
  --soft-beige: #EAE5E0;
  --dark-charcoal: #1A1A1A;
  --warm-gray: #A89E94;
  --white: #FFFFFF;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--dark-charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--dark-charcoal);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--lime-accent);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
}

.navbar-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  flex: 0 0 auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.navbar-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-charcoal);
  transition: color var(--transition-normal);
}

.navbar-menu a:hover {
  color: var(--lime-accent);
}

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-icon-btn {
  padding: 0.5rem;
  background: transparent;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-icon-btn:hover {
  background-color: var(--soft-beige);
}

.navbar-icon-btn svg {
  width: 20px;
  height: 20px;
  color: var(--dark-charcoal);
}

.cart-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--lime-accent);
  border-radius: 50%;
}

/* Mobile Navigation */
.navbar-mobile {
  display: none;
}

.navbar-hamburger {
  padding: 0.5rem;
  background: transparent;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-hamburger:hover {
  background-color: var(--soft-beige);
}

.navbar-hamburger svg {
  width: 24px;
  height: 24px;
  color: var(--dark-charcoal);
}

.navbar-dropdown {
  position: absolute;
  top: 6rem;
  left: 1rem;
  right: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.navbar-dropdown a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--soft-beige);
  transition: color var(--transition-normal);
}

.navbar-dropdown a:last-child {
  border-bottom: none;
}

.navbar-dropdown a:hover {
  color: var(--lime-accent);
}

.navbar-dropdown-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--soft-beige);
  margin-top: 0.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  margin-top: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding: 6rem 2rem 2rem;
  margin: 0 auto;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: var(--line-height-normal);
}

.hero-cta {
  display: inline-block;
  background-color: var(--lime-accent);
  color: var(--dark-charcoal);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1.125rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.hero-cta:active {
  transform: scale(0.95);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .navbar-container {
    display: none;
  }
  
  .navbar-mobile {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 100%;
    width: calc(100% - 2rem);
  }
  
  .navbar-logo {
    flex: 1;
    text-align: center;
    font-size: 1.25rem;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 6rem 1.5rem 2rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem 0.5rem;
  }
  
  .navbar-mobile {
    width: calc(100% - 1rem);
  }
  
  .hero-content {
    padding: 5rem 1rem 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-cta {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

.wp-block-image {
  margin-bottom: var(--spacing-lg);
}

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

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: var(--spacing-md);
}

.alignright {
  float: right;
  margin-left: var(--spacing-md);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin-top: 0.5rem;
}

/* Gutenberg Editor Styles */
.wp-block-button__link {
  background-color: var(--lime-accent);
  color: var(--dark-charcoal);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.wp-block-button__link:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navbar,
  .hero-scroll-indicator {
    display: none;
  }
}
