/*
Theme Name: Jethanica CA
Theme URI: https://jethanica.in/
Author: Jethanica
Author URI: https://jethanica.in/
Description: A clean, fast, white & blue WordPress theme built for CA / financial services firms. Ships with a header and footer controlled entirely by the theme, while every page's content area is left open for the block editor or Elementor. Fully compatible with the latest WordPress, Elementor, and Yoast SEO, and supports the native static homepage / posts page setting under Settings > Reading.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jethanica
Tags: blog, e-commerce, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =========================================================
   0. Design tokens
   ========================================================= */
:root {
  --blue-900: #0a1f44;
  --blue-800: #0d3273;
  --blue-700: #0f3d75;
  --blue-600: #1450a3;
  --blue-500: #1a63d6;
  --blue-400: #3b82f6;
  --blue-50: #eef4ff;
  --white: #ffffff;
  --gray-900: #1a2233;
  --gray-700: #3f4859;
  --gray-600: #5b6472;
  --gray-300: #d7dee8;
  --gray-200: #e6eaf1;
  --gray-100: #f4f7fb;

  --success: #10b981;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', var(--font-base);
  --container: 1240px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 20px 40px rgba(10, 31, 68, 0.16);
  --transition: 0.2s ease;
}

/* =========================================================
   1. Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-800); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--blue-900); margin: 0 0 0.5em; }
button { font-family: inherit; cursor: pointer; }
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-800); color: var(--white); }
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue-700); }
.btn-accent { background: var(--blue-500); color: var(--white); }
.btn-accent:hover { background: var(--blue-700); color: var(--white); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* =========================================================
   2. Top utility bar
   ========================================================= */
.top-bar {
  background: var(--blue-900);
  color: var(--gray-300);
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.contact-info { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-info span i { color: var(--blue-400); margin-right: 6px; }
.contact-info a { color: var(--gray-300); }
.contact-info a:hover { color: var(--white); }
.social-links { display: flex; gap: 15px; align-items: center; }
.social-links a { color: var(--gray-300); }
.social-links a:hover { color: var(--white); }
.wa-top {
  background: #25d366;
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wa-top:hover { background: #1ebd58; color: var(--white); }

/* =========================================================
   3. Main header, primary nav & mega menu
   ========================================================= */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: var(--transition);
  padding-block: 14px;
}
.main-header.scrolled {
  padding-block: 10px;
  box-shadow: var(--shadow-md);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.logo { display: flex; align-items: center; min-width: 0; }
.logo .custom-logo-link { display: block; }
.logo img, .logo .custom-logo {
  height: 52px;
  width: auto;
  transition: height var(--transition);
}
.main-header.scrolled .logo img,
.main-header.scrolled .logo .custom-logo {
  height: 42px;
}
.site-branding-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; }
.site-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.site-description {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.3;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--blue-900);
  cursor: pointer;
}

/* Nav wrapper — holds the menu list + CTA */
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-900);
}
.nav-link i { font-size: 11px; transition: var(--transition); }
.nav-item:hover > .nav-link { color: var(--blue-600); background: var(--blue-50); }
.nav-item:hover > .nav-link i { transform: rotate(180deg); }

/* Simple dropdown (2-level items) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  width: 250px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  z-index: 20;
}
/* Invisible bridge over the gap between the trigger link and the panel —
   without it, moving the pointer down into the menu crosses dead space
   that isn't part of either box, dropping :hover and closing the menu
   before the cursor arrives. */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -14px;
  height: 14px;
}
.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-menu ul li a {
  display: block;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
}
.dropdown-menu ul li a:hover { background: var(--blue-50); color: var(--blue-600); }

/* Mega menu (3-level items) — .nav-item.is-mega is the positioning anchor.
   JS clamps the panel to the viewport edge if it overflows, see navigation.js. */
.nav-item.is-mega { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  border-top: 3px solid var(--blue-600);
  padding: 24px 28px 28px;
  width: max-content;
  min-width: 300px;
  max-width: min(900px, calc(100vw - 40px));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 20;
  pointer-events: none;
}
/* Invisible bridge over the gap between the trigger link and the panel —
   see the matching comment on .dropdown-menu::before above. */
.mega-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -18px;
  height: 18px;
}
.nav-item.is-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-grid { display: flex; gap: 0; }
.mega-col { min-width: 180px; max-width: 240px; flex: 1 1 180px; padding: 0 24px 0 0; }
.mega-col + .mega-col { padding-left: 24px; padding-right: 24px; border-left: 1px solid var(--gray-100); }
.mega-col:last-child { padding-right: 0; }
.mega-col-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-50);
  transition: color 0.15s ease;
}
.mega-col-title:hover { color: var(--blue-800); }
.mega-col-list li { border-bottom: 1px solid var(--gray-100); }
.mega-col-list li:last-child { border-bottom: none; }
.mega-col-list li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.mega-col-list li a:hover { color: var(--blue-600); padding-left: 6px; }
.mega-col-solo { display: flex; align-items: flex-start; }
.mega-solo-link { font-size: 14px; font-weight: 500; color: var(--gray-700); padding: 9px 0; }
.mega-solo-link:hover { color: var(--blue-600); }

.nav-cta { display: flex; align-items: center; }

/* =========================================================
   3b. Mobile navigation — drill-down off-canvas panel
   (markup for .mobile-nav-wrapper is injected by navigation.js)
   ========================================================= */
@media (min-width: 1025px) {
  .mobile-nav-wrapper { display: none !important; }
}

@media (max-width: 1024px) {
  .top-bar { display: none; }
  .mobile-menu-btn { display: block; }

  .nav-menu {
    position: fixed;
    top: var(--header-h, 66px);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    gap: 0;
  }
  .nav-menu.active {
    transform: translateX(0);
    border-top: 1px solid var(--gray-100);
  }

  .nav-list { display: none !important; }

  .nav-item:hover .dropdown-menu,
  .nav-item.is-mega:hover .mega-menu,
  .dropdown-menu,
  .mega-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-nav-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .mobile-nav-track {
    display: flex;
    flex: 1;
    min-height: 0;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .mobile-panel {
    min-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-panel-header {
    display: flex;
    align-items: center;
    background: var(--blue-600);
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
  }
  .mobile-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mobile-back-btn:active { background: rgba(0, 0, 0, 0.25); }
  .mobile-back-btn i { font-size: 12.5px; }
  .mobile-panel-title {
    flex: 1;
    text-align: center;
    padding: 16px 16px 16px 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
  }
  .mobile-panel-title a {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .mobile-menu-list { list-style: none; margin: 0; padding: 6px 0; flex: 1; }
  .mobile-menu-list li { border-bottom: 1px solid var(--gray-100); }
  .mobile-menu-list li:last-child { border-bottom: none; }
  .mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--blue-900);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-item:active { background: var(--blue-50); color: var(--blue-600); }
  .mobile-menu-item.has-sub { font-weight: 600; }
  .mobile-menu-item.has-sub i.fa-chevron-right { font-size: 11px; color: var(--gray-600); flex-shrink: 0; margin-left: 8px; }
  .mobile-menu-item.has-sub:active i.fa-chevron-right { color: var(--blue-600); }

  .nav-cta { padding: 16px 20px; border-top: 1px solid var(--gray-100); background: var(--white); flex-shrink: 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   4. Content area (theme vs Elementor)
   ========================================================= */
.content-area {
  max-width: var(--container);
  margin-inline: auto;
  padding: 48px 20px 64px;
}
.content-area.elementor-page {
  max-width: none;
  padding: 0;
  margin: 0;
}
.entry-header { margin-bottom: 28px; }
.entry-title { font-size: 34px; }
.page-breadcrumbs {
  font-size: 13.5px;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.page-breadcrumbs a { color: var(--gray-600); }
.page-breadcrumbs a:hover { color: var(--blue-600); }

/* Blog / archive cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .post-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--blue-50); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .post-meta { font-size: 12.5px; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card .post-title { font-size: 19px; margin: 0; }
.post-card .post-title a { color: var(--blue-900); }
.post-card .post-title a:hover { color: var(--blue-600); }
.post-card .post-excerpt { color: var(--gray-700); font-size: 14.5px; flex: 1; }
.post-card .post-readmore { font-weight: 700; font-size: 14px; margin-top: auto; }

.pagination-nav { margin-top: 44px; display: flex; justify-content: center; gap: 8px; }
.pagination-nav a, .pagination-nav span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
  color: var(--gray-700); font-weight: 600; font-size: 14px;
}
.pagination-nav .current { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.pagination-nav a:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* Single post */
.single-post-header { margin-bottom: 24px; }
.single-post-header .post-meta { color: var(--gray-600); font-size: 14px; margin-bottom: 8px; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.entry-content { font-size: 16.5px; color: var(--gray-700); }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content a { text-decoration: underline; }
.post-tags { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.post-tags a {
  display: inline-block; padding: 6px 14px; margin: 4px 6px 0 0;
  background: var(--blue-50); border-radius: 999px; font-size: 13px; color: var(--blue-700); font-weight: 600;
}
.post-nav-links {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray-200);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.post-nav-links .nav-next { text-align: right; }
.post-nav-links a { color: var(--gray-700); font-weight: 600; }
.post-nav-links .nav-label { display: block; font-size: 12px; color: var(--gray-600); text-transform: uppercase; margin-bottom: 4px; }

/* 404 */
.error-404 { text-align: center; padding: 90px 20px; }
.error-404 .error-code { font-size: 96px; font-weight: 800; color: var(--blue-600); opacity: 0.25; margin: 0; }
.error-404 h1 { font-size: 28px; margin-top: -20px; }
.error-404 p { color: var(--gray-600); margin-bottom: 24px; }
.error-404 .search-form { max-width: 420px; margin: 0 auto; display: flex; gap: 8px; }
.error-404 .search-form input[type="search"] {
  flex: 1; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 15px;
}
.error-404 .search-form button {
  padding: 12px 20px; background: var(--blue-600); color: var(--white); border: none; border-radius: var(--radius-sm); font-weight: 600;
}

/* Comments */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list .comment { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.comment-author { font-weight: 700; color: var(--blue-900); font-size: 14.5px; }
.comment-metadata { font-size: 12.5px; color: var(--gray-600); margin-bottom: 8px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; margin-bottom: 14px;
}
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-reply-title { font-size: 20px; }

/* =========================================================
   5. Footer
   ========================================================= */
.main-footer { background: var(--blue-900); color: var(--gray-300); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 35px; height: 2px;
  background: var(--blue-500);
}
.footer-col p { font-size: 14.5px; margin-bottom: 18px; }

.col-info .footer-logo { display: inline-block; margin-bottom: 18px; }
.col-info .footer-logo img,
.col-info .custom-logo-link img,
.col-info .custom-logo { max-height: 42px; width: auto; }
.footer-logo-text { display: block; font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 18px; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; margin-bottom: 4px; }
.footer-contact p { margin-bottom: 0; }
.footer-contact i { color: var(--blue-400); width: 18px; }
.footer-contact a { color: var(--gray-300); }
.footer-contact a:hover { color: var(--white); }

.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 14px;
  transition: background var(--transition), transform var(--transition);
}
.footer-socials a:hover { background: var(--blue-600); transform: translateY(-2px); }

.footer-links li { margin-bottom: 12px; }
.footer-links li a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--gray-300); }
.footer-links li a:hover { color: var(--white); }

.footer-posts li { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-posts li:last-child { border-bottom: none; }
.footer-posts li a { display: block; font-size: 14px; line-height: 1.5; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 6px; }
.footer-posts li a:hover { color: var(--white); }
.footer-posts .post-date { font-size: 12.5px; color: var(--gray-600); }

.footer-widget-area { margin-top: 8px; }

.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 14.5px;
}
.newsletter-form input::placeholder { color: var(--gray-600); }
.newsletter-form input:focus { outline: none; border-color: var(--blue-500); }
.newsletter-success { display: none; color: var(--success); font-size: 14px; margin-top: 10px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; font-size: 13.5px; color: var(--gray-600); }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom-text { color: var(--gray-300); }
.footer-credit { color: var(--gray-300); }
.footer-credit a { color: var(--blue-400); }

/* =========================================================
   6. Floating contact widgets & quote modal
   ========================================================= */
.floating-panel {
  position: fixed;
  bottom: 30px; right: 30px;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 12px;
  z-index: 900;
}
.float-item {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 0 15px;
  border-radius: 50px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  height: 52px; width: 52px;
  overflow: hidden;
  border: none;
  transition: var(--transition);
}
.float-item i { font-size: 22px; display: flex; justify-content: center; align-items: center; width: 22px; flex-shrink: 0; }
.float-text { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; white-space: nowrap; opacity: 0; transition: opacity var(--transition); }
.float-phone { background: var(--blue-600); }
.float-phone:hover { background: var(--blue-800); width: 140px; }
.float-wa { background: #25d366; }
.float-wa:hover { background: #1ebd58; width: 150px; }
.float-item:hover .float-text { opacity: 1; }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 31, 68, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px;
  padding: 40px;
  position: relative;
  transform: scale(0.92);
  transition: var(--transition);
}
.modal-overlay.active .modal-card { transform: scale(1); }
.modal-close-btn {
  position: absolute; top: 18px; right: 22px;
  font-size: 28px;
  background: none; border: none; cursor: pointer;
  color: var(--gray-600); line-height: 1;
}
.modal-close-btn:hover { color: var(--blue-900); }
.modal-header h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.modal-header p { color: var(--gray-600); font-size: 14.5px; margin-bottom: 24px; }
.interactive-form .form-group { margin-bottom: 16px; }
.interactive-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--blue-900); }
.interactive-form label i { color: var(--blue-600); margin-right: 4px; }
.interactive-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: 15px;
  color: var(--gray-900);
}
.interactive-form input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-50);
}
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success i { font-size: 3rem; color: var(--success); margin-bottom: 14px; }
.form-success h4 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--gray-600); }

/* =========================================================
   7. Responsive
   ========================================================= */
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr; gap: 30px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .site-title { font-size: 20px; }
  .entry-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-nav-links { grid-template-columns: 1fr; }
  .post-nav-links .nav-next { text-align: left; }
  .floating-panel { bottom: 20px; right: 20px; }
  .float-item:hover { width: 52px; }
  .float-item:hover .float-text { display: none; }
  .modal-card { padding: 24px; }
}
