/* Contact page (html/contact.html, WordPress page slug "contacto": functions.php loads css/{slug}.css).
   The form card's design (.formCard) is in header.css, shared with the home and the treatment pages.
   Side padding uses --gutter (header.css), so everything lines up with the header. */

/* ---------- Title ---------- */

.contactIntro {
    padding: 70px var(--gutter) 0;
    text-align: center;
}

.contactIntro h3 {
    font-family: 'Calibri';
    font-weight: 200;
    color: #caab77;
    letter-spacing: 4px;
    font-size: 1em;
    margin: 0;
}

.contactIntro h1 {
    font-family: 'Baskervville';
    font-weight: 600;
    color: black;
    font-size: 2.6em;
    line-height: 1.2;
    margin: 18px 0 22px;
}

.contactIntro p {
    font-family: 'Baskervville';
    color: #333333;
    font-size: 1.2em;
    line-height: 1.4;
    max-width: 760px;
    margin: 0 auto;
}


/* ---------- Details + form ---------- */

.contactMain {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 70px var(--gutter);
}

/* Spread evenly over the form's height */
.contactDetails {
    width: 42%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.contactItem {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
}

.contactItemIcon {
    flex: none;
    width: 64px;
    height: 64px;
    margin-right: 22px;
    border-radius: 50%;
    background-color: #caab77;
    color: white; /* the icons use currentColor */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease-in-out;
}

.contactItemIcon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.contactItemText {
    min-width: 0; /* lets a long email wrap instead of pushing the layout */
}

.contactItemLabel {
    display: block;
    font-family: 'Calibri';
    font-weight: 700;
    color: #caab77;
    letter-spacing: 2px;
    font-size: 1em;
    margin-bottom: 4px;
}

.contactItemValue {
    display: block;
    font-family: 'Baskervville';
    font-variant-numeric: lining-nums; /* the phone number: Baskervville's default digits hang below the line */
    color: black;
    font-size: 1.4em;
    line-height: 1.25;
    word-wrap: break-word;
    transition: color 0.25s ease-in-out;
}

.contactItem:hover .contactItemIcon {
    background-color: black;
}

.contactItem:hover .contactItemValue {
    color: #caab77;
}

/* Wider than the hero forms (.formCard is 440px / 370px) */
.contactForm {
    flex: none;
    width: 38%;
}


/* ---------- Map ---------- */

.contactMap {
    padding: 0 var(--gutter) 110px;
}

.contactMap h2 {
    font-family: 'Baskervville';
    font-weight: 600;
    color: black;
    font-size: 2.2em;
    text-align: center;
    margin: 0 0 30px;
}

.contactMapFrame {
    height: 450px;
    border-radius: 22px;
    overflow: hidden;
    background-color: #e9e9e9; /* visible while the map loads */
    transform: translateZ(0); /* makes older Safari clip the iframe to the rounded corners */
}

.contactMapFrame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


@media (max-width:1600px){

.contactIntro h1 {
    font-size: 2.2em;
}

.contactIntro p {
    font-size: 1.1em;
}

.contactItemIcon {
    width: 54px;
    height: 54px;
    margin-right: 18px;
}

.contactItemIcon svg {
    width: 27px;
    height: 27px;
}

.contactItemValue {
    font-size: 1.2em;
}

.contactMap h2 {
    font-size: 1.9em;
}

.contactMapFrame {
    height: 400px;
}

}


@media (max-width:1150px){

/* Details on top, form below */
.contactMain {
    flex-direction: column;
    align-items: center;
    padding: 50px var(--gutter) 60px;
}

.contactDetails {
    width: 100%;
    max-width: 480px;
    display: block;
}

.contactItem {
    margin-bottom: 26px;
}

.contactForm {
    width: 100%;
    max-width: 480px;
    margin-top: 24px;
}

.contactMap {
    padding-bottom: 80px;
}

.contactMapFrame {
    height: 360px;
}

}


@media (max-width:600px){

.contactIntro {
    padding-top: 45px;
}

.contactIntro h3 {
    font-size: 0.75em;
    letter-spacing: 2px;
}

.contactIntro h1 {
    font-size: 1.6em;
    margin: 12px 0 14px;
}

.contactIntro p {
    font-size: 1em;
}

.contactMain {
    padding: 40px var(--gutter) 50px;
}

.contactItem {
    margin-bottom: 20px;
}

.contactItemIcon {
    width: 46px;
    height: 46px;
    margin-right: 14px;
}

.contactItemIcon svg {
    width: 23px;
    height: 23px;
}

.contactItemLabel {
    font-size: 0.8em;
}

.contactItemValue {
    font-size: 1em;
}

.contactMap {
    padding-bottom: 60px;
}

.contactMap h2 {
    font-size: 1.4em;
    margin-bottom: 18px;
}

.contactMapFrame {
    height: 300px;
    border-radius: 12px;
}

}
