/* =========================
   Base / Reset
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

:root{
  --bg-ivory: #f6f2ea;
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, 0.70);
  --border: rgba(15, 23, 42, 0.14);
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.10);
  --radius: 16px;
  --container: 1180px;
  --nav-h: 72px;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg-ivory);
  line-height: 1.6;
  font-size: 17px;
}

/* =========================
   Layout Helpers
========================= */

.container{
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

/* =========================
   Header / Nav
========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.nav{
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-logo{
  height: 44px;
  width: auto;
}

.nav-links{
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  font-size: 16px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.86);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover{
  color: rgba(15, 23, 42, 1);
  border-bottom-color: rgba(15, 23, 42, 0.18);
}

.nav-links a.active{
  color: rgba(15, 23, 42, 1);
  border-bottom-color: rgba(15, 23, 42, 0.28);
}

/* =========================
   Home Hero
========================= */

.home-hero{
  position: relative;
  overflow: hidden;
  height: clamp(1050px, 108vh, 1480px);
  background: #0b1220;
}

.hero-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.home-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.08) 45%,
    rgba(0,0,0,0.22) 70%,
    rgba(0,0,0,0.50) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* =========================
   Explore Pills
========================= */

.pill-wrap{
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(420px, 48vh, 600px); 
  z-index: 3;
  padding: 0 18px;
}

.pills-grid{
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pill{
  display: flex;
  flex-direction: column;
  align-items: center;    
  text-align: center;      
  text-decoration: none;
  color: var(--ink);
  background: rgba(246, 242, 234, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px; 
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.pill:hover {
  transform: translateY(-4px);
  background: rgba(246, 242, 234, 1);
}

.pill strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
  width: 100%;             
}

.pill span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  display: block;
}

/* =========================
   Hero Text Panel
========================= */

.hero-text-panel{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(16px, 2.6vw, 30px) 18px 24px;
  background: rgba(0,0,0,0.32);
}

.hero-title{
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.98);
  font-weight: 600;
  text-align: center;
  font-size: clamp(28px, 3.6vw, 46px);
}

.hero-subtext{
  margin: 0;
  color: rgba(255,255,255,0.90);
  text-align: center;
  font-size: clamp(16px, 1.6vw, 20px);
}

/* =========================
   Floating Contact Button
========================= */

.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--ink);
  color: var(--bg-ivory);
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.floating-contact:hover {
  transform: translateY(-2px);
}

/* =========================
   Footer
========================= */

.site-footer{
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  padding: 18px 0;
  background: rgba(246, 242, 234, 0.92);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-row a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Mobile Responsiveness
========================= */

@media (max-width: 768px) {
  
  /* Stack the navigation vertically */
  .nav {
    height: auto;
    flex-direction: column;
    padding: 15px 0;
    text-align: center;
  }
  
  .nav-links {
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }

  /* Force grid columns to stack into one row */
  .pills-grid, .cards {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  /* Adjust heights for mobile */
  .home-hero {
    height: auto !important;
    min-height: 850px;
    display: flex;
    flex-direction: column;
  }

  .banner {
    height: 250px !important;
  }

  /* Position pills relative in flow on mobile so they don't overlap baked logo */
  .pill-wrap {
    position: relative;
    top: 320px;
    padding-bottom: 40px;
  }

  /* Fix absolute positioning of text panel for mobile flow */
  .hero-text-panel {
    position: relative;
    padding: 30px 18px;
    background: var(--ink);
  }

  /* Typography adjustments */
  .hero-title, .page-title {
    font-size: 26px !important;
  }

  .content-card {
    padding: 20px !important;
  }

  .footer-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Floating button positioning for thumb reach */
  .floating-contact {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 15px;
  }
}