/* Bozeman Children's Academy: the whole site's look. Colors: olive #786F48, beige #EFEDE7, light beige #E4E2DA, text #4D4D4D. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-700.woff2) format("woff2"); }
@font-face { font-family: "Amalfi Coast"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/amalfi-coast.ttf) format("truetype"); }

:root { --olive: #786F48; --beige: #EFEDE7; --beige2: #E4E2DA; --text: #4D4D4D; --dark: #333; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Barlow", sans-serif; font-size: 14px; line-height: 19px; letter-spacing: .5px; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: "Barlow", sans-serif; margin: 0 0 15px; }
.olive-title { font-size: 35px; font-weight: 500; line-height: 40px; letter-spacing: 2px; color: var(--olive); text-transform: uppercase; }
.kicker { font-size: 14px; font-weight: 500; line-height: 19px; letter-spacing: .5px; color: var(--dark); }
p { margin: 0 0 14px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-block; background: var(--olive); color: #fff; border: 1px solid var(--olive); border-radius: 50px; padding: 7px 30px 10px; font-size: 12px; font-weight: 500; letter-spacing: .5px; line-height: 1.2; text-decoration: none; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.btn:hover, .btn:focus { background: transparent; color: var(--olive); }
.btn-outline { background: transparent; color: var(--olive); }
.btn-outline:hover, .btn-outline:focus { background: var(--olive); color: #fff; }
.btn-white { background: transparent; color: #fff; border-color: #fff; text-transform: uppercase; }
.btn-white:hover, .btn-white:focus { background: #fff; color: var(--olive); }

/* Header */
.site-header { position: relative; z-index: 50; background: #fff; height: 117px; display: flex; justify-content: space-between; align-items: center; }
.site-header .menu { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; width: calc(50% - 150px); }
.site-header .menu-left { justify-content: flex-end; }
.site-header .menu-right { justify-content: flex-start; }
.site-header .menu a { text-decoration: none; text-transform: uppercase; font-size: 14px; font-weight: 400; letter-spacing: 1px; color: var(--dark); padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-header .menu a:hover, .site-header .menu a.current { border-bottom-color: var(--olive); }
.site-header .has-sub { position: relative; }
.site-header .sub { display: none; position: absolute; top: 100%; left: -20px; background: #fff; list-style: none; margin: 0; padding: 10px 0; min-width: 170px; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.site-header .has-sub:hover .sub, .site-header .has-sub:focus-within .sub { display: block; }
.site-header .sub a { display: block; padding: 8px 20px; border: 0; }
.site-header .sub a:hover { color: var(--olive); }
.logo-box { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 264px; line-height: 0; }
.logo-box img { width: 264px; max-width: none; display: block; }
.mobile-nav { display: none; }

/* Heroes */
.hero { position: relative; overflow: hidden; background: #ccc center / cover no-repeat; display: flex; align-items: flex-end; justify-content: center; min-height: 50vh; }
.hero-home { height: 70vh; min-height: 420px; background-image: url(../wp-content/uploads/2023/11/bca-home-head.jpg); }
.hero-video { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%) scale(1.3); border: 0; pointer-events: none; }
.hero-about { background-image: url(../wp-content/uploads/2023/11/pexels-photo-1075967.jpg); }
.hero-programs { background-image: url(../wp-content/uploads/2023/11/bg5.jpg); background-position: top center; }
.hero-contact { background-image: url(../wp-content/uploads/2023/11/bg8.jpg); }
.script-title { font-family: "Amalfi Coast", cursive; font-weight: 400; color: #fff; font-size: 34px; line-height: 2em; letter-spacing: 0; text-align: center; margin: 0; padding: 0 20px 30px; text-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Sections */
.section { padding: 50px 20px; }
.section-beige { background: var(--beige); }
.section-beige2 { background: var(--beige2); }
.wrap { max-width: 1100px; margin: 0 auto; }
.intro { max-width: 560px; margin: 0 auto; text-align: center; }
.cards { display: grid; gap: 20px; margin-top: 50px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: 30px; box-shadow: 3px 3px 10px -5px rgba(0,0,0,.5); padding: 50px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.card h5 { font-size: 14px; font-weight: 500; letter-spacing: 1px; color: var(--dark); text-transform: uppercase; margin-bottom: 30px; }
.card p { margin-bottom: 25px; }
.fact { background: #fff; border-radius: 30px; box-shadow: 3px 3px 10px -5px rgba(0,0,0,.5); padding: 30px 40px; min-height: 140px; display: flex; align-items: center; justify-content: center; text-align: center; }
.fact h5 { font-size: 14px; font-weight: 400; letter-spacing: .5px; color: var(--dark); margin: 0; }

.quote { background: url(../wp-content/uploads/2023/11/bg2.jpg) center / cover no-repeat fixed; min-height: 35vh; display: flex; align-items: center; justify-content: center; padding: 7% 25%; }
.quote p { color: #fff; text-align: center; font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: 2px; margin: 0; }

.tour { display: grid; grid-template-columns: 45% 55%; background: #fff; }
.tour-text { position: relative; z-index: 2; background: #fff; margin: 100px -114px 100px 0; border-radius: 0 30px 30px 0; padding: 60px 50px 60px 16%; }
.tour-image { background: url(../wp-content/uploads/2023/11/bg3.jpg) center / cover no-repeat; min-height: 650px; }
.tour h2 { text-align: left; }

.insta { text-align: center; padding: 80px 20px; }
.insta img { display: block; margin: 0 auto 20px; width: 43px; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text { text-align: center; padding: 0 30px; }
.about-image img { border-radius: 30px; box-shadow: 3px 3px 10px -5px rgba(0,0,0,.5); display: block; width: 100%; }
.goal { position: relative; padding-top: 60px; }
.goal img { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 70px; }
.goal .fact { align-items: flex-start; min-height: 230px; padding: 40px 25px; }
.staff { max-width: 760px; margin: 0 auto; text-align: center; }
.join { background: var(--olive); text-align: center; padding: 50px 20px 60px; }
.join h2 { color: #fff; font-size: 35px; font-weight: 500; letter-spacing: 2px; line-height: 40px; margin-bottom: 20px; }

/* Programs */
.tabs { display: grid; grid-template-columns: 35% 1fr; gap: 0 100px; margin-top: 50px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.tab-list label { display: block; padding: 24px 30px 24px calc(100% - 176px); font-size: 16px; line-height: 22px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--dark); cursor: pointer; }
.tab-list label:hover { color: var(--olive); }
.tab-panel { grid-column: 2; grid-row: 1; display: none; padding-top: 15px; max-width: 470px; }
.tab-panel h5 { font-size: 15px; font-weight: 500; letter-spacing: 1px; color: var(--dark); text-transform: uppercase; margin-bottom: 20px; }
#tab-reading:checked ~ .tab-list label[for=tab-reading],
#tab-writing:checked ~ .tab-list label[for=tab-writing],
#tab-math:checked ~ .tab-list label[for=tab-math],
#tab-enrichment:checked ~ .tab-list label[for=tab-enrichment] { background: var(--beige2); }
#tab-reading:checked ~ #panel-reading, #tab-writing:checked ~ #panel-writing,
#tab-math:checked ~ #panel-math, #tab-enrichment:checked ~ #panel-enrichment { display: block; }
.tabs input:focus-visible ~ .tab-list label { outline-offset: -3px; }

.programs { position: relative; background: var(--beige2); padding: 60px 20px 90px; margin-top: 135px; }
.programs::before { content: ""; position: absolute; left: 0; right: 0; top: -134px; height: 135px; background: var(--beige2); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.programs .olive-title { margin-top: -80px; position: relative; }
.program { display: grid; grid-template-columns: 1fr 386px; gap: 40px; align-items: center; max-width: 980px; margin: 30px auto 70px; }
.program.image-first { grid-template-columns: 386px 1fr; }
.program img { border-radius: 30px; display: block; width: 100%; max-width: 386px; height: 240px; object-fit: cover; justify-self: end; }
.program.image-first img { justify-self: start; }
.program.tall img { height: 364px; }
.program h3 { font-size: 25px; font-weight: 500; letter-spacing: 2px; color: var(--olive); text-transform: uppercase; margin-bottom: 20px; }
.program h5 { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--dark); margin: 0 0 2px; }
.program p { margin-bottom: 12px; }
.program .indent { padding-left: 12px; }

/* Contact */
.contact-block { display: grid; grid-template-columns: 58% 42%; max-width: 1190px; margin: 100px auto 70px; padding: 0 20px; align-items: start; }
.contact-block iframe { width: 100%; min-width: 0; height: 257px; border: 0; display: block; position: relative; z-index: 2; }
.contact-info { background: var(--beige); padding: 50px 40px 50px 80px; margin: 38px 0 0 -40px; }
.contact-info h5 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--dark); margin-bottom: 25px; }
.contact-info a { display: flex; align-items: center; gap: 15px; text-decoration: none; margin-bottom: 14px; }
.contact-info img { width: 18px; }

/* Footer */
.site-footer { background: var(--beige); padding: 4% 5% 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.footer-cols > div { padding: 0 20px 40px; }
.footer-cols > div + div { border-left: 1px solid var(--olive); }
.footer-cols img { width: 150px; display: block; margin-bottom: 15px; }
.footer-contact a { display: block; text-decoration: none; font-size: 12px; margin-bottom: 4px; }
.footer-links h5 { font-size: 14px; font-weight: 600; letter-spacing: .5px; color: var(--olive); margin-bottom: 25px; }
.footer-links a { display: block; text-decoration: none; font-size: 12px; text-transform: uppercase; margin-bottom: 4px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--olive); }
.footer-form h5 { font-size: 18px; font-weight: 600; color: var(--olive); margin-bottom: 20px; }
.form input, .form textarea { width: 100%; border: 0; border-radius: 5px; background: #fff; padding: 8px 10px; margin-bottom: 8px; font-family: inherit; font-size: 12px; color: var(--dark); }
.form textarea { height: 80px; resize: vertical; }
.form .btn { float: right; padding: 4px 30px; }
.form .note { clear: both; font-size: 11px; line-height: 15px; padding-top: 10px; margin: 0; }
.form [data-email-form-message] { clear: both; font-weight: 600; color: var(--olive); padding-top: 10px; }
.copyright { font-size: 11px; line-height: 15px; color: #B3B3B3; padding: 10px 20px 30px; margin: 0; }

/* Popups (open when the page address ends in #schedule-a-tour or #join-our-team) */
.popup { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.6); align-items: center; justify-content: center; padding: 20px; }
.popup:target { display: flex; }
.popup-bg { position: absolute; inset: 0; }
.popup-box { position: relative; background: #fff; border-radius: 30px; padding: 50px 45px 35px; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; }
.popup-box h2 { font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: 1px; color: var(--olive); margin-bottom: 10px; }
.popup-box .form input, .popup-box .form textarea { background: var(--beige); text-transform: none; }
.popup-box .form input::placeholder, .popup-box .form textarea::placeholder { text-transform: uppercase; }
.popup-close { position: absolute; top: 12px; right: 20px; font-size: 28px; line-height: 1; text-decoration: none; color: var(--dark); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.attach { background: var(--beige); border-radius: 5px; padding: 10px; font-size: 12px; margin-bottom: 8px; }

/* Not found page */
.notfound { text-align: center; padding: 90px 20px; }

/* Tablet */
@media (max-width: 1024px) {
  .site-header .menu { gap: 25px; }
  .olive-title { font-size: 30px; line-height: 35px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 30px; }
  .quote { padding: 0 15%; }
  .tour-text { padding-left: 8%; }
}

/* Phone */
@media (max-width: 767px) {
  .site-header { height: 88px; justify-content: space-between; padding: 0 20px; }
  .site-header .menu { display: none; }
  .logo-box { left: 0; top: 0; transform: none; width: 262px; z-index: 4; }
  .logo-box img { width: 262px; }
  .mobile-nav { display: block; margin-left: auto; position: relative; z-index: 3; }
  .mobile-nav summary { list-style: none; cursor: pointer; padding: 10px; color: var(--olive); font-size: 26px; line-height: 1; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; right: -20px; top: 66px; width: 100vw; background: #fff; box-shadow: 0 8px 14px rgba(0,0,0,.12); padding: 70px 0 20px; }
  .mobile-nav nav a { display: block; text-align: center; padding: 10px; text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; color: var(--dark); }
  .mobile-nav nav a.current { color: var(--olive); }
  .hero-home { height: 55vh; min-height: 0; }
  .hero { min-height: 40vh; }
  .olive-title { font-size: 25px; line-height: 30px; letter-spacing: 1px; }
  .section { padding: 30px 20px; }
  .cards-3, .cards-4 { grid-template-columns: 1fr; padding: 0 20px; }
  .quote { background-attachment: scroll; padding: 60px 15%; }
  .tour { grid-template-columns: 1fr; }
  .tour-text { margin: 0; border-radius: 0; padding: 50px 30px; }
  .tour-image { min-height: 300px; }
  .split, .program, .program.image-first { grid-template-columns: 1fr; gap: 30px; }
  .program img, .program.image-first img { justify-self: center; }
  .program.image-first img { order: -1; }
  .program img, .program.tall img { height: 260px; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list label { padding: 16px 30px; }
  .tab-panel { grid-column: 1; grid-row: 2; padding: 25px 10px 0; }
  .programs { margin-top: 60px; }
  .programs::before { top: -59px; height: 60px; }
  .programs .olive-title { margin-top: -30px; }
  .contact-block { grid-template-columns: 1fr; }
  .contact-info { margin: 0; padding: 40px 30px; }
  .contact-block { margin: 40px auto; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-cols > div + div { border-left: 0; border-top: 1px solid var(--olive); padding-top: 30px; }
  .script-title { font-size: 26px; }
  .popup-box { padding: 45px 25px 25px; }
}
