@import "style.css";

/* `background` shorthand would reset size/position/repeat; only replace layers */
.page-hero--contact::before{
  background-image:
    linear-gradient(90deg, rgba(9,4,3,.88) 0%, rgba(9,4,3,.56) 42%, rgba(9,4,3,.12) 100%),
    url("assets/About.webp");
}

@media (max-width: 767px){
  .page-hero--contact::before{
    background-size:auto, cover;
    background-position:center top, center center;
  }
}

/* Contact page (scoped enhancements) */
.page-hero--contact .hero-title{
  white-space:nowrap;
  font-size:var(--text-section);
  line-height:var(--leading-section);
}
@media (max-width:640px){
  .page-hero--contact .hero-title{
    white-space:normal;
    text-wrap:balance;
    line-height:var(--leading-hero);
  }
}
.page-hero--contact .hero-title-accent{
  color:var(--gold-2);
}
.page-hero--contact .hero-actions{
  margin-bottom:0;
}
.contact-hero-btn--branches{
  gap:10px;
}
.contact-hero-btn__icon{
  display:inline-flex;
  flex-shrink:0;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  color:var(--gold-2);
}
.contact-hero-btn__icon svg{
  display:block;
  width:100%;
  height:100%;
}
.contact-hero-grid{
  min-height:clamp(280px, 38vh, 440px);
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  align-items:center;
}
.page-hero--contact .hero-copy{
  padding:26px 0 14px;
}

.section-branches__title-part{
  color:var(--gold);
}
.section-branches__title-accent{
  color:var(--gold-2);
}

.section-branches__title{
  position:relative;
  padding-bottom:12px;
  margin-bottom:clamp(10px, 1.5vw, 14px);
}
.section-branches__title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:min(100px, 32vw);
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg, rgba(198, 154, 91, 0.95), rgba(198, 154, 91, 0.2));
}

.section-contact-cards{
  padding-top:54px;
}
.section-branches__head{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
}
.section-branches__intro{
  text-align:left;
  max-width:min(52ch, 100%);
}
.section-branches__copy{
  margin-inline:0;
}
.contact-cards{
  margin-top:18px;
}
.contact-card{
  padding:24px 24px 22px;
}
.contact-card__top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.contact-card__icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(198,154,91,.12);
  border:1px solid rgba(198,154,91,.20);
}
.contact-card__title{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:1.8rem;
  color:var(--gold-2);
}
.contact-card__copy{
  color:rgba(246,234,216,.74);
  margin-bottom:12px;
  max-width:60ch;
}
.contact-card__value{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:1.8rem;
  color:rgba(246,234,216,.92);
  letter-spacing:.02em;
}
.contact-card__meta{
  margin-top:6px;
  color:rgba(246,234,216,.72);
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.contact-card__actions{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
}
.contact-card__btn{
  min-height:44px;
  border-radius:999px;
  padding-inline:18px;
}

.section-branches{
  padding-top:58px;
  padding-bottom:48px;
}
.branch-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
  margin-top:18px;
}
.branch-hero{
  border-radius:26px;
  overflow:hidden;
  border:1px solid rgba(198,154,91,.28);
  background:rgba(18,8,5,.4);
  box-shadow:
    0 30px 90px rgba(0,0,0,.72),
    0 0 0 1px rgba(230,194,142,.1) inset,
    0 8px 40px rgba(198,154,91,.14);
  position:relative;
  min-height:260px;
  display:block;
  transition:transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.branch-hero__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 100% 90% at 0% 0%, rgba(230,194,142,.2) 0%, transparent 52%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(139,90,48,.18) 0%, transparent 50%),
    linear-gradient(125deg, rgba(12,5,3,.93) 0%, rgba(18,9,5,.72) 42%, rgba(9,4,3,.35) 100%),
    url("assets/Cafe.png") center/cover no-repeat;
  transform:scale(1.03);
}
.branch-hero--school .branch-hero__bg{
  background:
    radial-gradient(ellipse 100% 90% at 0% 0%, rgba(230,194,142,.22) 0%, transparent 50%),
    radial-gradient(ellipse 80% 70% at 100% 30%, rgba(198,154,91,.16) 0%, transparent 55%),
    linear-gradient(125deg, rgba(14,6,4,.94) 0%, rgba(20,10,6,.75) 45%, rgba(9,4,3,.38) 100%),
    url("assets/Chakrapat Branch.webp") center/cover no-repeat;
}
.branch-hero__content{
  position:relative;
  z-index:1;
  padding:22px 22px 20px;
  max-width:520px;
}
.branch-hero__kicker{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(230,194,142,.42);
  background:linear-gradient(145deg, rgba(230,194,142,.22) 0%, rgba(139,102,48,.16) 100%);
  color:var(--gold-2);
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin-bottom:12px;
  box-shadow:0 2px 16px rgba(198,154,91,.2);
}
.branch-hero__title{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:clamp(1.35rem, 2.4vw, 2rem);
  line-height:1.18;
  margin-bottom:6px;
  text-wrap:balance;
  color:#faf3e8;
  text-shadow:0 2px 28px rgba(198,154,91,.35), 0 1px 0 rgba(20,10,6,.35);
}
.branch-hero__copy{
  color:rgba(246,234,216,.82);
  margin-bottom:10px;
}
.branch-hero__meta{
  color:var(--gold-2);
  font-weight:600;
  text-shadow:0 1px 12px rgba(0,0,0,.35);
}
.branch-hero__actions{
  margin-top:14px;
}
.branch-hero__btn{
  min-height:44px;
  width:auto;
  border-color:rgba(230,194,142,.48);
  background:linear-gradient(165deg, rgba(230,194,142,.14) 0%, rgba(20,10,6,.35) 100%);
  color:var(--gold-2);
  box-shadow:0 4px 20px rgba(0,0,0,.25);
  transition:background .28s ease, border-color .28s ease, box-shadow .28s ease, color .28s ease;
}
.branch-hero:hover .branch-hero__btn{
  border-color:rgba(255,248,240,.45);
  background:linear-gradient(165deg, #e6c28e 0%, #c69a5b 48%, #8b6630 100%);
  color:#1a0d06;
  box-shadow:
    0 6px 28px rgba(198,154,91,.45),
    0 1px 0 rgba(255,255,255,.35) inset;
}
.branch-hero:hover{
  transform:translateY(-6px);
  border-color:rgba(230,194,142,.48);
  box-shadow:
    0 22px 60px rgba(0,0,0,.6),
    0 0 48px rgba(198,154,91,.28),
    0 0 0 1px rgba(230,194,142,.2) inset;
}
.branch-hero:focus{
  outline:none;
}
.branch-hero:focus-visible{
  box-shadow:
    0 0 0 3px rgba(230,194,142,.45),
    0 0 36px rgba(198,154,91,.25);
}

.contact-bottom-cta{
  margin-top:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.contact-layout{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:22px;
  align-items:start;
}
.contact-left,.contact-right{
  display:grid;
  gap:18px;
}

.contact-panel{
  position:sticky;
  top:104px;
}
.contact-panel__card{
  overflow:hidden;
}
.contact-panel__card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 12% 20%, rgba(198,154,91,.22), transparent 45%),
    radial-gradient(circle at 78% 30%, rgba(246,234,216,.12), transparent 40%);
  opacity:.55;
  pointer-events:none;
}
.contact-panel__card > *{
  position:relative;
  z-index:1;
}

.contact-actions{
  margin-top:18px;
  display:grid;
  gap:12px;
}
.contact-action{
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 70% 120%, rgba(198,154,91,.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 22px 70px rgba(0,0,0,.45);
  transition:transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.contact-action:hover{
  transform:translateY(-3px);
  border-color:rgba(198,154,91,.34);
  background:
    radial-gradient(circle at 70% 120%, rgba(198,154,91,.20), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:0 26px 80px rgba(0,0,0,.55);
}
.contact-action__label{
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.20em;
  font-size:.78rem;
}
.contact-action__value{
  color:var(--gold-2);
  font-weight:700;
  letter-spacing:.04em;
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.contact-meta{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
  display:grid;
  gap:10px;
}
.meta-row{
  display:grid;
  grid-template-columns:96px 1fr;
  gap:14px;
  align-items:baseline;
}
.meta-k{
  color:rgba(246,234,216,.64);
  letter-spacing:.20em;
  text-transform:uppercase;
  font-size:.74rem;
}
.meta-v{
  color:rgba(246,234,216,.86);
  font-weight:600;
}

.locations-head{
  padding:18px 18px 6px;
}
.locations-title{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:2rem;
  margin-bottom:6px;
  color:var(--gold-2);
}
.locations-copy{
  color:rgba(246,234,216,.74);
  max-width:60ch;
}

.branch-card{
  cursor:pointer;
  user-select:none;
}
.branch-card:focus-visible{
  outline:2px solid rgba(198,154,91,.65);
  outline-offset:4px;
}
.branch-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.branch-card__badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(198,154,91,.28);
  background:rgba(198,154,91,.10);
  color:var(--gold-2);
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  white-space:nowrap;
}
.branch-card__meta{
  color:rgba(246,234,216,.64);
  font-size:.9rem;
}
.branch-card__title{
  margin-bottom:6px;
}
.branch-card__copy{
  margin-bottom:14px;
  color:rgba(246,234,216,.74);
}
.branch-card__cta{
  color:var(--gold-2);
  font-weight:700;
}
.branch-card.is-active{
  border-color:rgba(198,154,91,.55);
  box-shadow:0 20px 70px rgba(198,154,91,.12), 0 20px 70px rgba(0,0,0,.55);
}

.map-wrap{
  padding:16px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 20% 0%, rgba(198,154,91,.12), transparent 40%),
    rgba(255,255,255,.02);
}
.map-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.map-note{
  color:rgba(246,234,216,.72);
  max-width:52ch;
}
.map-link{
  min-height:44px;
}

@media (max-width: 640px){
  /* Keep contact hero buttons on one row (override global mobile stacking) */
  .page-hero--contact .hero-actions{
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .page-hero--contact .hero-actions .btn{
    width: auto; /* override global `.btn { width: 100% }` on small screens */
    min-height: 48px;
    padding-block: 0;
    padding-inline: 12px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .page-hero--contact .hero-actions .btn-primary{
    flex: 0 1 auto;
  }

  .page-hero--contact .hero-actions .btn-outline{
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 10px 12px;
    justify-content: center;
  }

  .page-hero--contact .hero-actions .contact-hero-btn--branches{
    flex: 1 1 auto;
    min-width: 0;
  }

  .contact-hero-grid{
    grid-template-columns:1fr;
    min-height:auto;
    padding-bottom:18px;
  }
  .branch-grid{
    grid-template-columns:1fr;
  }
  .contact-layout{grid-template-columns:1fr}
  .contact-panel{position:static}
  .contact-card__actions{
    justify-content:stretch;
  }
  .contact-card__btn{
    width:100%;
  }
  .branch-hero__content{
    padding:18px 18px 16px;
  }
  .locations-head{padding-inline:0}
  .meta-row{grid-template-columns:84px 1fr}
}

