@import "tailwindcss";

@theme {
  --font-size-h1: 32px;
  --font-size-h2: 26px;
  --font-size-h3: 24px;
  --font-size-body-large: 20px;
  --font-size-body: 17px;
}

@media (min-width: 1024px) {
  :root {
    --font-size-h1: 40px;
    --font-size-h2: 32px;
    --font-size-h3: 28px;
    --font-size-body-large: 24px;
    --font-size-body: 20px;
  }
}

@config "./tailwind.config.js";

/* ═══════════════════════════════════════════════════════════════
   MOBILE HEADER STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Top Bar Ticker Animation (legacy 2-item) ─── */
.topbar-ticker__item {
  opacity: 0;
  animation: topbar-fade 6s infinite;
}

.topbar-ticker__item--second {
  animation-delay: 3s;
}

@keyframes topbar-fade {
  0%, 5%   { opacity: 0; transform: translateY(6px); }
  10%, 45% { opacity: 1; transform: translateY(0); }
  50%, 100%{ opacity: 0; transform: translateY(-6px); }
}

/* ─── Desktop Top Bar Phone Number Cycling (2 items, 3s each) ─── */
.topbar-phone-cycle__item {
  opacity: 0;
  animation: topbar-phone-fade 6s infinite;
}

.topbar-phone-cycle__item--second {
  animation-delay: 3s;
}

@keyframes topbar-phone-fade {
  0%, 5%   { opacity: 0; transform: translateY(6px); }
  10%, 45% { opacity: 1; transform: translateY(0); }
  50%, 100%{ opacity: 0; transform: translateY(-6px); }
}

/* ─── Mobile Top Bar Ticker (3 items, 3s each = 9s cycle) ─── */
.topbar-ticker__item--3up {
  opacity: 0;
  animation: topbar-fade-3up 9s infinite;
}

.topbar-ticker__item--3up-second {
  animation-delay: 3s;
}

.topbar-ticker__item--3up-third {
  animation-delay: 6s;
}

@keyframes topbar-fade-3up {
  0%, 3%    { opacity: 0; transform: translateY(6px); }
  7%, 29%   { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* ─── Mobile Sidebar Overlay ─── */
.mobile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ─── Mobile Sidebar Panel ─── */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-sidebar.is-open {
  transform: translateX(0);
}

/* Sidebar Header */
.mobile-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
}

/* Sidebar Navigation */
.mobile-sidebar__nav {
  list-style: none;
  padding: 16px 0;
  margin: 0;
  flex: 1;
}

.mobile-sidebar__nav li {
  border-bottom: 1px solid #f5f5f5;
}

.mobile-sidebar__nav li a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #2D2D2D;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-sidebar__nav li a:hover,
.mobile-sidebar__nav li a:focus {
  background-color: #fef2f2;
  color: #D30707;
}

/* Sidebar Social Icons */
.mobile-sidebar__social {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.mobile-sidebar__social a {
  transition: opacity 0.2s ease;
}

.mobile-sidebar__social a:hover {
  opacity: 0.7;
}

/* ─── Body Scroll Lock ─── */
body.mobile-menu-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   HERO ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION DROPDOWN STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── Desktop Nav Link Custom Underline ─── */
.nav-link-custom {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding-bottom: 6px; /* 6px gap */
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px; /* medium height */
  bottom: 0;
  left: 0;
  background-color: #D30707; /* primary-1 color */
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link-custom:hover::after,
.group:hover .nav-link-custom::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ─── Desktop Dropdown Animation ─── */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.group:hover .dropdown-menu {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

/* Pseudo-element to bridge the gap between menu item and dropdown */
.group .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

/* Ensure hover color is primary-1 for entire dropdown options */
.dropdown-menu li a:hover {
  background-color: #D30707 !important;
  color: #ffffff !important;
}

/* ─── Mobile Sidebar Dropdown Adjustments ─── */
.mobile-sidebar__nav .bg-neutral-light\/10 {
  border-left: 3px solid #D30707;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG POST CONTENT STYLES
   Styles for the_content() output inside .srn-post-content
   ═══════════════════════════════════════════════════════════════ */

.srn-post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #1a1a1a;
}

@media (min-width: 1024px) {
  .srn-post-content {
    font-size: 18px;
  }
}

.srn-post-content h1,
.srn-post-content h2,
.srn-post-content h3,
.srn-post-content h4,
.srn-post-content h5,
.srn-post-content h6 {
  font-weight: 700;
  color: #000;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.srn-post-content h2 { font-size: 1.6em; }
.srn-post-content h3 { font-size: 1.3em; }
.srn-post-content h4 { font-size: 1.1em; }

.srn-post-content p {
  margin-bottom: 1.4em;
}

.srn-post-content a {
  color: #D30707;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.srn-post-content a:hover {
  color: #a80505;
}

.srn-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

.srn-post-content figure {
  margin: 2em 0;
}

.srn-post-content figcaption {
  font-size: 0.82em;
  color: #888;
  text-align: center;
  margin-top: 0.5em;
}

.srn-post-content ul,
.srn-post-content ol {
  margin: 1.2em 0 1.2em 1.8em;
}

.srn-post-content ul { list-style-type: disc; }
.srn-post-content ol { list-style-type: decimal; }

.srn-post-content li {
  margin-bottom: 0.4em;
}

.srn-post-content blockquote {
  border-left: 4px solid #D30707;
  padding: 0.5em 1.2em;
  margin: 1.5em 0;
  background: #fef2f2;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #444;
}

.srn-post-content pre,
.srn-post-content code {
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 0.9em;
}

.srn-post-content pre {
  padding: 1em 1.2em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.srn-post-content code {
  padding: 0.1em 0.4em;
}

.srn-post-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2.5em 0;
}

/* Gutenberg alignment classes */
.srn-post-content .alignwide {
  margin-left: -60px;
  margin-right: -60px;
}

.srn-post-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.srn-post-content .alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.srn-post-content .alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.srn-post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Table styles */
.srn-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
}

.srn-post-content th,
.srn-post-content td {
  border: 1px solid #e5e5e5;
  padding: 0.6em 0.9em;
  text-align: left;
}

.srn-post-content th {
  background: #f9f9f9;
  font-weight: 600;
}

/* ─── Blog Pagination ─── */
.pagination-item a,
.pagination-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  color: #000;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.pagination-item a:hover {
  background: #D30707;
  color: #fff;
  border-color: #D30707;
}

.pagination-item .current {
  background: #D30707;
  color: #fff;
  border-color: #D30707;
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER & GOOGLE TRANSLATE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hide Google Translate Default UI ─── */
iframe.skiptranslate,
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

