@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #302a3f;
  --text: #4a4a4a;
  --green: #92b420;
  --paper: #f6f9f9;
  --white: #ffffff;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { margin: 0; color: var(--text); background: var(--white); font-family: 'Montserrat', Arial, sans-serif; font-size: 16px; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 960px; }
.section { padding: 140px 0; }
.eyebrow { margin: 0 0 18px; color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--green { color: var(--green); }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.12; }
h1 { color: var(--white); font-size: clamp(42px, 5.2vw, 72px); font-weight: 700; }
h2 { margin-bottom: 28px; font-size: clamp(34px, 4vw, 52px); }
h3 { font-size: 21px; }
p { margin: 0 0 22px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 2px solid var(--green); border-radius: 3px; margin-top: 12px; padding: 10px 27px; color: var(--white); background: var(--green); font-size: 14px; font-weight: 700; letter-spacing: .03em; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { border-color: #7f9e19; background: #7f9e19; transform: translateY(-1px); }
.button--outline { color: var(--green); background: transparent; }
.button--outline:hover { color: var(--white); }

.site-header { position: relative; z-index: 20; width: 100%; }
.site-header--overlay { position: absolute; top: -6px; left: 0; }
.site-header--solid { border-bottom: 0; background: var(--ink); }
.header-inner { display: flex; min-height: 120px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { flex: 0 0 auto; }
.brand img { width: 222px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; transition: .2s linear; }
.site-header--solid .desktop-nav a { color: var(--white); }
.desktop-nav a:hover, .site-header--solid .desktop-nav a:hover { color: var(--white); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; border-radius: 3px; background: var(--green); cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 22px; height: 2px; background: white; }
.mobile-nav nav { position: absolute; top: 51px; right: 0; width: 230px; padding: 8px 0; border-radius: 3px; background: var(--white); box-shadow: 0 15px 35px rgba(48,42,63,.22); }
.mobile-nav nav a { display: block; padding: 10px 20px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.mobile-nav nav a:hover { color: var(--green); background: var(--paper); }

.site-header--overlay .header-inner { display: grid; grid-template-columns: 23.306fr 76.694fr; width: min(calc(100% - 40px), 1140px); min-height: 100px; gap: 0; }
.site-header--overlay .brand { width: 70%; }
.site-header--overlay .brand img { width: 100%; }
.site-header--overlay .desktop-nav { justify-content: flex-end; gap: 0; transform: translateX(37px); }
.site-header--overlay .desktop-nav a { padding: 15px; font-size: 16px; line-height: 1; }
.site-header--solid .header-inner { display: grid; grid-template-columns: 23.306% 76.694%; width: min(calc(100% - 40px), 1240px); min-height: 0; gap: 0; }
.site-header--solid .brand { width: auto; padding: 10px; }
.site-header--solid .brand img { width: 70%; margin-inline: auto; }
.site-header--solid .desktop-nav { justify-content: flex-end; gap: 0; padding: 10px; }
.site-header--solid .desktop-nav a { padding: 15px; font-size: 16px; line-height: 1; }

.hero { position: relative; min-height: 770px; display: flex; align-items: center; background: url('/assets/hero.jpg') 8px -149px / cover no-repeat scroll; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(-90deg, rgba(146,180,32,.85) 30%, rgba(48,42,63,.85) -70%); }
.hero-copy { position: relative; z-index: 1; width: min(calc(100% - 40px), 1240px); transform: translateY(-38px); }
.hero-eyebrow { margin: 0 0 35px; color: rgba(255,255,255,.9); font-size: 24px; font-weight: 800; line-height: 1.2; }
.hero-divider { width: 18%; height: 1px; margin: 0 0 22px; background: rgba(246,249,249,.4); }
.hero-copy h1 { max-width: none; color: var(--white); font-size: 48px; font-weight: 800; line-height: 1.4; white-space: nowrap; }

.about { overflow: hidden; padding-bottom: 200px; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 9%; }
.about-images { position: relative; min-height: 640px; }
.about-primary { width: 74%; height: 610px; object-fit: cover; border-radius: 16px; }
.about-secondary { position: absolute; right: 0; bottom: 18px; width: 58%; border: 10px solid var(--white); border-radius: 25px; box-shadow: 0 18px 45px rgba(48,42,63,.15); }
.about-copy p:not(.eyebrow) { max-width: 650px; }

.callout-wrap { position: relative; z-index: 2; margin-top: -118px; }
.callout { display: flex; min-height: 235px; align-items: center; justify-content: space-between; gap: 35px; border-radius: 25px; padding: 55px 70px; color: var(--white); background: var(--ink); box-shadow: 0 20px 50px rgba(1,87,140,.25); }
.callout h2 { margin: 0; color: var(--white); font-size: clamp(32px, 4vw, 48px); }
.callout a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; color: var(--white); font-size: 22px; font-weight: 700; text-decoration: none; }
.callout a:hover { color: var(--green); }
.callout svg { color: var(--green); }

.services { position: relative; margin-top: -117px; padding-top: 250px; padding-bottom: 150px; background: url('/assets/procedures-bg.webp') center / cover no-repeat; }
.services-shade { position: absolute; inset: 0; background: rgba(246,249,249,.77); }
.services-inner { position: relative; z-index: 1; text-align: center; }
.services-inner > h2 { margin-bottom: 55px; }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.service-card { grid-column: span 2; min-height: 310px; border-radius: 18px; padding: 40px 26px 30px; color: var(--white); background: var(--ink); box-shadow: 0 12px 32px rgba(48,42,63,.12); }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card img { width: 59px; height: 59px; margin: 0 auto 25px; object-fit: contain; opacity: .9; filter: grayscale(1); }
.service-card:nth-child(2) img { width: 41px; height: 41px; filter: brightness(0) invert(1); }
.service-card:nth-child(4) img { width: 39px; height: 39px; filter: brightness(0) invert(1); }
.service-card:nth-child(5) img { width: 45px; height: 45px; filter: brightness(0) invert(1); }
.service-card h3 { margin-bottom: 16px; color: var(--white); }
.service-card p { margin: 0; font-size: 14px; line-height: 1.7; }

.faq { padding-block: 85px; background: var(--white); }
.faq .narrow > .eyebrow, .faq .narrow > h2 { text-align: center; }
.faq .narrow > h2 { margin-bottom: 50px; }
.faq-list { border-top: 1px solid #e6e6e6; }
.faq-list details { border-bottom: 1px solid #e6e6e6; }
.faq-list summary { position: relative; padding: 22px 54px 22px 5px; color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; top: 50%; right: 10px; color: var(--green); font-size: 28px; font-weight: 400; transform: translateY(-52%); }
.faq-list details[open] summary::after { content: '–'; }
.faq-answer { padding: 0 55px 18px 5px; font-size: 15px; line-height: 1.6; }
.faq-answer p { margin-bottom: 16px; }

.smile-cta { background: var(--paper); }
.smile-grid { display: grid; grid-template-columns: 1.35fr .95fr auto; align-items: center; gap: 55px; }
.smile-grid h2 { margin: 0; }
.smile-grid ul { margin: 0; padding: 0; list-style: none; }
.smile-grid li { position: relative; margin: 11px 0; padding-left: 26px; font-weight: 600; }
.smile-grid li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; }
.contact-map { text-align: center; }
.contact iframe { width: 100%; height: 400px; border: 0; box-shadow: 0 15px 40px rgba(48,42,63,.18); filter: brightness(103%) contrast(100%) saturate(50%) hue-rotate(350deg); }
.map-directions { margin-top: 24px; }
.contact-copy > a { display: flex; align-items: flex-start; gap: 18px; margin: 25px 0; color: var(--ink); font-size: 19px; font-weight: 500; text-decoration: none; }
.contact-copy > a:hover { color: var(--green); }
.contact-copy svg { flex: 0 0 auto; margin-top: 4px; color: var(--green); }

.site-footer { color: var(--white); background: var(--ink); }
.footer-main { padding: 30px 0 10px; }
.footer-main .shell { width: min(calc(100% - 60px), 1220px); }
.footer-logo { width: 288px; max-width: 288px; margin: 0 auto; }
.footer-info { display: grid; grid-template-columns: 37.945% 37.743% 23.559%; max-width: 780px; margin: 20px auto 0; }
.footer-details { padding: 10px; }
.footer-details:nth-child(2) { padding-left: 40px; }
.footer-details h2 { margin: 0 0 20px; color: var(--white); font-size: 20px; line-height: 1.3; }
.footer-details p { margin: 0; color: var(--white); font-size: 18px; line-height: 1.4; }
.footer-details ul { margin: 0; padding: 0; list-style: none; }
.footer-details li { margin: 0; line-height: 1.4; }
.footer-details a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 20px; line-height: 1.445; text-decoration: none; }
.footer-details a:hover { color: var(--green); }
.footer-details svg { width: 14px; height: 14px; fill: currentColor; stroke-width: 0; }
.footer-associations { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center; margin-top: 0; padding: 10px 0; }
.footer-associations img { width: auto; height: 92px; object-fit: contain; }
.footer-copyright { display: grid; min-height: 0; place-items: center; padding: 20px; text-align: center; background: var(--green); }
.footer-copyright p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.80625; }

.page-hero { padding: 95px 0; text-align: center; background: var(--ink); }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(42px, 6vw, 66px); }
.finance { min-height: 510px; }
.finance-copy { text-align: center; }
.finance-copy > p { font-size: 19px; line-height: 1.9; }
.finance-copy > p a { color: var(--green); font-weight: 700; }
.finance-actions { display: flex; justify-content: center; gap: 20px; margin-top: 35px; }
.finance-callout { padding: 70px 0; text-align: center; background: var(--paper); }
.finance-callout h2 { margin-bottom: 18px; font-size: clamp(31px, 4vw, 45px); }

.error-page { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: url('/assets/404-background.webp') center / cover no-repeat; }
.error-shade { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.error-copy { position: relative; z-index: 1; color: var(--white); }
.error-code { margin: 0; color: var(--white); font-size: 249px; font-weight: 400; line-height: 180px; }
.error-copy h1 { margin-top: 34px; color: var(--white); font-size: 37px; font-weight: 500; text-transform: uppercase; }
.error-copy .button { margin-top: 70px; border-radius: 0; text-transform: uppercase; letter-spacing: 2.1px; }

@media (max-width: 1100px) {
  .site-header--overlay .header-inner { display: flex; min-height: 100px; }
  .site-header--overlay { top: 0; }
  .site-header--overlay .brand { width: auto; }
  .site-header--overlay .brand img { width: 185px; }
  .site-header--overlay .desktop-nav { transform: none; }
  .site-header--solid .header-inner { display: flex; min-height: 100px; }
  .site-header--solid .brand { padding: 10px; }
  .site-header--solid .brand img { width: 185px; }
  .site-header--solid .desktop-nav { padding: 0; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: 690px; background-position: 0 0; background-attachment: scroll; }
  .hero-copy { width: min(calc(100% - 40px), var(--shell)); padding-inline: 50px; text-align: center; transform: none; }
  .hero-eyebrow { margin-top: 80px; }
  .hero-divider { margin-inline: auto; }
  .hero-copy h1 { font-size: 42px; line-height: 1.3; white-space: normal; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 6%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(4) { grid-column: auto; }
  .service-card:last-child { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
  .smile-grid { grid-template-columns: 1fr 1fr; }
  .smile-grid .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 800px) {
  .header-inner { min-height: 100px; }
  .section { padding: 95px 0; }
  .about { padding-bottom: 190px; }
  .about-grid { grid-template-columns: 1fr; gap: 55px; }
  .about-copy { text-align: center; }
  .about-copy p:not(.eyebrow) { max-width: none; }
  .about-images { width: min(100%, 600px); margin: auto; }
  .callout { flex-direction: column; justify-content: center; padding: 45px 35px; text-align: center; }
  .services { padding-top: 240px; }
  .smile-grid { grid-template-columns: 1fr; text-align: center; }
  .smile-grid .button { grid-column: auto; justify-self: center; }
  .smile-grid ul { width: fit-content; margin-inline: auto; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .contact-copy { width: 100%; max-width: 500px; margin-inline: auto; text-align: center; }
  .contact-copy > a { width: 100%; align-items: center; justify-content: center; } .contact-copy svg { margin-top: 0; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .brand img { width: 180px; }
  .site-header--overlay .brand img { width: 180px; }
  .hero { min-height: 690px; background-position: 0 0; text-align: center; }
  .hero-copy { padding-inline: 0; }
  .hero-eyebrow { font-size: 18px; }
  .hero-copy h1 { font-size: 32px; }
  .section { padding: 78px 0; }
  .about { padding-bottom: 170px; }
  .about-images { min-height: 480px; }
  .about-primary { height: 470px; }
  .about-secondary { right: 0; bottom: 5px; width: 62%; border-width: 7px; }
  .callout { min-height: 260px; padding: 40px 20px; }
  .callout a { font-size: 18px; }
  .services { padding-top: 220px; padding-bottom: 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; width: auto; }
  .faq { padding-block: 65px; }
  .faq-list summary { padding-right: 42px; }
  .faq-answer { padding-right: 4px; }
  .contact iframe { height: 250px; }
  .contact-copy > a { font-size: 16px; }
  .footer-main { padding-top: 34px; }
  .footer-main .shell { width: min(calc(100% - 30px), 1220px); }
  .footer-logo { width: 40%; max-width: 274px; margin-top: 0; }
  .footer-info { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .footer-details, .footer-details:nth-child(2) { padding-left: 0; text-align: center; }
  .footer-associations { margin-top: 28px; }
  .footer-associations img { max-width: 70%; height: auto; max-height: 92px; }
  .finance-actions { flex-direction: column; align-items: center; }
  .finance-actions .button { width: auto; }
  .error-copy { text-align: center; }
  .error-code { font-size: 150px; line-height: 150px; }
  .error-copy h1 { margin-top: 20px; font-size: 22px; }
  .error-copy .button { margin-top: 55px; font-size: 14px; }
}
