/*
Theme Name: Mammoth Mix
Theme URI: https://www.mammothmix.com
Author: Mammoth Mix
Description: Custom WordPress Block Theme ported from Next.js with Polylang & Contact Form 7 integration.
Version: 1.1.0
Text Domain: mammothmix
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

/* --- Global & Typography --- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #F9FAFB; /* gray-50 */
  color: #111827; /* gray-900 */
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: #111827;
}

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

/* --- Reusable Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header / Navigation (matches TopNavigation.tsx) ---
   nav.py-6.px-8.flex.w-full.bg-gray-50.fixed.top-0.left-0.z-50
*/
.site-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: #F9FAFB;
  padding: 1.5rem 2rem;
  display: flex;
  box-sizing: border-box;
}

.site-header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-header-nav .site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-right: 2rem;
  text-decoration: none;
}

/* Desktop nav list — matches ul.hidden.md\:flex.space-x-6 */
.desktop-nav ul,
.desktop-nav .menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.desktop-nav ul li a,
.desktop-nav .menu li a {
  font-size: 1.125rem;
  color: #374151; /* gray-700 */
  text-decoration: none;
  transition: color 0.2s;
}

.desktop-nav ul li a:hover,
.desktop-nav .menu li a:hover {
  color: #111827; /* gray-900 (hover:text-black in source) */
}

/* Language selector (desktop) — matches bg-gray-100 border-gray-300 */
.lang-select-desktop {
  display: none; /* hidden on mobile */
}

.lang-select-desktop select {
  appearance: none;
  background-color: #F3F4F6;
  color: #111827;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #D1D5DB;
  font-family: inherit;
  font-size: 0.875rem;
}

/* Mobile hamburger toggle */
.mobile-nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: #111827;
  padding: 0;
}

.mobile-nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu overlay — matches fixed.inset-0.bg-gray-900.bg-opacity-100.z-50 */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: #111827; /* bg-gray-900 bg-opacity-100 */
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin-top: 0 !important; /* cancel FSE block gap */
}

.mobile-menu-overlay.open {
  display: flex;
}

.mobile-menu-overlay nav ul,
.mobile-menu-overlay .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-overlay nav ul li a,
.mobile-menu-overlay .menu li a {
  font-size: 1.5rem;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu-overlay nav ul li a:hover,
.mobile-menu-overlay .menu li a:hover {
  color: #9CA3AF; /* gray-400 */
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #F3F4F6; /* gray-100 */
  cursor: pointer;
}

.mobile-menu-close svg {
  width: 2rem;
  height: 2rem;
}

/* Language selector (mobile) — matches bg-gray-800 text-white border-gray-600 */
.lang-select-mobile {
  margin-top: 2rem;
}

.lang-select-mobile select {
  appearance: none;
  background-color: #1F2937;
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #4B5563;
  font-family: inherit;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .desktop-nav ul,
  .desktop-nav .menu {
    display: flex;
  }
  .mobile-nav-toggle {
    display: none;
  }
  .lang-select-desktop {
    display: block;
  }
}

/* --- Footer (matches Footer.tsx) ---
   footer.bg-gray-900.text-gray-100.py-8
*/
.site-footer {
  background-color: #111827;
  color: #F3F4F6;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 0 !important;
}

.site-footer .footer-copyright {
  font-size: 0.875rem;
  color: #9CA3AF; /* gray-400 */
  margin-bottom: 1.5rem;
}

/* Footer links — text-gray-400 hover:text-gray-100 */
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-links a:hover {
  color: #F3F4F6;
}

/* Footer logo div — 100×100px bg div, not an img */
.site-footer .footer-logo {
  width: 100px;
  height: 100px;
  margin: 2rem auto 0;
  background-image: url('assets/images/mammoth-logo-white.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* --- Main content offset for fixed nav --- */
.site-main-content {
  padding-top: 5rem; /* approx py-6 nav height */
}

/* --- Hero Section (matches HeroSection.tsx) ---
   section.pt-24.md\:pt-32.pb-16.px-8
   Inside: div.container.mx-auto > flex.flex-col.md\:flex-row
*/
.hero-section {
  padding: 6rem 2rem 4rem; /* pt-24 pb-16 px-8 */
  margin-top: 0 !important;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 8rem; /* md:pt-32 */
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text-logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero-text-logo-row {
    flex-direction: row;
    gap: 1rem;
  }
}

.hero-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
}

@media (min-width: 440px) {
  .hero-section h1 { font-size: 3rem; }
}

@media (min-width: 768px) {
  .hero-section h1 { font-size: 3.75rem; }
}

.hero-section p {
  font-size: 1.125rem;
  color: #4B5563; /* gray-600 */
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .hero-section p { font-size: 1.25rem; }
}

.hero-section .hero-cta {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero-section .hero-cta { margin-top: 0; }
}

/* Logo icon: visible on mobile (150×150), hidden on desktop */
.hero-logo-mobile {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-logo-mobile { display: none; }
}

/* Logo icon: hidden on mobile, 250×250 on desktop */
.hero-logo-desktop {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-logo-desktop {
    display: block;
    margin-left: 1rem;
  }
}

/* Specific hero logo types (CSS background divs matching Tailwind config) */
.hero-logo-bg {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bg-logo-mammoth-head-side-black { background-image: url('assets/images/mammoth-logo-head-side-black.svg'); }
.bg-chat-bubbles-black           { background-image: url('assets/images/chat-bubbles-black.svg'); }
.bg-wave-black                   { background-image: url('assets/images/wave-black.svg'); }
.bg-note-sparkles-black          { background-image: url('assets/images/note-sparkles-black.svg'); }
.bg-plane-black                  { background-image: url('assets/images/plane-black.svg'); }
.bg-logo-mammoth-white           { background-image: url('assets/images/mammoth-logo-white.svg'); }

/* --- Section (matches Section.tsx) ---
   section.py-14.px-8.border-t + div.container.mx-auto
*/
.content-section {
  padding: 3.5rem 2rem; /* py-14 px-8 */
  border-top: 1px solid #E5E7EB;
  margin-top: 0 !important;
}

.content-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Background overrides for sections */
.content-section.bg-gray-50  { background-color: #F9FAFB; }
.content-section.bg-gray-100 { background-color: #F3F4F6; }

/* --- CTA Section (matches CTASection.tsx) ---
   Section + py-16.px-8.bg-blue-600.text-white.text-center
*/
.cta-section {
  padding: 4rem 2rem; /* py-16 px-8 */
  border-top: 1px solid #E5E7EB;
  background-color: #2563EB;
  color: #FFFFFF;
  text-align: center;
  margin-top: 0 !important;
}

.cta-section h2 {
  color: #FFFFFF;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section p {
  margin-bottom: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .cta-section p { text-align: center; }
}

.cta-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Card (matches Card.tsx) ---
   div.hover\:drop-shadow-xl.bg-white.border.border-gray-100.shadow-md.rounded-lg.p-6
*/
.card {
  background-color: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07);
  transition: filter 0.2s;
}

.card:hover {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #111827;
}

.card p {
  color: #4B5563;
  text-align: left;
  margin-bottom: 1rem;
}

/* --- PriceTag (matches PriceTag.tsx) ---
   div.flex.items-baseline.space-x-1.bg-sky-100.px-2.py-2.rounded-lg.border.border-gray-300.mb-4.w-max
*/
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  background-color: #E0F2FE;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #D1D5DB;
  margin-bottom: 1rem;
  width: max-content;
}

.price-tag .price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.price-tag .price-desc {
  font-size: 0.875rem;
  color: #4B5563;
}

/* --- Button (matches Button.tsx) ---
   inline-block.bg-pink-600.text-white.text-lg.text-center.font-semibold.py-3.px-6.rounded-full.hover\:bg-pink-700.transition.hover\:shadow-md
*/
.wp-block-button.btn-pink {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

.wp-block-button.btn-pink .wp-element-button,
a.btn-pink {
  display: inline-block;
  background-color: #DB2777 !important;
  color: #FFFFFF !important;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  text-align: center;
  transition: all 0.2s ease-in-out;
  border: none !important;
  cursor: pointer;
  text-decoration: none;
}

.wp-block-button.btn-pink .wp-element-button:hover,
a.btn-pink:hover {
  background-color: #BE185D !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}

/* --- NumberedStep (matches NumberedStep.tsx) ---
   div.flex-shrink-0.w-10.h-10.rounded-full.bg-blue-600.text-white.flex.items-center.justify-center.text-lg.font-bold.mr-4
*/
.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #2563EB;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  margin-right: 1rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
}

.step-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

/* --- FAQSection (matches FAQSection.tsx) ---
   section.py-16.px-8.bg-gray-100 > div.container.mx-auto
   Items: div.border-b.px-2.border-gray-200.hover\:bg-gray-100
   Button: w-full.block.py-4.text-left.text-lg.font-medium.text-gray-800.flex.justify-between.items-center.hover\:text-blue-600
*/
.faq-section {
  padding: 4rem 2rem;
  background-color: #F3F4F6;
  margin-top: 0 !important;
}

.faq-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}

.faq-list {
  text-align: left;
  max-width: 42rem;
}

.faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding: 0 0.5rem;
}

.faq-item:hover {
  background-color: #F3F4F6;
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1F2937;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-toggle:hover {
  color: #2563EB;
}

.faq-toggle:focus {
  outline: none;
}

.faq-answer {
  padding-bottom: 1rem;
  color: #4B5563;
  transition: opacity 0.3s;
}

.accordion-icon {
  transition: transform 0.3s ease;
  width: 1.25rem;
  height: 1.25rem;
  color: #374151;
  flex-shrink: 0;
}

/* --- Contact Form 7 Custom Styling --- */
.wpcf7-form {
  max-width: 42rem;
  text-align: left;
}

.wpcf7-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #111827;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid #D1D5DB;
  padding: 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #FFFFFF;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
  outline: 2px solid #2563EB;
  border-color: transparent;
}

.wpcf7-submit {
  background-color: #DB2777 !important;
  color: #FFFFFF !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  display: inline-block !important;
  margin-top: 1rem !important;
}

.wpcf7-submit:hover {
  background-color: #BE185D !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1) !important;
}

/* CF7 status messages */
.wpcf7-response-output {
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  max-width: 42rem;
  position: relative;
}

div.wpcf7-mail-sent-ok {
  background-color: #DCFCE7;
  border: 1px solid #4ADE80;
  color: #15803D;
}

div.wpcf7-validation-errors,
div.wpcf7-mail-sent-ng,
div.wpcf7-spam-blocked {
  background-color: #FEE2E2;
  border: 1px solid #F87171;
  color: #B91C1C;
}

/* Instructions accordion inside CF7 */
.cf7-instructions-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1F2937;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.cf7-instructions-toggle:hover {
  color: #2563EB;
}

.cf7-instructions-toggle:focus {
  outline: none;
}

.cf7-instructions-wrapper {
  padding: 0 0.5rem 0.5rem;
  margin-bottom: 0.5rem;
}

.cf7-instructions-wrapper:hover {
  background-color: #E5E7EB;
}

.cf7-instructions-content {
  margin-top: 1rem;
  color: #4B5563;
  transition: opacity 0.3s;
}

.cf7-instructions-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

/* --- Utility ---*/
.hidden { display: none !important; }
.flex   { display: flex !important; }

/* --- Grid Utilities --- */
.grid { display: grid; }
.gap-8 { gap: 2rem; }

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

@media (min-width: 1024px) {
  .grid-lg-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 1280px) {
  .grid-xl-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
