/* Hollywood Eye Institute & Aesthetic Center: the look of the current site, rebuilt in our own code.
   Navy #3e4c71, pale teal #bfdedd, Afacad Flux headings, serif body text. */
:root {
  --navy: #3e4c71; --navy-dk: #2b3654; --navy-xdk: #1f2740; --teal: #bfdedd; --teal-lt: #e3f0ef;
  --ink: #333; --text: #555; --line: #e2e2e2; --white: #fff;
  --head: "Afacad Flux", "Helvetica Neue", Arial, sans-serif; --serif: "Times New Roman", Times, Georgia, serif;
  --wrap: 1300px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: #fff; font: 400 16px/1.7 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dk); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--navy); font-weight: 400; line-height: 1.2; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- header ---------- */
.langbar { background: var(--navy); color: #fff; text-align: center; font: 400 14px/1 var(--serif); padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.45); }
.hdr { background: var(--navy); position: sticky; top: 0; z-index: 30; }
.hdr-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 22px; }
.brand > a img { width: 200px; }
.badge { width: 76px; height: 76px; }
.hdr-btns { display: flex; gap: 14px; }
.obtn { display: inline-block; color: #fff; text-decoration: none; text-transform: uppercase; font: 400 15px/1 var(--serif); letter-spacing: .02em; border: 1.5px solid #fff; border-radius: 6px; padding: 16px 28px; white-space: nowrap; }
.obtn:hover { background: #fff; color: var(--navy); }
.m-btns { display: none; gap: 8px; }
.m-btns a, .menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid #fff; border-radius: 6px; color: #fff; background: none; cursor: pointer; }
.nav { list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; }
.nav > li { position: relative; }
.nav > li > a { display: block; color: #fff; text-decoration: none; text-transform: uppercase; font: 400 15px/1 var(--serif); padding: 12px 9px; white-space: nowrap; }
.nav > li:first-child > a { padding-left: 0; }
.nav > li > a:hover, .nav > li > a.active { color: var(--teal); }
.caret { display: inline-block; margin-left: 4px; border-top: 4px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent; vertical-align: middle; }
.sub-toggle { display: none; }
.nav ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: none; z-index: 5; }
.nav li:hover > ul, .nav li:focus-within > ul { display: block; }
.nav ul a { display: block; padding: 8px 20px; color: var(--navy); text-decoration: none; font: 400 15px/1.35 var(--serif); }
.nav ul a:hover { background: var(--teal-lt); }
@media (max-width: 1100px) {
  .hdr-btns { display: none; } .m-btns { display: flex; }
  .brand > a img { width: 150px; } .badge { width: 56px; height: 56px; }
  #site-nav { display: none; padding-bottom: 16px; max-height: calc(100vh - 120px); overflow: auto; }
  #site-nav.open { display: block; }
  .nav { flex-direction: column; }
  .nav > li { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid rgba(255,255,255,.2); }
  .nav > li > a { padding: 14px 0; }
  .caret { display: none; }
  .sub-toggle { display: block; width: 44px; background: none; border: 0; color: #fff; cursor: pointer; }
  .sub-toggle::after { content: "+"; font-size: 22px; } .sub-toggle[aria-expanded="true"]::after { content: "–"; }
  .nav ul { position: static; grid-column: 1 / -1; box-shadow: none; background: rgba(255,255,255,.06); padding: 0 0 8px; }
  .nav li:hover > ul, .nav li:focus-within > ul { display: none; }
  .nav li.open > ul { display: block; }
  .nav ul a { color: #fff; padding: 9px 16px; }
  .nav ul a:hover { background: rgba(255,255,255,.08); }
}
@media (max-width: 560px) { .wrap { padding: 0 18px; } .langbar { font-size: 12px; } .badge { display: none; } }

/* ---------- inner page banner ---------- */
.banner { background: var(--teal-lt) center / cover no-repeat; min-height: 320px; display: flex; align-items: center; }
.banner .wrap { width: 100%; }
.banner h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); padding: 48px 0; }
@media (max-width: 700px) { .banner { min-height: 200px; } }

/* ---------- page body: content + sidebar ---------- */
.body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 50px; padding-top: 60px; padding-bottom: 80px; }
.body.wide { grid-template-columns: 1fr; }
@media (max-width: 900px) { .body { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; } }
.content { min-width: 0; font-size: 16px; }
.content::after { content: ""; display: block; clear: both; }
.content h2 { font-size: 1.9rem; margin: 1.6em 0 .5em; } .content h3 { font-size: 1.45rem; margin: 1.4em 0 .4em; } .content h4 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.content > :first-child, .content > figure:first-child + * { margin-top: 0; }
.content p { margin: 0 0 1.2em; }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content blockquote { margin: 1.2em 0; padding: 1em 1.4em; border-left: 3px solid var(--teal); background: var(--teal-lt); }
.photo { margin: 0 0 1.4em; }
.photo.right { float: right; width: 45%; margin: 0 0 1.2em 28px; }
.photo.left { float: left; width: 45%; margin: 0 28px 1.2em 0; }
.photo img { width: 100%; }
@media (max-width: 640px) { .photo.right, .photo.left { float: none; width: 100%; margin: 0 0 1.2em; } }
.video { position: relative; padding-top: 56.25%; margin: 1.2em 0 1.8em; clear: both; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.anchor { display: block; position: relative; top: -170px; visibility: hidden; }
.btn, .nbtn { display: inline-block; text-decoration: none; text-transform: uppercase; letter-spacing: .14em; font: 400 14px/1 var(--serif); border: 1.5px solid var(--navy); color: var(--navy); border-radius: 6px; padding: 13px 24px; background: transparent; }
.btn { background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-dk); color: #fff; }
.nbtn:hover { background: var(--navy); color: #fff; }
.nbtn.light { border-color: #fff; color: #fff; } .nbtn.light:hover { background: #fff; color: var(--navy); }
.list-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); clear: both; }
.list-item .photo { float: none; width: 100%; margin: 0; }
.list-item h3 { margin-top: 0; }
.list-item:has(> div:only-child) { grid-template-columns: 1fr; }
@media (max-width: 640px) { .list-item { grid-template-columns: 1fr; } }
.list .li-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.content .slide, .content .brand { display: inline-block; vertical-align: top; width: calc(33.33% - 14px); margin: 0 10px 18px 0; }
.content .brand { width: calc(25% - 14px); text-align: center; }
@media (max-width: 700px) { .content .slide { width: calc(50% - 10px); } .content .brand { width: calc(50% - 10px); } }
.callus { font-size: 1.1rem; padding: 18px 22px; background: var(--teal-lt); border-radius: 8px; }
.sitemap { columns: 2 280px; } .sitemap > li { break-inside: avoid; margin-bottom: 1em; } .sitemap ul { padding-left: 1.2em; }

/* sidebar */
.side { display: grid; gap: 22px; align-content: start; }
.side-search { display: flex; border: 1px solid #d5d5d5; border-radius: 8px; overflow: hidden; }
.side-search input { flex: 1; border: 0; padding: 16px 18px; font: 400 15px var(--head); min-width: 0; }
.side-search button { border: 0; background: #fff; color: var(--navy); padding: 0 14px; cursor: pointer; }
.side-box { border: 1px solid #ececec; border-radius: 8px; overflow: hidden; background: #fff; }
.side-box h2, .side-box summary { margin: 0; background: var(--navy); color: #fff; font: 400 15px/1 var(--serif); text-transform: uppercase; letter-spacing: .16em; padding: 18px 20px; }
.side-box summary { cursor: pointer; list-style: none; border-radius: 8px; }
.side-box summary::-webkit-details-marker { display: none; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: block; padding: 14px 20px; border-top: 1px solid #f0f0f0; color: #555; text-decoration: none; font: 400 15px var(--head); }
.side-box li:first-child a { border-top: 0; }
.side-box li a:hover { background: var(--teal-lt); color: var(--navy); }
.side-box li a.active { background: var(--teal); color: var(--navy); }
.articles ul { max-height: 420px; overflow: auto; }
.side-card { display: grid; place-items: center; align-content: center; gap: 16px; min-height: 240px; border-radius: 10px; background: center / cover no-repeat; text-decoration: none; color: #fff; text-align: center; font: 400 26px/1.25 var(--serif); position: relative; overflow: hidden; }
.side-card::before { content: ""; position: absolute; inset: 0; background: rgba(30, 38, 60, .25); }
.side-card > * { position: relative; }
.sbtn { background: var(--navy); font: 400 15px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; padding: 14px 22px; border-radius: 6px; }

/* ---------- homepage ---------- */
.kicker { font: 400 15px/1 var(--head); text-transform: uppercase; letter-spacing: .3em; color: var(--navy); margin: 0 0 8px; }
.big { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 24px; color: #222; }
.light { color: #fff !important; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.hero { position: relative; height: min(82vh, 760px); min-height: 460px; overflow: hidden; background: var(--navy-xdk); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 24, 40, .45), rgba(20, 24, 40, .55)); }
.hero-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; }
.hero-text h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.6rem); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; max-width: 18ch; }
.hero-text p { font-size: clamp(1.05rem, 1.7vw, 1.35rem); max-width: 62ch; margin: 0; }
.hero-award { position: absolute; z-index: 3; right: 40px; bottom: 30px; width: 110px; }
.slide-prev, .slide-next { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; padding: 10px 18px; opacity: .8; }
.slide-prev { left: 8px; } .slide-next { right: 8px; }
@media (max-width: 700px) { .hero-award { width: 70px; right: 14px; bottom: 14px; } }
.welcome, .services, .team, .brands { background: center / cover no-repeat; }
.welcome { padding: 110px 0; text-align: center; }
.narrow { max-width: 980px; }
.welcome p { font-size: 17px; }
.vip { background: var(--teal); padding: 90px 0; text-align: center; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 10px auto 0; }
.tier { position: relative; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; }
.tier img { width: 100%; }
.tier span { position: absolute; left: 0; right: 0; bottom: 18px; color: #fff; font: 500 22px var(--head); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; max-width: 420px; } }
.services { padding: 100px 0; text-align: center; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 30px auto 0; }
.svc a { display: grid; justify-items: center; gap: 16px; text-decoration: none; color: var(--navy); font: 400 1.3rem var(--head); }
.svc img { width: 150px; height: 150px; object-fit: contain; }
@media (max-width: 700px) { .svc { grid-template-columns: 1fr; } }
.brands { padding: 90px 0; text-align: center; background-color: var(--navy); }
.team { padding: 90px 0; background-color: #fff; }
.person { display: none; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 50px; align-items: center; }
.person.on { display: grid; }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; border: 2px solid var(--navy); width: 100%; max-width: 340px; justify-self: center; background: #fff; }
.arch img { width: 100%; }
.person h3 { font-size: 1.4rem; color: #222; margin: 0 0 12px; }
.person .btns { justify-content: flex-end; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; gap: 24px; text-align: center; } .person .btns { justify-content: center; } }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--navy); background: transparent; padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--navy); }
.testimonials { background: var(--tl) left top / auto 100% repeat-x, var(--navy); position: relative; padding: 70px 0; }
.testimonials::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 22%; background: var(--tr) left center / cover no-repeat; }
.testimonials .wrap { position: relative; z-index: 1; }
.tcard { background: var(--teal) center / cover; max-width: 1000px; margin: 0 auto; padding: 60px 50px; text-align: center; }
@media (max-width: 900px) { .testimonials::after { display: none; } }
.quote { display: none; margin: 10px auto 0; max-width: 680px; font-size: 16px; }
.quote.on { display: block; }
.quote .q { display: block; font: 400 60px/1 var(--serif); color: var(--navy); }
.quote footer { font: 400 1.2rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--navy); margin-top: 16px; }


/* ---------- footer ---------- */
.ftr { background: var(--navy-xdk) center / cover no-repeat; color: #fff; padding-top: 50px; font-family: var(--head); }
.ftr a { color: #fff; text-decoration: none; } .ftr a:hover { color: var(--teal); }
.ftr-logo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; margin-bottom: 40px; }
.ftr-logo span { height: 1px; background: rgba(255,255,255,.35); }
.ftr-logo img { width: 180px; }
.ftr-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr h2 { color: #fff; text-transform: uppercase; font-size: 1.45rem; margin: 0 0 16px; }
.ftr-svc ul { list-style: none; padding: 0; margin: 0; columns: 2; font-size: 1.1rem; line-height: 1.75; }
.ci { display: flex; gap: 10px; align-items: flex-start; font-size: 1.1rem; margin: 0 0 12px; }
.ci svg { flex: none; margin-top: 4px; border: 1px solid #fff; border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.social { display: flex; gap: 16px; font-size: .95rem; }
.ftr-hours table { border-collapse: collapse; font-size: 1.05rem; }
.ftr-hours th { text-align: left; font-weight: 400; padding: 2px 18px 2px 0; vertical-align: top; }
.ftr-hours small { font-size: .82rem; }
.ftr-join { margin-top: 26px; padding-bottom: 30px; }
.ftr-join h2 { font-size: 2.3rem; text-transform: none; margin-bottom: 6px; }
.ftr-join p { font: 400 15px var(--serif); margin: 0; }
.ftr-join a { color: var(--teal); }
.ftr-bar { background: var(--teal); color: #222; font: 400 15px var(--serif); padding: 14px 0; }
.ftr-bar p { margin: 0; } .ftr-bar a { color: #222; }
@media (max-width: 900px) { .ftr-cols { grid-template-columns: 1fr; } .ftr-logo { gap: 16px; } }

/* appointment form (replaces Roya's old forms) */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin: 1.4em 0; font-family: var(--head); }
.form .full { grid-column: 1 / -1; }
.form label, .form legend { display: block; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.form .opt { font-weight: 400; color: #777; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea { width: 100%; font: 400 16px var(--head); padding: 12px 14px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.form textarea { min-height: 100px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 18px; } .choices label { display: flex; gap: 6px; align-items: center; font-weight: 400; color: var(--text); margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; }
.hint { font-size: 14px; color: #777; margin: 6px 0 0; }
.form button[type=submit] { background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 14px 28px; font: 400 15px var(--serif); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.form-msg { padding: 14px 16px; border-radius: 6px; font-family: var(--head); } .form-msg.ok { background: var(--teal-lt); } .form-msg.err { background: #fbe9e5; color: #7a2316; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .slides img { transition: none; } }

/* ---------- header: same size at all times (no resizing while scrolling, so it can't flicker) ---------- */
.hdr { transition: box-shadow .2s; }
body.scrolled .hdr { box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }

/* ---------- Optical Boutique brand slider (homepage and Frames page) ---------- */
.content .brand-box { background: var(--navy) url("/assets/img/Homepage_Assets/brands_bg.jpg") center / cover; padding: 30px 20px 40px; text-align: center; margin: 10px 0 30px; }
.brand-box .kicker { margin-bottom: 6px; } .brand-box .big { margin-bottom: 30px; }
.content .brand-box .big { font-size: 1.6rem; }
.brand-slider { position: relative; max-width: 860px; margin: 0 auto; padding-right: 36px; }
.brand-group { display: none; grid-template-columns: repeat(4, 1fr); align-items: start; }
.brand-group.on { display: grid; }
.bcol { display: grid; }
.bcol:nth-child(odd) { margin-top: 25%; }
.bcol > img, .blogo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.blogo { display: grid; place-items: center; padding: 18%; background: #f3e8cf; }
.blogo img { max-height: 100%; width: auto; object-fit: contain; }
.bcol:nth-child(odd) .blogo { background: var(--teal); border-radius: 0 0 40px 40px; }
.dots.vertical { position: absolute; right: 0; top: 50%; transform: translateY(-50%); flex-direction: column; margin: 0; }
.dots.vertical button, .brands .dots button { border-color: #fff; }
.brands .dots button[aria-current="true"], .brand-box .dots button[aria-current="true"] { background: #fff; }

/* ---------- Services page: photo tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 30px 0; clear: both; }
.tile { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--navy); }
.tile .photo { margin: 0; height: 100%; }
.tile .photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-name { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 60px 16px 22px; text-align: center; color: #fff; font-size: 1.15rem; background: linear-gradient(transparent, rgba(30, 38, 60, .75)); }
.tile-more { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 24px; background: rgba(62, 76, 113, .92); color: #fff; opacity: 0; transition: opacity .25s; }
.tile-more h4 { color: #fff; margin: 0; font-size: 1.3rem; } .tile-more p { margin: 0 0 10px; font-size: 15px; }
.tile-more .btn { background: transparent; border-color: #fff; }
.tile:hover .tile-more, .tile:focus-within .tile-more { opacity: 1; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
@media (hover: none) { .tile-name { display: none; } .tile-more { opacity: 1; background: linear-gradient(transparent 30%, rgba(30, 38, 60, .85)); justify-content: flex-end; } .tile-more p { display: none; } }

/* ---------- Office Tour and Before & After galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 30px; clear: both; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.gallery.ba { grid-template-columns: 1fr; gap: 14px; }
.gallery.ba img { aspect-ratio: auto; }
.ba-head { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin: 0; font: 400 1.05rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--navy); }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 14, 25, .85); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; }

/* ---------- VIP Memberships: tier cards ---------- */
.vip-card { border: 1px solid #e6e6e6; border-radius: 10px; padding: 18px 26px 10px; margin: 0 0 22px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); clear: both; }
.vip-card h3 { margin-top: .4em; font-size: 1.25rem; }
.vip-card ul { font-size: 14px; } .vip-card li p { margin: 0; }
.content > figure.photo.full:first-child img, .content .photo img { border-radius: 10px; }

/* ---------- Meet the Team: cards, full bio in a pop-up ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1080px; margin: 30px auto 0; }
.content p:has(+ .team-grid) { text-align: center; max-width: 1080px; margin-left: auto; margin-right: auto; }
.member { background: #f6f6f6; border-radius: 8px; padding: 28px 24px; text-align: center; scroll-margin-top: 200px; }
.member > img { width: 62%; margin: 0 auto 18px; aspect-ratio: 1; object-fit: cover; object-position: top; }
.member h5 { font-size: 1.3rem; margin: 0 0 6px; color: var(--navy); }
.member .role { font: 400 12px/1.5 var(--serif); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.member > .bio-open { cursor: pointer; }
.bio-dlg { max-width: 820px; width: calc(100% - 32px); max-height: 88vh; border: 0; border-radius: 10px; padding: 36px 40px; text-align: left; color: var(--text); }
.bio-dlg::backdrop { background: rgba(20, 26, 44, .7); }
.bio-head { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.bio-head img { width: 120px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; }
.bio-head h3 { margin: 0 0 4px; font-size: 1.6rem; }
.dlg-close { position: sticky; top: 0; float: right; margin: -20px -24px 0 0; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--navy); cursor: pointer; }
.bio-dlg ul { padding-left: 1.3em; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } .bio-dlg { padding: 28px 20px; } }

/* ---------- Blog list and page numbers ---------- */
.list .list-item { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 22px; padding: 22px 0; border-bottom: 0; }
.list .li-photo img { aspect-ratio: 4 / 3; }
.list h3 { font-size: 1.1rem; margin: 0 0 8px; }
.list h3 a { color: var(--navy); text-decoration: none; }
.list p { font-size: 14px; }
.pager { display: flex; gap: 6px; margin-top: 20px; }
.pager a, .pager span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--navy); border-radius: 4px; text-decoration: none; font-family: var(--head); }
.pager span { background: var(--navy); color: #fff; }

/* ---------- fine-tuning to match the old site's proportions ---------- */
@media (min-width: 1101px) {
  .brand > a img { width: clamp(170px, 15vw, 250px); } .badge { width: clamp(64px, 6vw, 96px); height: auto; }
  .hdr-btns { gap: clamp(8px, 1vw, 14px); }
  .obtn { font-size: clamp(13px, 1.05vw, 16px); padding: clamp(12px, 1.1vw, 17px) clamp(12px, 1.5vw, 24px); }
}
.team-grid { max-width: none; }
.member > img { width: 70%; }
.member h5 { font-size: 1.45rem; }
.content p:has(+ .tiles), .content h3:has(+ p + .tiles) { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.brands .brand-slider { max-width: 1100px; }
.vip-card ul { font-size: 15px; line-height: 1.7; }
.list h3 { font: 700 1.05rem/1.3 var(--serif); }
.list p { font-size: 15px; }
@media (min-width: 1101px) {
  .nav { flex-wrap: nowrap; justify-content: space-between; }
  .nav > li > a { font-size: clamp(12.5px, 1.07vw, 15px); padding-left: clamp(4px, .5vw, 9px); padding-right: clamp(4px, .5vw, 9px); }
  .nav > li:last-child > a { padding-right: 0; }
}

/* ---------- offices: homepage map and contact page ---------- */
.map { display: grid; grid-template-columns: 1fr 1fr; }
.map-loc { position: relative; height: 460px; }
.map-loc iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-loc + .map-loc { border-left: 4px solid var(--navy); }
.map-card { position: absolute; left: 24px; bottom: 24px; background: #fff; padding: 18px 22px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); max-width: 300px; }
.map-card h3 { margin: 0 0 6px; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .08em; }
.map-card p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.map-card .nbtn { padding: 10px 16px; font-size: 13px; }
@media (max-width: 760px) { .map { grid-template-columns: 1fr; } .map-loc { height: 360px; } .map-loc + .map-loc { border-left: 0; border-top: 4px solid var(--navy); } }
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 30px 0 16px; clear: both; }
.loc { border: 1px solid #e6e6e6; border-radius: 10px; padding: 22px 24px; }
.loc h3 { margin: 0 0 14px; font-size: 1.4rem; }
.loc .ci { color: var(--text); font-size: 15px; } .loc .ci svg { color: var(--navy); border-color: var(--navy); }
.loc-map { height: 220px; margin: 12px 0 14px; border-radius: 8px; overflow: hidden; }
.loc-map iframe { width: 100%; height: 100%; border: 0; }
.loc h4 { margin: 18px 0 8px; }
.hours { border-collapse: collapse; font-size: 15px; width: auto; margin: 0; }
.content .hours th, .content .hours td { border: 0; padding: 2px 18px 2px 0; font-weight: 400; }
.content .social { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .locs { grid-template-columns: 1fr; } }
.ftr .ci strong { font-weight: 500; }

/* ---------- Before & after pairs with captions (CO2 page) ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; margin: 14px 0 8px; clear: both; }
.ba-grid figure { margin: 0; }
.ba-grid img { width: 100%; height: auto; display: block; border-radius: 6px; }
.ba-grid figcaption { font-size: .85rem; line-height: 1.4; margin-top: 6px; }
.ba-grid figcaption b { display: block; color: var(--navy); }
.ba-note { font-size: .8rem; font-style: italic; opacity: .8; }
@media (max-width: 560px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- Two photos side by side at the top of a page (CO2 page) ---------- */
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; clear: both; }
.hero-pair img { width: 100%; height: 300px; object-fit: cover; border-radius: 10px; display: block; }
.hero-pair img:first-child { object-position: 68% 35%; }
@media (max-width: 560px) { .hero-pair img { height: 180px; } }
.hero-pair img:last-child { object-position: 0% 40%; }
