/* ==========================================================================
   Chalifah Analytics - Clean Refactored Styles
   
   Table of Contents:
   1. CSS Variables & Design Tokens
   2. Base Styles
   3. Layout Components
   4. Header & Navigation
   5. Hero Section
   6. CTA Section
   7. Buttons
   8. Card Components
   9. Blog & Posts
   10. Contact Form
   11. Footer
   12. Utility Classes
   13. Responsive Design
   ========================================================================== */

/* ==========================================================================
   CUSTOM FONTS
   ========================================================================== */
@font-face {
  font-family: 'Diga';
  src: url('../fonts/diga/ttf/Diga-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Diga';
  src: url('../fonts/diga/ttf/Diga-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Diga';
  src: url('../fonts/diga/ttf/Diga-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Diga';
  src: url('../fonts/diga/ttf/Diga-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors */
  --color-bg-dark: #000000;
  --color-text-muted: #6e7785;
  --color-accent-light: #5fb0ff;
  --color-text-light: #e6eef8;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-navy: #062a6b;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Borders */
  --radius: 10px;
  --radius-sm: 6px;
  
  /* Layout */
  --max-width-content: 1000px;
  --max-width-narrow: 920px;
  --max-width-form: 600px;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
*{box-sizing: border-box;}

html {
  overflow-y: scroll;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  color: var(--color-text-light);
  background: var(--color-bg-dark);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Page transition animations */
[data-route] {
  animation: fadeIn 0.25s ease-in-out;
}

[data-route].page-exit {
  animation: fadeOut 0.2s ease-in-out;
}

.content {
  animation: fadeIn 0.25s ease-in-out;
}

.content.page-exit {
  animation: fadeOut 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.2;
}

p {margin: 0 0 var(--spacing-md) 0;}

a, a:visited {
  text-decoration: none;
  transition: border-bottom-color 0.18s;
}

a:hover, a:focus {
  text-decoration: none;
  border-bottom: 2px solid rgba(95, 176, 255, 0.16);
}

/* ==========================================================================
   3. LAYOUT COMPONENTS
   ========================================================================== */
main {
  padding-top: 0;
  min-height: 100vh;
}

.container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

main > section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  scroll-snap-align: start;
  scroll-margin-top: 3rem;
}

.content {
  padding-top: calc(var(--spacing-2xl) + 3rem);
  padding-bottom: var(--spacing-2xl);
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--color-white);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 1.25rem var(--spacing-2xl) 1.25rem var(--spacing-2xl);
  padding-right: calc(var(--spacing-2xl) + var(--spacing-lg));
  line-height: 1;
}

.brand {
  text-decoration: none;
  color: var(--color-black);
  font-family: "Diga", "Outfit", "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  line-height: 1;
  border-bottom: 0;
  flex-shrink: 0;
}

.brand:hover, .brand:focus {
  color: var(--color-black);
  border-bottom: 0;
}

.nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav a {
  color: var(--color-black);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  line-height: 1;
  transition: border-bottom-color 0.18s;
}

.nav a:hover, .nav a:focus {
  color: var(--color-black);
  border-bottom: 2px solid var(--color-black);
  text-shadow: none;
  outline: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-black);
  font-size: 20px;
  cursor: pointer;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  overflow: hidden;
}

.hero-left {
  flex: 0 0 70%;
  position: relative;
  background-image: url('../images/corporate.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  will-change: transform;
  z-index: 1;
}

.hero-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-right {
  flex: 0 0 30%;
  background: var(--color-bg-dark);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  right: var(--spacing-2xl);
  transform: translateY(-50%);
  max-width: 650px;
  z-index: 10;
  color: var(--color-white);
  text-align: right;
  padding-right: var(--spacing-lg);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--color-white);
  overflow: hidden;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.in-view h1 {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.hero .lead, .hero p {
  color: var(--color-white);
  font-size: 22px;
  line-height: 1.6;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s, opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

.hero.in-view .lead, .hero.in-view p {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

@keyframes revealText {
  0% {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* CTA background override */
.hero-left--cta {
  background-image: url('../images/notebook.jpg');
}

/* ==========================================================================
   6. CTA SECTION
   ========================================================================== */
.cta-row {
  margin-top: var(--spacing-md);
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(90deg, #000000 0%, #000000 100%);
  color: var(--color-white);
  font-weight: 700;
  border: 1px solid rgba(95, 176, 255, 0.08);
  box-shadow: 0 4px 14px rgba(8, 12, 32, 0.45);
}

.btn.primary:hover, .btn.primary:focus {
  box-shadow: 0 6px 18px rgba(8, 12, 32, 0.55);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-light);
}

.btn.ghost:hover, .btn.ghost:focus {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
}

.cta-row {margin-top: var(--spacing-md);}

.cta .btn.primary {
  max-width: 220px;
  padding: 10px 20px;
}

/* ==========================================================================
   8. CARD COMPONENTS
   ========================================================================== */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 18px;
  border-radius: var(--radius);
}

.home-cards {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.card-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 0;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
}

.card-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-item:hover {
  transform: translateY(-8px) !important;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.card-item.card-seeall {
  flex: 0.62;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  padding: var(--spacing-sm);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  border-bottom: 0;
}

.card-link:hover, .card-link:focus {border-bottom: 0;}

.card-item h3 {margin: 0 0 6px;}
.card-item p {margin: 0;}

.seeall-inner {
  width: 100%;
  margin: 0;
  padding: 6px var(--spacing-xs);
  border-radius: var(--radius-sm);
  text-align: center;
  background: transparent;
  border: 0;
}

/* ==========================================================================
   9. OFFERINGS SECTION
   ========================================================================== */
.offerings h2 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-size: clamp(24px, 3.5vw, 36px);
}

.offerings .lead {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
  margin-top: var(--spacing-xl);
  align-items: stretch;
}

.offering-card {
  position: relative;
  padding: 24px;
  border-radius: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.6s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.offering-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.offering-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/silicon.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
}

.offering-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.4s ease;
  z-index: 1;
}

.offering-card:hover::before {
  backdrop-filter: blur(12px);
}

.offering-card h3,
.offering-card p {
  position: relative;
  z-index: 2;
}

.offering-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.offering-card h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text-light);
  font-weight: 600;
  transition: margin-bottom 0.3s ease;
}

.offering-card:hover h3 {
  margin-bottom: 12px;
}

.offering-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.offering-card:hover p {
  max-height: 200px;
  opacity: 1;
}

/* ==========================================================================
   10. BLOG & POSTS
   ========================================================================== */
.posts {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Blog page post cards */
.posts .post {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.posts .post:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Home page posts inside cards - animated like offering cards */
.card-item .post {
  background: none;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.card-item .post:hover {
  transform: none;
  background: none;
  box-shadow: none;
  border: none;
}

.post h3 {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.35rem;
}

.card-item .post h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  transition: margin-bottom 0.3s ease;
}

.card-item:hover .post h3 {
  margin-bottom: 12px;
}

.card-item .post .post-excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.card-item:hover .post .post-excerpt {
  max-height: 200px;
  opacity: 1;
}

.post h3 a {
  color: var(--color-text-light);
  border-bottom: 0;
}

.post h3 a:hover, .post h3 a:focus {
  color: var(--color-accent-light);
  border-bottom: 0;
}

.post .muted {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.post p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   11. CONTACT FORM
   ========================================================================== */
.contact-widget {
  max-width: var(--max-width-form);
  margin: 0;
}

.contact-widget h2 {
  margin-top: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
}

.contact-widget form {display: block;}

.contact-widget label {
  display: block;
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-white);
}

.contact-widget input, .contact-widget textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px var(--spacing-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  resize: vertical;
}

.contact-widget input::placeholder,
.contact-widget textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-widget input:focus,
.contact-widget textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.contact-widget textarea {min-height: 120px;}

.contact-widget button.btn.primary {
  display: block;
  width: 100%;
  margin-top: var(--spacing-xs);
  font-size: 1.08rem;
}

.contact-widget .muted.small {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 18px;
}

.contact-widget .muted.small a {
  color: rgba(255, 255, 255, 0.7);
}

/* LinkedIn Profile Card */
.linkedin-profile-card {
  display: flex;
  gap: var(--spacing-xl);
  max-width: 700px;
}

.linkedin-profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

.linkedin-profile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-width: 0;
}

.linkedin-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.linkedin-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.linkedin-location {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--spacing-md);
  padding: 12px 24px;
  background: #0077B5;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.linkedin-button:hover {
  background: #005885;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
  border-bottom: none;
}

/* Mobile adjustments for LinkedIn card */
@media (max-width: 700px) {
  .linkedin-profile-card {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .linkedin-profile-photo {
    width: 160px;
    height: 160px;
    align-self: center;
  }
  
  .linkedin-name {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 0;
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(0);
  transition: transform 0.2s ease-in-out;
}

.site-footer.slide-up {
  transform: translateY(100%);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.footer-links a {
  color: var(--color-black) !important;
  font-size: 0.92rem;
  text-decoration: none;
  display: block;
  text-align: right;
  margin-bottom: var(--spacing-xs);
  border-bottom: 2px solid transparent;
  box-shadow: none;
  transition: border-bottom-color 0.18s;
}

.footer-links a:last-child {margin-bottom: 0;}

.footer-links a:hover, .footer-links a:focus {
  color: var(--color-black) !important;
  border-bottom: 2px solid var(--color-black);
  text-shadow: none;
  box-shadow: none;
}

/* ==========================================================================
   13. UTILITY CLASSES
   ========================================================================== */
.lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.muted {color: var(--color-text-muted);}
.small {font-size: 0.9rem;}

.logo {
  width: 44px;
  height: auto;
}

.logo.small {width: 36px;}

/* ==========================================================================
   14. NOTIFICATION TOAST
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  max-width: 400px;
}

.toast-notification.success {
  background: #10b981;
}

.toast-notification.error {
  background: #ef4444;
}

.toast-notification::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-notification.success::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: bold;
}

.toast-notification.error::before {
  content: '✕';
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   15. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 700px) {
  .nav {display: none;}
  .nav.nav--open {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    padding: var(--spacing-xs) 20px;
    background: var(--color-white);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.04);
    align-items: flex-end;
  }
  .nav-toggle {display: block;}
  .header-inner {
    gap: var(--spacing-sm); 
    position: relative;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
  .container {padding: var(--spacing-lg) var(--spacing-xl);}
  
  /* Hero Section - Mobile */
  .hero {
    position: relative;
    min-height: 100vh;
  }
  
  /* Default hero background for mobile */
  #hero {
    background-image: url('../images/corporate.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
  }
  
  /* CTA background for mobile */
  #ready {
    min-height: 400px;
    background-image: url('../images/notebook.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
  }
  
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    z-index: 1;
  }
  
  .hero-left,
  .hero-right {
    display: none;
  }
  
  .hero-content {
    position: absolute;
    top: 50%;
    left: var(--spacing-xl);
    right: var(--spacing-xl);
    transform: translateY(-50%);
    max-width: 100%;
    padding: 0;
    text-align: left;
    z-index: 10;
  }
  
  /* Content padding adjustment for mobile navbar */
  .content {
    padding-top: calc(var(--spacing-2xl) + 4rem);
  }
  
  .cta-row {display: flex; flex-direction: column; gap: var(--spacing-xs);}
  .btn {width: 100%; text-align: center;}
  .home-cards {flex-direction: column;}
  .card-item {width: 100%;}
  .card-item.card-seeall {flex: 1;}
  
  /* Offerings Grid - Mobile */
  .offerings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  /* Disable hover effects on mobile, use scroll-based expansion */
  .offering-card:hover::before {
    backdrop-filter: blur(0px);
  }
  
  .offering-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: transparent;
  }
  
  .offering-card:hover h3 {
    margin-bottom: 0;
  }
  
  .offering-card:hover p {
    max-height: 0;
    opacity: 0;
  }
  
  /* Scroll-based expansion for mobile */
  .offering-card.in-view::before {
    backdrop-filter: blur(12px);
  }
  
  .offering-card.in-view {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  }
  
  .offering-card.in-view h3 {
    margin-bottom: 12px;
  }
  
  .offering-card.in-view p {
    max-height: 200px;
    opacity: 1;
  }
  
  /* Card items for blog posts on home page - disable hover on mobile */
  .card-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .card-item:hover .post h3 {
    margin-bottom: 0;
  }
  
  .card-item:hover .post .post-excerpt {
    max-height: 0;
    opacity: 0;
  }
  
  /* Scroll-based expansion for mobile home page cards */
  .card-item.in-view {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  }
  
  .card-item.in-view .post h3 {
    margin-bottom: 12px;
  }
  
  .card-item.in-view .post .post-excerpt {
    max-height: 200px;
    opacity: 1;
  }
  
  .contact-widget {
    max-width: 100%;
    margin: 18px 0 0 0;
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: none;
  }
  .site-footer {padding: var(--spacing-lg) var(--spacing-xl);}
  .footer-inner {flex-direction: column; align-items: flex-start; gap: var(--spacing-sm);}
  
  .toast-notification {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    font-size: 0.9rem;
    padding: 14px 18px;
  }
}

/* Tablet breakpoint for offerings grid */
@media (min-width: 701px) and (max-width: 1024px) {
  .offerings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
