/* Contact page. Loads after styles.css. Paper: "Contact - Desktop" (1440) and "Contact - Mobile" (390). */

/* ===== Hero: navy, the clinic's front room on the right, faded into cream at the foot ===== */
.contact-hero{position:relative;overflow:clip;background:var(--navy);padding-top:196px;padding-bottom:176px}
.contact-hero__photo{position:absolute;top:0;left:38.9%;width:61.1%;height:100%;object-fit:cover;object-position:60% 40%}
/* Navy from the left over the photo, a darker band under the header, then the cream fade */
.contact-hero::before{content:"";position:absolute;z-index:1;inset:0 0 auto;height:calc(100% + 120px);pointer-events:none;
  background:
    linear-gradient(90deg,#152359 0,#152359 40%,rgba(21,35,89,.86) 52%,rgba(21,35,89,.5) 66%,rgba(21,35,89,.2) 82%,rgba(21,35,89,.12) 100%),
    linear-gradient(180deg,#0f1a45 0,rgba(15,26,69,.6) 13%,rgba(15,26,69,0) 30%)}
.contact-hero::after{content:"";position:absolute;z-index:1;inset:auto 0 0;height:200px;pointer-events:none;background:linear-gradient(0deg,var(--ground-fade))}
.contact-hero__inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:22px}
.contact-hero__title{max-width:800px;text-wrap:wrap;font-size:74px;line-height:74px}
.contact-hero__lede{max-width:560px;font-size:18px;line-height:30px}
.contact-hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding-top:12px}
.contact-hero__actions .button{min-height:56px;padding:0 30px;gap:12px}
.contact-hero__call{gap:10px!important;border-color:rgba(245,240,232,.45);color:var(--cream)}
.contact-hero__call::before{background:rgba(245,240,232,.1)}
.contact-hero__call:hover{border-color:var(--cream)}
.contact-hero__phone{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}

/* ===== Details beside the form ===== */
.contact-main{display:flex;justify-content:space-between;align-items:flex-start;gap:56px;padding-top:40px;padding-bottom:140px;background:var(--ground)}
.contact-details{flex:0 1 500px;min-width:0;border-top:1px solid rgba(21,35,89,.16)}
.contact-details__row{display:flex;gap:24px;padding-block:28px;border-bottom:1px solid rgba(21,35,89,.16)}
.contact-details__row--hours{border-bottom:0}
.contact-details__label{flex:none;width:130px;padding-top:4px;font-family:var(--caps);font-size:13px;font-weight:400;letter-spacing:.12em;line-height:16px;text-transform:uppercase;color:#8c7752}
.contact-details__body{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.contact-details__value{font-family:var(--serif);font-size:22px;line-height:30px;color:var(--navy);text-decoration:none;overflow-wrap:anywhere}
a.contact-details__value{background:linear-gradient(currentColor,currentColor) left bottom/0 1px no-repeat;transition:background-size .45s var(--ease-out)}
a.contact-details__value:hover{background-size:100% 1px}
.contact-details__link{display:inline-flex;align-items:center;gap:8px;padding-bottom:3px;border-bottom:1px solid rgba(21,35,89,.35);font-size:15px;font-weight:500;line-height:20px;color:var(--navy);text-decoration:none;transition:border-color .25s}
.contact-details__link:hover{border-color:var(--navy)}
.contact-details__link svg,.contact-map__open svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .35s var(--ease-out)}
.contact-details__link:hover svg,.contact-map__open:hover svg{transform:translate(2px,-2px)}

/* Hours: script.js adds .is-today to today's row */
.contact-hours{display:flex;flex-direction:column;gap:8px;width:100%;font-size:16px;line-height:24px}
.contact-hours div{display:flex;justify-content:space-between;gap:16px}
.contact-hours dt{color:var(--muted)}
.contact-hours dd{color:var(--navy)}
.contact-hours .is-today{margin-inline:-10px;padding:4px 10px;border-radius:4px;background:#ede6da;font-weight:600}
.contact-hours .is-today dt{color:#8c7752}
.contact-hours .is-today dt::after{content:" · today"}

/* ===== The enquiry form (shared form styles from styles.css, restyled to the Contact design) ===== */
.contact-form{flex:0 1 684px;min-width:0;display:flex;flex-direction:column;gap:24px}
.contact-form__head{display:flex;flex-direction:column;gap:12px}
.contact-main .contact-form__title{font-size:48px;line-height:52px;letter-spacing:-.02em;color:var(--navy)}
.contact-form__sub{font-size:16px;line-height:26px;color:var(--muted)}
.contact-main .form-panel{padding:51px;border:1px solid rgba(21,35,89,.13);box-shadow:0 30px 60px -30px rgba(21,35,89,.2)}
.contact-main .field input::placeholder{color:rgba(86,96,110,.85)}

/* ===== Map: the image covers the section; the pin, label and card sit around the clinic ===== */
.contact-map{position:relative;overflow:clip;height:560px;background:#e4dccd}
.contact-map__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.contact-map::before,.contact-map::after{content:"";position:absolute;left:0;right:0;z-index:1;pointer-events:none}
.contact-map::before{top:0;height:140px;background:linear-gradient(180deg,#f5f0e8,rgba(245,240,232,0))}
.contact-map::after{bottom:0;height:200px;background:linear-gradient(0deg,#152359,rgba(21,35,89,0))}
.contact-map__street{position:absolute;z-index:2;top:92px;left:calc(50% + 50px);font-size:12px;letter-spacing:.08em;line-height:16px;color:#8c7752;white-space:nowrap}
.contact-map__pin{position:absolute;z-index:2;top:136px;left:calc(50% - 114px);width:240px;height:190px}
.contact-map__pin img{position:relative;width:240px;height:179px;object-fit:contain}
.contact-map__shadow{position:absolute;left:20px;top:150px;width:210px;height:36px;border-radius:50%;background:radial-gradient(closest-side,rgba(21,35,89,.35),rgba(21,35,89,0))}
.contact-map__card{position:absolute;z-index:3;top:176px;left:calc(50% + 160px);width:330px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px 26px;border-radius:6px;background:var(--cream);box-shadow:0 20px 40px -20px rgba(21,35,89,.4)}
.contact-map__name{font-family:var(--serif);font-size:21px;line-height:28px;color:var(--navy)}
.contact-map__address{font-size:14px;line-height:22px;color:var(--muted)}
.contact-map__rating{display:flex;align-items:center;gap:8px;font-size:13px;line-height:18px;color:var(--muted)}
.contact-map__score{font-family:var(--display);font-size:20px;line-height:20px;color:var(--navy)}
.contact-map__stars{color:#8c7752;letter-spacing:.02em}
.contact-map__open{display:inline-flex;align-items:center;gap:8px;margin-top:4px;padding-bottom:3px;border-bottom:1px solid var(--navy);font-size:14px;font-weight:600;line-height:20px;color:var(--navy);text-decoration:none}
.contact-map__open svg{width:12px;height:12px;stroke-width:1.6}
.contact-map__credit{position:absolute;z-index:3;right:12px;bottom:8px;font-size:11px;line-height:16px;color:rgba(245,240,232,.62)}
.contact-map__credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.contact-map__credit a:hover{color:var(--cream)}

/* Between the full desktop and tablets */
@media (max-width:1180px) and (min-width:901px){
  .contact-main{gap:40px}
  .contact-details__label{width:96px}
  .contact-details__value{font-size:20px;line-height:28px}
  .contact-main .form-panel{padding:36px}
  .contact-map__card{left:calc(50% + 130px)}
}

/* ===== Phones, following the mobile design ===== */
@media (max-width:900px){
  .contact-hero{padding-top:124px;padding-bottom:104px;min-height:600px}
  .contact-hero__photo{left:0;width:100%;object-position:62% 40%}
  .contact-hero::before{height:100%;background:linear-gradient(180deg,rgba(21,35,89,.94) 0,rgba(21,35,89,.7) 30%,rgba(21,35,89,.85) 60%,#152359 78%)}
  .contact-hero::after{height:120px}
  .contact-hero__inner{gap:18px;padding-inline:var(--gutter)}
  .contact-hero__title{font-size:50px;line-height:50px}
  .contact-hero__lede{font-size:16px;line-height:26px}
  .contact-hero__actions{width:100%;flex-direction:column;align-items:stretch;gap:10px;padding-top:6px}
  .contact-hero__actions .button{width:100%;min-height:54px}
  .contact-hero__actions .button--cream{box-shadow:0 16px 32px -16px rgba(10,18,56,.6)}

  .contact-main{flex-direction:column;align-items:stretch;gap:0;padding:8px 0 72px}
  .contact-details{flex:none;margin:0 var(--gutter) 48px}
  .contact-details__row{flex-direction:column;gap:8px;padding-block:22px}
  .contact-details__row--hours{gap:12px}
  .contact-details__label{width:auto;padding-top:0;font-size:12px}
  .contact-details__body{gap:8px}
  .contact-details__body .contact-details__link{margin-top:2px}
  .contact-details__value{font-size:21px;line-height:28px}
  .contact-hours{gap:6px}
  .contact-hours .is-today{margin-inline:0}

  .contact-form{flex:none;gap:22px;padding-inline:var(--gutter)}
  .contact-form__head{gap:10px;padding-inline:0}
  .contact-main .contact-form__title{font-size:38px;line-height:40px}
  .contact-main .form-panel{padding:24px 20px}
  .contact-main .field{margin-bottom:18px}
  .contact-main .field>label,.contact-main .choices legend{margin-bottom:8px;line-height:22px}
  .contact-main .choices{padding-top:4px}
  .contact-main .choices legend{margin-bottom:10px}
  .contact-main .choices__hint{display:block;margin:2px 0 0;font-size:14px}
  .contact-main .choices__list{gap:8px}
  .contact-main .note-toggle{margin-bottom:18px}

  .contact-map{height:540px;padding:318px 16px 46px}
  .contact-map__img{inset:auto;top:-50px;left:calc(50% - 726px);width:1440px;max-width:none;height:560px;object-fit:fill}
  .contact-map::before{height:110px}
  .contact-map::after{top:340px;bottom:auto;height:200px;background:linear-gradient(0deg,#152359 0,#152359 30%,rgba(21,35,89,0))}
  .contact-map__street{top:96px;left:calc(50% + 19px);font-size:11px;line-height:14px}
  .contact-map__pin{top:118px;left:calc(50% - 100px);width:210px;height:170px}
  .contact-map__pin img{width:210px;height:156px}
  .contact-map__shadow{left:16px;top:132px;width:184px;height:32px}
  .contact-map__card{position:relative;top:auto;left:auto;width:auto;max-width:358px;margin-inline:auto}
  .contact-map__credit{right:16px;bottom:10px}
}
