/*
 Theme Name:   Omega Flames
 Theme URI:    https://omegaflames.com
 Description:  Kadence Child Theme for Omega Flames Ltd.
 Author:       MaConception
 Author URI:   https://maconception.com
 Template:     kadence
 Version:      1.1.0
 License:      GNU General Public License v2 or later
 Text Domain:  omega-flames
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS — Omega Flames Design Spec v1.0
   ═══════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg: #faf7f2;
  --bg-warm: #f3ede2;
  --bg-deep: #ebe3d4;

  /* Ink (text) */
  --ink: #1a1614;
  --ink-soft: #6b5d52;
  --ink-faint: #a89a8a;
  --ink-dark: #1a1614;

  /* Accent */
  --accent: #c8602c;
  --accent-dark: #8a3e15;
  --accent-soft: #f5e4d4;

  /* Borders */
  --border: #e8e0d4;

  /* Spacing scale (4px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 760px;
  --container-wide: 1440px;

  /* Radius */
  --radius: 2px;
}


/* ═══════════════════════════════════════════════
   GLOBAL RESETS & BASE
   ═══════════════════════════════════════════════ */

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}


/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Body text max-width for readability */
.entry-content p,
.entry-content li {
  max-width: 65ch;
}

/* Secondary text */
.meta,
.caption,
figcaption,
.wp-block-latest-posts__post-date {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* Eyebrow / label text */
.eyebrow,
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}


/* ═══════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════ */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

/* Primary CTA */
.btn-primary,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent);
  color: #fff;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Secondary / Ghost button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--ink);
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--ink);
  color: #fff;
  text-decoration: none;
}


/* ═══════════════════════════════════════════════
   CARDS (product cards, brand cards)
   ═══════════════════════════════════════════════ */

.of-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.of-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(26, 22, 20, 0.12);
}


/* ═══════════════════════════════════════════════
   FORMS (Request a Quote)
   ═══════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background-color: #fff;
  transition: border-color 0.2s ease;
  width: 100%;
}

textarea {
  height: auto;
  padding: 12px 16px;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

/* Contact Form 7 specific */
.wpcf7-form p {
  margin-bottom: var(--space-lg);
}

.wpcf7-form .wpcf7-submit {
  width: auto;
}

@media (max-width: 767px) {
  .wpcf7-form .wpcf7-submit {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════
   BADGES (On Display, Featured)
   ═══════════════════════════════════════════════ */

.badge,
.badge-showroom,
.badge-featured {
  display: inline-block;
  background-color: var(--accent-soft);
  color: var(--accent-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: var(--radius);
  line-height: 1;
}


/* ═══════════════════════════════════════════════
   DIVIDERS
   ═══════════════════════════════════════════════ */

hr,
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}


/* ═══════════════════════════════════════════════
   SECTION BACKGROUNDS
   ═══════════════════════════════════════════════ */

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

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

.section-dark {
  background-color: var(--ink-dark);
  color: rgba(255, 255, 255, 0.9);
}

.section-dark a {
  color: var(--accent);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: rgba(255, 255, 255, 0.95);
}


/* ═══════════════════════════════════════════════
   SECTION SPACING
   ═══════════════════════════════════════════════ */

.of-section {
  padding: var(--space-4xl) 0;
}

@media (max-width: 1023px) {
  .of-section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 767px) {
  .of-section {
    padding: 48px 0;
  }
}


/* ═══════════════════════════════════════════════
   CONTAINER PADDING
   ═══════════════════════════════════════════════ */

@media (max-width: 1023px) {
  .site-container .site-inner-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  .site-container .site-inner-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* ═══════════════════════════════════════════════
   MOTION & ANIMATION
   ═══════════════════════════════════════════════ */

/* Subtle fade-up for hero content */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s ease-out both;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ═══════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════ */

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
}


/* ═══════════════════════════════════════════════
   FOOTER — Dark section
   ═══════════════════════════════════════════════ */

.site-footer {
  background-color: var(--ink-dark);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Fraunces', Georgia, serif;
}


/* ═══════════════════════════════════════════════
   KADENCE OVERRIDES
   ═══════════════════════════════════════════════ */

/* Remove pure white backgrounds */
.site {
  background-color: var(--bg);
}

/* Header background */
#masthead {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Navigation links */
.header-navigation a {
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-navigation a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Navigation dropdown */
.header-navigation .sub-menu {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Kadence button blocks override */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--ink);
  color: #fff;
}


/* ═══════════════════════════════════════════════
   MOBILE STICKY CTA
   ═══════════════════════════════════════════════ */

@media (max-width: 767px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--accent);
    padding: 12px 16px;
    text-align: center;
  }

  .mobile-sticky-cta a {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
  }
}
