/*
Theme Name:  Ivritours
Theme URI:   https://ivritours.com
Author:      Ivritours
Author URI:  https://ivritours.com
Description: Premium tour operator theme for Ivritours — private tours across Canada in English, Russian & Hebrew.
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: ivritours
Tags:        travel, tours, premium, multilingual, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   DESIGN TOKENS — CSS Custom Properties
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary:       #1B2A4A;
  --color-primary-dark:  #111D34;
  --color-primary-light: #243661;
  --color-accent:        #C8956C;
  --color-accent-dark:   #A97550;
  --color-accent-light:  #E5C4A8;

  /* Neutrals */
  --color-white:         #FFFFFF;
  --color-off-white:     #F8F7F4;
  --color-light-gray:    #EFEFEF;
  --color-mid-gray:      #999999;
  --color-dark-gray:     #555555;
  --color-dark:          #1A1A1A;

  /* Typography */
  --font-heading:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base:      16px;
  --font-size-sm:        0.875rem;
  --font-size-lg:        1.125rem;
  --font-size-xl:        1.25rem;
  --font-size-2xl:       1.5rem;
  --font-size-3xl:       1.875rem;
  --font-size-4xl:       2.25rem;
  --font-size-5xl:       3rem;
  --line-height-body:    1.7;
  --line-height-heading: 1.2;

  /* Spacing Scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   3rem;
  --space-xl:   5rem;
  --space-xxl:  8rem;

  /* Layout */
  --container-max:    1200px;
  --container-narrow: 800px;
  --header-height:    80px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:0 8px 40px rgba(0,0,0,0.14);
  --shadow-nav:  0 2px 20px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.5s ease;

  /* Z-index layers */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   500;
  --z-modal:    1000;
  --z-float:    900;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, var(--font-size-5xl)); }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--font-size-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--font-size-3xl)); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-sm);
  color: var(--color-dark-gray);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-dark-gray);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

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

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

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255,255,255,0.8);
}

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

.section-header__subtitle {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-xs);
}

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

.section-header__desc {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 149, 108, 0.4);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

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

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

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--accent {
  background-color: rgba(200,149,108,0.15);
  color: var(--color-accent-dark);
}

.badge--primary {
  background-color: rgba(27,42,74,0.1);
  color: var(--color-primary);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: var(--space-sm) auto;
  border: none;
}

.divider--left {
  margin-left: 0;
}

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 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-width: 0;
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin-right: var(--space-md); }
.alignright { float: right; margin-left: var(--space-md); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--font-size-sm); color: var(--color-mid-gray); }

.sticky { /* WordPress sticky post */ }
.bypostauthor { /* WordPress author comment */ }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-accent { color: var(--color-accent); }
.text-primary{ color: var(--color-primary); }
.text-white  { color: var(--color-white); }
.text-muted  { color: var(--color-mid-gray); }

.mt-auto { margin-top: auto; }
.hidden  { display: none !important; }

/* Fade animation for filter */
.tour-card.fade-out {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tour-card.fade-in {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
