:root{
  --bg: #0b0c10;
  --card: #12141b;
  --text: #f4f6ff;
  --muted: rgba(244,246,255,.75);
  --border: rgba(244,246,255,.12);
  --accent: #e21b23; /* red accent to match logo vibe */
  --accent2: rgba(226,27,35,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --container: 1100px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --bottom-nav-height: 0px; /* Mobile bottom nav height - set in mobile media query */
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(226,27,35,.12), transparent 55%),
              radial-gradient(1000px 700px at 80% 0%, rgba(226,27,35,.10), transparent 50%),
              var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

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

.skip-link{
  position:absolute;
  left:-999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.skip-link:focus{ left: 16px; z-index: 9999; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.7);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.header-stack{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand-centered{
  display:flex;
  justify-content: center;
}

.nav-centered{
  justify-content: center;
}

.header-actions-centered{
  justify-content: center;
}

.brand-logo{
  height: 44px;
  width: auto;
  display:block;
}

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

.nav-link{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link.active{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.04);
}

.header-actions{ display:flex; gap: 10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  box-shadow: none;
  font-weight: 650;
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(226,27,35,.55);
  background: linear-gradient(180deg, rgba(226,27,35,.95), rgba(226,27,35,.75));
  box-shadow: 0 10px 24px rgba(226,27,35,.18);
}
.btn-secondary{
  background: rgba(255,255,255,.05);
}
.btn-block{ width:100%; }

.hero{
  padding: 48px 0 24px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  align-items: start;
}
.hero-copy h1{
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 10px;
}
.lead{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.trust-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-list li{
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.hero-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 20px 0;
  justify-items: center;
}

.action-card{
  display: block;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.action-card:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(226,27,35,.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.action-card:focus{
  outline: 2px solid rgba(226,27,35,.55);
  outline-offset: 2px;
}

.action-card-title{
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 8px;
}

.action-card-body{
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.hero-card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-title{
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.card-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.card-row:first-of-type{ border-top: 0; padding-top: 0; }
.card-label{ color: var(--muted); }
.card-value{ color: var(--text); }

.page-hero{
  padding: 34px 0 10px;
}
.page-hero h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.section{
  padding: 26px 0 42px;
}
.section h2{
  margin: 0 0 14px;
  font-size: 1.35rem;
}

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

.tile{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.tile h3, .tile h2{
  margin: 0 0 8px;
}
.tile p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.callout{
  margin-top: 16px;
  border: 1px solid rgba(226,27,35,.35);
  background: linear-gradient(180deg, var(--accent2), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.callout h2{ margin: 0 0 8px; }
.callout p{ margin: 0 0 12px; color: var(--muted); }

/* Map embed styling */
.map-embed{
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
}

.map-embed iframe{
  width: 100%;
  max-width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.map-actions{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Dark-styled container for ONLY the map card */
.map-card--dark{
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  grid-column: 1 / -1; /* Span full width in grid layout */
}

/* Ensure title/inside text remains readable on the dark card */
.map-card--dark h2,
.map-card--dark p,
.map-card--dark a{
  color: inherit;
}

/* Desktop: Make all contact page boxes the same width */
@media (min-width: 769px){
  /* Change contact page grid to single column on desktop for consistent box widths */
  .section .container.grid.grid-2{
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Remove full-width span from map on desktop so it matches other boxes */
  .map-card--dark{
    grid-column: auto;
  }

  /* Ensure all contact tiles have consistent width */
  .section .container.grid.grid-2 .tile{
    width: 100%;
    max-width: 100%;
  }
}

.form{
  display:grid;
  gap: 12px;
}
.field{
  display:grid;
  gap: 6px;
}
.field span{ color: var(--muted); font-weight: 600; }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(226,27,35,.55);
  box-shadow: 0 0 0 4px rgba(226,27,35,.12);
}
input[type="file"]{
  padding: 8px 12px;
  cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button{
  padding: 8px 14px;
  margin-right: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
input[type="file"]::-webkit-file-upload-button:hover{
  background: rgba(255,255,255,.08);
}
.small{
  font-size: .92rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.info-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.info-row:first-of-type{ border-top: 0; padding-top: 0; }
.info-label{ color: var(--muted); }
.info-value{ color: var(--text); }

.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.22);
}
.footer-inner{
  padding: 22px 0;
  display:grid;
  gap: 10px;
  justify-items:center;
  text-align:center;
}
.footer-logo{
  height: 34px;
  width:auto;
  opacity: .95;
}

.footer-brand a{
  display: inline-block;
  text-decoration: none;
}
.footer-text{ color: var(--muted); margin: 0; }
.footer-copy{ color: rgba(244,246,255,.6); margin: 0; }

/* Footer mobile spacer - pushes footer content above fixed bottom nav */
.footer-mobile-spacer{
  display: none;
}

@media (max-width: 768px){
  .footer-mobile-spacer{
    display: block;
    height: 48px; /* each spacer row */
    width: 100%;
  }
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .nav{ justify-content: flex-start; }
  .hero-actions{
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* Mobile-only header and bottom nav (max-width: 768px) */
@media (max-width: 768px){
  /* Mobile header: logo centered, translate button on right, nav hidden */
  .header-stack{
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    min-height: 60px;
  }

  .brand-centered{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .nav-centered{
    display: none; /* Hide nav links on mobile */
  }

  .header-actions-centered{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  /* Mobile bottom navigation */
  .bottom-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11,12,16,.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  }

  .bottom-nav-link{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-height: 56px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 120px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
  }

  .bottom-nav-link:active{
    transform: scale(0.95);
  }

  .bottom-nav-link.active{
    color: var(--text);
    background: rgba(255,255,255,.06);
  }

  /* Set bottom nav height variable for mobile */
  :root{
    --bottom-nav-height: 72px; /* 8px top + 56px link min-height + 8px bottom = 72px */
  }

  /* Add bottom padding to body to ensure footer clears the fixed bottom nav */
  body{
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  /* Add bottom padding to main content to prevent overlap */
  main{
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  /* Ensure footer is fully visible above bottom nav */
  .site-footer{
    margin-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px){
  .bottom-nav{
    display: none;
  }
}
:root{
  --bg: #0b0c10;
  --card: #12141b;
  --text: #f4f6ff;
  --muted: rgba(244,246,255,.75);
  --border: rgba(244,246,255,.12);
  --accent: #e21b23; /* red accent to match logo vibe */
  --accent2: rgba(226,27,35,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --container: 1100px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --bottom-nav-h: 72px; /* Mobile bottom nav height */
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(226,27,35,.12), transparent 55%),
              radial-gradient(1000px 700px at 80% 0%, rgba(226,27,35,.10), transparent 50%),
              var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

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

.skip-link{
  position:absolute;
  left:-999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.skip-link:focus{ left: 16px; z-index: 9999; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.7);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.header-stack{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* Reduced from 12px to save vertical space */
  padding: 4px 0; /* Reduced from 14px to keep header compact with larger logo */
}

/* Desktop: Align nav and translate button on same row */
@media (min-width: 769px){
  .header-stack{
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .nav-centered{
    display: flex;
    flex-wrap: nowrap;
  }

  .header-actions-centered{
    display: flex;
    align-items: center;
  }

  .header-actions-centered .btn{
    white-space: nowrap;
  }
}

.brand-centered{
  display:flex;
  justify-content: center;
}

.nav-centered{
  justify-content: center;
}

.header-actions-centered{
  justify-content: center;
}

.brand-logo{
  height: 120px; /* Doubled from 60px */
  width: auto;
  max-width: min(100%, 80vw); /* Prevent overflow on small screens */
  display:block;
  object-fit: contain;
  margin: 0; /* Remove any default margins */
}

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

.nav-link{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link.active{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.04);
}

.header-actions{ display:flex; gap: 10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
  box-shadow: none;
  font-weight: 650;
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(226,27,35,.55);
  background: linear-gradient(180deg, rgba(226,27,35,.95), rgba(226,27,35,.75));
  box-shadow: 0 10px 24px rgba(226,27,35,.18);
}
.btn-secondary{
  background: rgba(255,255,255,.05);
}
.btn-block{ width:100%; }

.hero{
  padding: 48px 0 24px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
  align-items: start;
}
.hero-copy h1{
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 10px;
}
.lead{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.trust-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-list li{
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.hero-card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-title{
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.card-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.card-row:first-of-type{ border-top: 0; padding-top: 0; }
.card-label{ color: var(--muted); }
.card-value{ color: var(--text); }

.page-hero{
  padding: 34px 0 10px;
}
.page-hero h1{
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 42px);
}

.section{
  padding: 26px 0 42px;
}
.section h2{
  margin: 0 0 14px;
  font-size: 1.35rem;
}

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

.tile{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.tile h3, .tile h2{
  margin: 0 0 8px;
}
.tile p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.callout{
  margin-top: 16px;
  border: 1px solid rgba(226,27,35,.35);
  background: linear-gradient(180deg, var(--accent2), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.callout h2{ margin: 0 0 8px; }
.callout p{ margin: 0 0 12px; color: var(--muted); }

/* Map embed styling */
.map-embed{
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
}

.map-embed iframe{
  width: 100%;
  max-width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.map-actions{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Dark-styled container for ONLY the map card */
.map-card--dark{
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  grid-column: 1 / -1; /* Span full width in grid layout */
}

/* Ensure title/inside text remains readable on the dark card */
.map-card--dark h2,
.map-card--dark p,
.map-card--dark a{
  color: inherit;
}

/* Desktop: Make all contact page boxes the same width */
@media (min-width: 769px){
  /* Change contact page grid to single column on desktop for consistent box widths */
  .section .container.grid.grid-2{
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Remove full-width span from map on desktop so it matches other boxes */
  .map-card--dark{
    grid-column: auto;
  }

  /* Ensure all contact tiles have consistent width */
  .section .container.grid.grid-2 .tile{
    width: 100%;
    max-width: 100%;
  }
}

.form{
  display:grid;
  gap: 12px;
}
.field{
  display:grid;
  gap: 6px;
}
.field span{ color: var(--muted); font-weight: 600; }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(226,27,35,.55);
  box-shadow: 0 0 0 4px rgba(226,27,35,.12);
}
.small{
  font-size: .92rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.info-row{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.info-row:first-of-type{ border-top: 0; padding-top: 0; }
.info-label{ color: var(--muted); }
.info-value{ color: var(--text); }

.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.22);
}
.footer-inner{
  padding: 22px 0;
  display:grid;
  gap: 10px;
  justify-items:center;
  text-align:center;
}
.footer-logo{
  height: 34px;
  width:auto;
  opacity: .95;
}

.footer-brand a{
  display: inline-block;
  text-decoration: none;
}
.footer-text{ color: var(--muted); margin: 0; }
.footer-copy{ color: rgba(244,246,255,.6); margin: 0; }

/* Footer mobile spacer - pushes footer content above fixed bottom nav */
.footer-mobile-spacer{
  display: none;
}

@media (max-width: 768px){
  .footer-mobile-spacer{
    display: block;
    height: 48px; /* each spacer row */
    width: 100%;
  }
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .nav{ justify-content: flex-start; }
  .map-embed iframe{
    height: 220px;
  }
}

/* Mobile-only header and bottom nav (max-width: 768px) */
@media (max-width: 768px){
  /* Mobile header: logo centered, translate button on right, nav hidden */
  .header-stack{
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 0; /* Reduced from 12px to keep header compact with larger logo */
    min-height: 108px; /* Increased to accommodate 2x larger logo (104px + minimal padding) */
  }

  .brand-centered{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }

  .nav-centered{
    display: none; /* Hide nav links on mobile */
  }

  .header-actions-centered{
    position: absolute;
    right: 8px; /* Reduced from 12px to give more room for larger logo */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  /* Mobile bottom navigation */
  .bottom-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11,12,16,.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  }

  .bottom-nav-link{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-height: 56px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 120px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
  }

  .bottom-nav-link:active{
    transform: scale(0.95);
  }

  .bottom-nav-link.active{
    color: var(--text);
    background: rgba(255,255,255,.06);
  }

  /* Increase logo size on mobile - doubled from 52px */
  .brand-logo{
    height: 104px;
    max-width: min(100%, 75vw); /* Prevent overflow, ensure translate button remains accessible */
  }

  /* Add bottom padding to main content to prevent overlap */
  main{
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  /* Ensure footer is fully visible above bottom nav with generous spacing */
  .site-footer{
    margin-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: 8px; /* Extra padding for visual spacing */
    position: relative;
    z-index: 1;
  }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px){
  .bottom-nav{
    display: none;
  }
}
/* Estimate tool styles */
.estimate-tool-container > .tile{
  margin-bottom: 16px;
}

.estimate-tool-container > .tile:last-child{
  margin-bottom: 0;
}

.estimate-table{
  display: grid;
  gap: 12px;
}

.estimate-row{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}

.estimate-row-content{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.estimate-input{
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: 0.9rem;
}

.estimate-input:focus{
  border-color: rgba(226,27,35,.55);
  box-shadow: 0 0 0 3px rgba(226,27,35,.12);
  outline: none;
}

.estimate-desc{
  grid-column: 1;
}

.estimate-number{
  text-align: right;
}

.estimate-total{
  text-align: right;
  font-weight: 600;
  color: var(--text);
  padding: 0 4px;
}

.estimate-remove{
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 0.85rem;
}

@media (max-width: 768px){
  /* Ensure estimate info fields stack and fit properly on mobile */
  .estimate-info-grid{
    grid-template-columns: 1fr !important;
  }

  .estimate-info-grid input,
  .estimate-info-grid select,
  .estimate-info-grid textarea{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Ensure date inputs specifically fit within container */
  .estimate-info-grid input[type="date"]{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .estimate-row-content{
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .estimate-total{
    text-align: left;
    padding: 4px 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 8px;
  }

  .estimate-remove{
    width: 100%;
  }
}

/* App Layout with Sidebar */
.app-layout {
  display: flex;
  min-height: 100vh;
}

#sidebar {
  display: none; /* Hidden on mobile */
}

#main {
  flex: 1;
  width: 100%;
}

@media (min-width: 769px) {
  .app-layout {
    display: flex;
  }
  
  #sidebar {
    display: block;
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
  }
  
  #main {
    flex: 1;
    min-width: 0;
  }
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 40;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand {
  display: block;
}

.sidebar-logo {
  height: 40px;
  width: auto;
}

.sidebar-nav {
  padding: 12px 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  margin: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sidebar-link.active {
  background: rgba(226, 27, 35, 0.1);
  color: var(--text);
  border-left-color: var(--accent);
}

.sidebar-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  width: 24px;
}

.sidebar-label {
  flex: 1;
}

.sidebar-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.sidebar-menu-item.active > .sidebar-link > .sidebar-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.2);
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-menu-item.active > .sidebar-submenu {
  display: block;
  max-height: 500px;
}

.sidebar-submenu-item {
  margin: 0;
}

.sidebar-submenu-link {
  padding-left: 56px;
  font-size: 0.9rem;
}

/* Card and Pad utilities */
.card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pad {
  padding: 20px;
}

.h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 650;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.primary {
  background: linear-gradient(180deg, rgba(226,27,35,.95), rgba(226,27,35,.75));
  border-color: rgba(226,27,35,.55);
  box-shadow: 0 10px 24px rgba(226,27,35,.18);
  color: var(--text);
}

.primary:hover {
  filter: brightness(1.1);
}

