/* Shared COREO visual system: one type family, seamless panels and gentle motion. */
:root {
  --heading: 'Barlow Condensed', 'Inter', Arial, sans-serif;
  --body: 'Inter', Arial, sans-serif;
}

body,
main :where(p, li, blockquote, small, label, input, textarea, select, summary, details) {
  font-family: var(--body) !important;
}

main :where(h1, h2, h3, h4, .eyebrow, .button, button),
.site-header :where(.brand, .nav, .nav-cta),
.site-footer :where(.brand, a) {
  font-family: var(--heading) !important;
}

main :where(h1, h2, h3, h4) {
  font-weight: 800;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

/* The section backgrounds now flow into one another without orange separator rules. */
main section {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
  main section.coreo-reveal,
  main article.coreo-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
  }

  main section.coreo-reveal.is-visible,
  main article.coreo-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  main article {
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  }

  main article:hover {
    transform: translateY(-3px);
  }

  main .button,
  .site-header .nav a {
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main *, .site-header * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Book a demo uses the same lead dialog as Join Now on coreo.in. */
.book-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
}

.book-dialog[hidden] {
  display: none;
}

.book-dialog-panel {
  width: min(100%, 420px);
  background: linear-gradient(135deg, #732608 0%, #0d0d0d 64%);
  border: 1px solid #333;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.book-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.book-dialog-head h2 {
  margin: 0;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
}

.book-dialog-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.book-dialog-panel > p {
  margin: 0 0 22px;
  color: #e0e0e0;
  font-size: 15px;
}

.book-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.book-dialog-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f5f5f5;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.book-dialog-form label span {
  text-transform: none;
  letter-spacing: 0;
  color: #c1bbb6;
}

.book-dialog-form input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #f5f5f5;
  padding: 0 0 8px;
  color: #fff;
  font: 400 16px/1.4 Inter, Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
}

.book-dialog-form input::placeholder {
  color: #bdbdbd;
}

.book-dialog-form .button {
  align-self: center;
  min-width: 200px;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.book-dialog-form .button:disabled {
  opacity: .7;
  cursor: wait;
}

.book-field-error,
.book-dialog-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.book-field-error,
.book-dialog-status.is-error,
.form-status.is-error {
  color: #ffb4a2;
}

.book-dialog-status.is-success,
.form-status.is-success {
  color: #b6f0c2;
}

.book-dialog-form input.input-invalid {
  border-bottom-color: #ffb4a2;
}

.coreo-footer {
  background: #111110;
  padding: 80px 5%;
  color: #e2e2e2;
}

.coreo-footer-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.coreo-footer-brand {
  flex: 0 0 280px;
}

.coreo-footer h3,
.coreo-footer h4 {
  margin: 0;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f2f2f7;
}

.coreo-footer h3 {
  font-size: 36px;
  margin-bottom: 8px;
}

.coreo-footer-tagline,
.coreo-copyright {
  margin: 0 0 24px;
  color: #e2e2e2;
  font-size: 14px;
  font-family: Inter, Arial, sans-serif;
}

.coreo-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.coreo-socials a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.coreo-socials a:hover,
.coreo-footer-links a:hover {
  color: #e75b0f;
}

.coreo-socials a:hover {
  background: #e75b0f;
  color: #fff;
}

.coreo-footer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  flex: none;
}

.coreo-socials svg {
  width: 16px;
  height: 16px;
}

.coreo-copyright a {
  color: #f2f2f7;
  font-family: Inter, Arial, sans-serif !important;
  text-transform: none;
  letter-spacing: 0;
}

.coreo-app-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.coreo-app-buttons img {
  width: auto;
  height: 44px;
  max-width: none;
  object-fit: contain;
}

.coreo-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.coreo-footer-links h4 {
  font-size: 16px;
  margin-bottom: 24px;
}

.coreo-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coreo-footer-links li {
  margin-bottom: 16px;
}

.coreo-footer-links a {
  color: #e2e2e2;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  white-space: nowrap;
}

.coreo-footer-contact a {
  line-height: 1.5;
  white-space: normal;
}

.floating-actions {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
  z-index: 40;
}

.call-float,
.whatsapp-float {
  position: absolute;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.call-float {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 90px);
  background: #e75b0f;
}

.whatsapp-float {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: #25d366;
}

.call-float svg,
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 1100px) {
  .coreo-footer {
    padding: 60px 20px;
  }

  .coreo-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .coreo-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .coreo-footer-brand {
    flex: none;
    width: 100%;
  }

  .coreo-footer h3 {
    font-size: 28px;
    letter-spacing: .2em;
  }
}

@media (max-width: 640px) {
  .coreo-footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .call-float,
  .whatsapp-float {
    right: 14px;
    width: 54px;
    height: 54px;
  }

  .call-float {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
  }

  .whatsapp-float {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  }

  .call-float svg,
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Home banner fills the first screen under the sticky header. */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 72px);
  min-height: calc(100dvh - 72px);
}

@media (max-width: 760px) {
  .hero {
    align-items: flex-end;
    min-height: calc(100svh - 72px);
    min-height: calc(100dvh - 72px);
  }
}

/* Pull the curved panel left so the ceiling COREO sign stays in the photo. */
@media (min-width: 761px) {
  .hero-shape {
    left: -12%;
    width: 56%;
    border-radius: 0 64% 64% 0 / 0 42% 42% 0;
  }

  .hero-photo img {
    object-position: 44% 40%;
  }

  .hero-copy {
    width: min(40%, 540px);
  }
}

.founder-photo img {
  object-position: 70% 22%;
  filter: saturate(.88) contrast(1.08) brightness(.76) !important;
}

.founder-photo:after {
  background:
    linear-gradient(90deg, #080807 0%, rgba(8, 8, 7, .72) 14%, rgba(8, 8, 7, .18) 38%, rgba(8, 8, 7, .34) 100%),
    linear-gradient(180deg, rgba(8, 8, 7, .42) 0%, rgba(8, 8, 7, .08) 28%, rgba(8, 8, 7, .2) 62%, rgba(8, 8, 7, .78) 100%);
}


/* Shared header guard: page-specific styles must not resize navigation. */
.site-header .nav > a,
.site-header .nav-menu-toggle {
  font-family: var(--heading) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}
.site-header .nav-menu-toggle {
  appearance: none;
  -webkit-appearance: none;
}
.site-header .nav-cta {
  font-family: var(--heading) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
@media (max-width: 1100px) {
  .site-header .nav > a,
  .site-header .nav-menu-toggle { font-size: 13px !important; }
  .site-header .nav-cta { font-size: 14px !important; }
}
@media (max-width: 760px) {
  .site-header .nav > a,
  .site-header .nav-menu-toggle { font-size: 17px !important; }
}

/* Homepage location details */
#home-page .location-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid #473026;
  border-bottom: 1px solid #473026;
  font-size: 14px;
}
#home-page .location-info { min-width: 0; }
#home-page .location-info h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font: 600 15px/1.4 var(--body);
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
}
#home-page .location-info h3 svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#home-page .location-hours { margin: 0; }
#home-page .location-hours > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 5px 0;
  border: 0;
  font-size: 14px;
}
#home-page .location-hours dt { color: #bcb5b0; }
#home-page .location-hours dd { margin: 0; color: #f5f1ed; white-space: nowrap; }
#home-page .location-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#home-page .location-phones a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f5f1ed;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
#home-page .location-phones a:hover { color: var(--orange); }
#home-page .location-phones a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (min-width: 701px) and (max-width: 1200px), (max-width: 359px) {
  #home-page .location-phones { grid-template-columns: 1fr; }
}

/* Fill the map-side frame while keeping the building signage centered. */
#home-page .location-photo {
  position: relative;
  overflow: hidden;
  background: #080807;
}
#home-page .location-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

/* Compact location section with more room for the building photograph. */
#home-page .location { min-height: 0; grid-template-columns: 1.1fr .9fr 1fr; }
#home-page .location-copy { padding: 32px 26px 32px max(3vw, 24px); }
#home-page .location-copy h2 { font-size: clamp(30px, 2.5vw, 38px); line-height: 1.08; margin-bottom: 14px; }
#home-page .location-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.6; }
#home-page .location-meta { gap: 14px; margin: 18px 0; padding: 16px 0; }
#home-page .location-info h3 { margin-bottom: 7px; }
#home-page .location-photo { min-height: 0; }
#home-page .map-panel iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 701px) and (max-width: 1100px) {
  #home-page .location { grid-template-columns: 1fr 1fr; }
  #home-page .location-copy { grid-column: 1 / -1; padding: 30px; }
  #home-page .location-meta { grid-template-columns: 1fr 1fr; gap: 28px; }
  #home-page .location-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-page .location-photo { display: block; height: 300px; }
  #home-page .map-panel { min-height: 300px; }
}
@media (max-width: 700px) {
  #home-page .location { grid-template-columns: 1fr; }
  #home-page .location-copy { padding: 30px 22px; }
  #home-page .map-panel { min-height: 240px; }
  #home-page .location-photo { display: block; height: 240px; min-height: 0; }
}
