/* ============================================================
   ORIZEN, Mobile About Us CSS (about-mobile.css)
   Exact match to about us.pdf + Standard Header & Footer
   ============================================================ */

/* Desktop defaults: Hide mobile-only elements */
@media (min-width: 769px) {
  .desktop-only { display: block !important; }
}

/* Mobile-only styles (<= 768px) */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }

  .mobile-only {
    background: #F5F2EB; /* Light Cream Background from about us.pdf */
    color: #1F1F1F;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  /* ------------------------------------------------------------
     1. Top Header Bar (Exact match to Home/Services, Left Aligned Logo)
     ------------------------------------------------------------ */
  .mobile-only .top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f7f4ef;
    border-bottom: 1px solid #e4ddd0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Logo aligned to top left */
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-only .top-header .logo {
    display: inline-flex;
    align-items: center;
    max-height: 40px;
  }

  .mobile-only .top-header .logo img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* ------------------------------------------------------------
     2. Our Story Section (Matching about us.pdf)
     ------------------------------------------------------------ */
  .pdf-story-sec {
    padding: 16px 16px 14px;
  }

  .pdf-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2B2B2B;
    margin-bottom: 4px;
  }

  .pdf-title {
    font-family: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
    font-size: 1.95rem;
    line-height: 1.12;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
  }

  .pdf-title em,
  .pdf-gold-italic {
    font-style: italic;
    color: #B68D40;
    font-weight: 400;
  }

  .pdf-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #383838;
    margin: 0 0 14px 0;
  }

  /* 4 Pillars Counter Card (White box with 4 divided columns) */
  .pdf-pillars-card {
    background: #FFFFFF;
    border: 1px solid #E6E1DA;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 14px 6px;
    align-items: center;
  }

  .pdf-pillar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 4px;
  }

  .pdf-pillar-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: #E6E1DA;
  }

  .pdf-pillar-icon {
    width: 22px;
    height: 22px;
    color: #B68D40;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pdf-pillar-icon svg {
    width: 18px;
    height: 18px;
  }

  .pdf-pillar-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1;
    margin-bottom: 3px;
  }

  .pdf-pillar-label {
    font-family: 'Inter', sans-serif;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
    line-height: 1.2;
  }

  /* ------------------------------------------------------------
     3. Hero Banner Card ("A BETTER REAL ESTATE EXPERIENCE")
     ------------------------------------------------------------ */
  .pdf-banner-sec {
    padding: 0 18px 24px;
  }

  .pdf-banner-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 190px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .pdf-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pdf-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .pdf-banner-sub {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 4px;
  }

  .pdf-banner-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    line-height: 1.18;
    color: #FFFFFF;
    font-weight: 500;
    margin: 0;
  }

  .pdf-banner-title em {
    font-style: italic;
    color: #F5D76E;
    font-weight: 400;
  }

  /* ------------------------------------------------------------
     4. "The Difference" Section (Comparison Cards Table from PDF)
     ------------------------------------------------------------ */
  .pdf-diff-sec {
    padding: 24px 18px;
  }

  .pdf-table-card {
    background: #FFFFFF;
    border: 1px solid #E6E1DA;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    padding: 16px;
  }

  .pdf-comp-item {
    padding: 14px 0;
    border-bottom: 1px solid #F0ECE4;
  }

  .pdf-comp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .pdf-comp-item:first-child {
    padding-top: 0;
  }

  .pdf-comp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }

  .pdf-comp-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F7F3EB;
    border: 1px solid #E6DEC8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B68D40;
    flex-shrink: 0;
  }

  .pdf-comp-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .pdf-comp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
  }

  .pdf-comp-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 48px;
  }

  .pdf-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.45;
    padding: 6px 10px;
    border-radius: 6px;
  }

  .pdf-row.orizen {
    background: #FAF7F0;
    border: 1px solid #EAE3D2;
  }

  .pdf-row.broker {
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
  }

  .pdf-row-mark {
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .pdf-row.orizen .pdf-row-mark { color: #B68D40; }
  .pdf-row.broker .pdf-row-mark { color: #C85A5A; }

  .pdf-row-name {
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
    width: 105px;
  }

  .pdf-row.orizen .pdf-row-name { color: #B68D40; }
  .pdf-row.broker .pdf-row-name { color: #888888; }

  .pdf-row-text {
    flex: 1;
    color: #333333;
  }

  .pdf-row.broker .pdf-row-text { color: #777777; }

  /* ------------------------------------------------------------
     5. "WHAT WE STAND FOR" Core Values Section
     ------------------------------------------------------------ */
  .pdf-values-sec {
    padding: 24px 18px;
  }

  .pdf-values-card {
    background: #FFFFFF;
    border: 1px solid #E6E1DA;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    padding: 16px;
  }

  .pdf-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .pdf-val-box {
    background: #FAF8F5;
    border: 1px solid #ECE7DF;
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
  }

  .pdf-val-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .pdf-val-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #B68D40;
    font-weight: 600;
  }

  .pdf-val-icon {
    width: 24px;
    height: 24px;
    color: #B68D40;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pdf-val-icon svg {
    width: 20px;
    height: 20px;
  }

  .pdf-val-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 6px 0;
  }

  .pdf-val-desc {
    font-size: 0.75rem;
    line-height: 1.55;
    color: #555555;
    margin: 0;
  }

  /* ------------------------------------------------------------
     6. Standard ORIZEN Mobile Footer (Identical across site)
     ------------------------------------------------------------ */
  .mobile-only .footer {
    background: #0D0D0E !important;
    color: #F3EFE7 !important;
    padding: 40px 20px calc(130px + env(safe-area-inset-bottom, 0px)) !important;
    margin-top: 40px !important;
    border-top: 1px solid rgba(194, 164, 109, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-only .footer-logo { margin-bottom: 16px; }
  .mobile-only .footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.9);
  }

  .mobile-only .footer-tagline {
    font-size: 0.82rem;
    color: #D9D3C7;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .mobile-only .footer-social-row { display: flex; gap: 10px; margin-bottom: 32px; }
  .mobile-only .footer-social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(194,164,109,0.25);
    display: flex; align-items: center; justify-content: center;
    color: #D9D3C7;
    transition: border-color 0.2s, color 0.2s;
  }
  .mobile-only .footer-social-btn:hover { border-color: #C2A46D; color: #C2A46D; }

  .mobile-only .footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    margin-bottom: 28px;
  }

  .mobile-only .footer-col-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C2A46D;
    margin-bottom: 12px;
  }

  .mobile-only .footer-links { display: flex; flex-direction: column; gap: 8px; }
  .mobile-only .footer-links a { font-size: 0.82rem; color: #D9D3C7; transition: color 0.2s; }
  .mobile-only .footer-links a:hover { color: #C2A46D; }

  .mobile-only .footer-contact-item { font-size: 0.82rem; color: #D9D3C7; line-height: 1.6; margin-bottom: 4px; }
  .mobile-only .footer-contact-item a { color: #D9D3C7; }
  .mobile-only .footer-contact-name { font-size: 0.78rem; color: #C2A46D; letter-spacing: 0.03em; margin-bottom: 2px; }

  .mobile-only .footer-bottom {
    border-top: 1px solid rgba(194,164,109,0.12);
    padding-top: 20px; display: flex; flex-direction: column; gap: 8px;
  }
  .mobile-only .footer-copyright { font-size: 0.75rem; color: #D9D3C7; }
  .mobile-only .footer-bottom-links { display: flex; gap: 16px; }
  .mobile-only .footer-bottom-links a { font-size: 0.75rem; color: #D9D3C7; transition: color 0.2s; }
  .mobile-only .footer-bottom-links a:hover { color: #C2A46D; }

  /* ------------------------------------------------------------
     7. Floating Liquid Bottom Navigation Bar
     ------------------------------------------------------------ */
  /* ============================================================
     MOBILE LUXURY BOTTOM NAVIGATION (Architectural Warm Surface & Sliding Active Tile)
     ============================================================ */
  .bottom-nav .goo-layer,
  .bottom-nav .bar-shape,
  .bottom-nav .hood,
  .bottom-nav .blob {
    display: none !important;
  }

  .bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: linear-gradient(180deg, #F9F5EC 0%, #EBE2D4 100%) !important;
    border-top: 1px solid rgba(206, 185, 145, 0.65) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 
      0 -4px 24px rgba(35, 28, 18, 0.12),
      0 -1px 3px rgba(0, 0, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    z-index: 9999 !important;
    display: block !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .bottom-nav .nav-links-bar {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 3px !important;
    margin: 0 !important;
    height: 54px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Sliding Raised Gold Active Tile */
  .bottom-nav .nav-active-tile {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 25% !important;
    height: 54px !important;
    padding: 3px !important;
    box-sizing: border-box !important;
    transition: transform 0.32s cubic-bezier(0.34, 1.25, 0.64, 1) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  .bottom-nav .nav-active-tile::before {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(145deg, rgba(224, 194, 116, 0.22) 0%, rgba(178, 132, 48, 0.14) 100%) !important;
    border: 1px solid rgba(194, 158, 70, 0.45) !important;
    border-radius: 14px 14px 4px 4px !important;
    box-shadow: 
      0 3px 10px rgba(168, 120, 42, 0.14),
      inset 0 1px 0.5px rgba(255, 255, 255, 0.8) !important;
    box-sizing: border-box !important;
  }

  /* Subtle Top Rust Accent Line on Active Tile */
  .bottom-nav .nav-active-tile .nav-active-line {
    position: absolute !important;
    top: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 18px !important;
    height: 2.5px !important;
    background: linear-gradient(90deg, #D65A31, #B83A1B) !important;
    border-radius: 0 0 3px 3px !important;
    box-shadow: 0 1px 4px rgba(184, 58, 27, 0.4) !important;
    z-index: 2 !important;
  }

  /* Smooth Slide Movements */
  .bottom-nav[data-active-index="0"] .nav-active-tile { transform: translateX(0%) !important; }
  .bottom-nav[data-active-index="1"] .nav-active-tile { transform: translateX(100%) !important; }
  .bottom-nav[data-active-index="2"] .nav-active-tile { transform: translateX(200%) !important; }
  .bottom-nav[data-active-index="3"] .nav-active-tile { transform: translateX(300%) !important; }

  /* Navigation Link Item */
  .bottom-nav .nav-link-bar {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #8A7367 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: color 0.25s ease, transform 0.15s ease !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
  }

  .bottom-nav .nav-link-bar:active {
    transform: scale(0.96) !important;
  }

  /* Icon */
  .bottom-nav .nav-link-bar .nav-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
  }

  .bottom-nav .nav-link-bar svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    display: block !important;
    transition: stroke 0.25s ease !important;
  }

  /* Label */
  .bottom-nav .nav-link-bar .nav-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    color: #8A7367 !important;
    margin-top: 2px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    transition: color 0.25s ease, font-weight 0.25s ease !important;
    text-align: center !important;
  }

  /* Active State Styling - Rust Colour */
  .bottom-nav .nav-link-bar.is-active {
    color: #B83A1B !important;
  }

  .bottom-nav .nav-link-bar.is-active .nav-icon {
    transform: scale(1.06) translateY(-1px) !important;
  }

  .bottom-nav .nav-link-bar.is-active svg {
    stroke: #B83A1B !important;
  }

  .bottom-nav .nav-link-bar.is-active .nav-label {
    color: #B83A1B !important;
    font-weight: 600 !important;
  }
}
