Build a modern website for "BrightSmile Dental Clinic": hero
A professional clinic website with services, team, reviews and an appointment form
Build a modern website for "BrightSmile Dental Clinic": hero with a headline and "Book appointment" button, services with prices, meet the dentists, before/after section, patient reviews, opening hours and a contact form. Clean, trustworthy blue and white designBuild this with Ergo →
Live result
Open full screen ↗How Ergo built it
Ergo made a plan first, then worked through it step by step:
- Inspect current markup, styles, and JavaScript
- Identify and fix button and menu failures
- Verify all interactive controls and summarize
Ergo's answer
I’ll inspect the current files and trace the click handlers directly. I’ll simplify the menu and button behavior, remove anything blocking clicks, and check the final code for JavaScript errors.
I’ll inspect the actual workspace files first, then fix the handlers and verify the generated code.
The HTML and JavaScript are loaded correctly. I’m now checking the CSS for hidden overlays, disabled pointer events, and mobile menu layering.
The controls are wired, but the menu still depends on JavaScript. I’m replacing it with a native mobile menu that opens without JavaScript, then simplifying the remaining handlers and cache-busting the updated assets.
The mobile menu now uses a native <details> control, so it opens even if JavaScript fails. I’m adding the dropdown styling and guarding against stale cached assets.
The native menu is in place. I’m fixing its mobile positioning and making sure it stays hidden on desktop, then I’ll run a final structural check.
The new mobile menu opens natively, and the JavaScript now only handles closing it and the booking/contact actions. I’m checking the final file references and control structure before wrapping up.
The main failure was the JavaScript-dependent menu. It now uses a native <details> element, which toggles without JavaScript. I also verified the booking and form handlers and added explicit open/closed CSS states.
Fixed the navigation and button behavior.
Changes made
- Rebuilt the mobile menu using native HTML
<details>, so it opens without relying on JavaScript. - Added explicit open/closed CSS states and mobile positioning.
- Preserved working booking links and dentist/service preselection.
- Kept appointment and contact form handlers with validation and confirmation messages.
- Versioned the CSS and JavaScript references to reduce stale-cache issues.
Important: Hard-refresh the preview with Ctrl+Shift+R (or Cmd+Shift+R on Mac) so the updated files load.
Open index.html directly if the embedded preview still shows the old behavior. The menu and navigation links should work even if JavaScript is unavailable. Form confirmations require JavaScript; submissions are frontend-only and are not sent to a backend.
Verification was limited to inspecting the markup, CSS, and JavaScript because no interactive browser tool is available.
Files
index.html359 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="BrightSmile Dental Clinic offers gentle, modern dental care for the whole family. Explore treatments, meet our dentists, and book your appointment online.">
<meta name="theme-color" content="#176BCE">
<title>BrightSmile Dental Clinic | Gentle care. Beautiful smiles.</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css?v=2">
<script src="./script.js?v=2" defer></script>
</head>
<body>
<a class="skip-link" href="#main">Skip to main content</a>
<div class="topbar">
<div class="container topbar__inner">
<p><span class="status-dot" aria-hidden="true"></span> Accepting new patients</p>
<div class="topbar__details">
<a href="tel:+15550132847">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7.2 3.5 10 8 7.8 9.8a15.4 15.4 0 0 0 6.4 6.4L16 14l4.5 2.8-.7 3.4c-.2.8-.9 1.3-1.7 1.3C9.2 21 3 14.8 2.5 5.9c0-.8.5-1.5 1.3-1.7l3.4-.7Z"/></svg>
(555) 013-2847
</a>
<span class="topbar__divider" aria-hidden="true"></span>
<span>Mon–Fri, 8:00–18:00</span>
</div>
</div>
</div>
<header class="site-header" id="siteHeader">
<div class="container header__inner">
<a class="brand" href="#" aria-label="BrightSmile Dental Clinic home">
<span class="brand__mark" aria-hidden="true">
<svg viewBox="0 0 40 40"><path d="M20 5.5c-3.8-2.7-8.8-1.8-11.2 1.5-2.3 3.1-1.8 7.4-.6 11.1 1.1 3.5 2 10.3 4.4 14.1 1.5 2.4 3.2 2.3 4.5-.2 1.2-2.3 1.8-6.6 3.1-6.6s1.9 4.3 3.1 6.6c1.3 2.5 3 2.6 4.5.2 2.4-3.8 3.3-10.6 4.4-14.1 1.2-3.7 1.7-8-.6-11.1-2.4-3.3-7.4-4.2-11.2-1.5Z" fill="currentColor"/><path d="m13.5 12.2 2.1 2.1 4-4.2" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>
</span>
<span>Bright<span>Smile</span><small>DENTAL CLINIC</small></span>
</a>
<details class="mobile-menu" id="mobileMenu">
<summary class="menu-toggle" id="menuToggle" aria-label="Open navigation">
<span></span><span></span><span></span>
</summary>
<nav class="mobile-menu__panel" aria-label="Mobile navigation">
<a href="#services">Services</a>
<a href="#dentists">Our dentists</a>
<a href="#results">Smile results</a>
<a href="#reviews">Reviews</a>
<a href="#contact">Contact</a>
<a class="button button--primary mobile-menu__cta" href="#book">Book appointment
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11m-4-4 4 4-4 4"/></svg>
</a>
</nav>
</details>
<nav class="site-nav" id="siteNav" aria-label="Main navigation">
<a href="#services">Services</a>
<a href="#dentists">Our dentists</a>
<a href="#results">Smile results</a>
<a href="#reviews">Reviews</a>
<a href="#contact">Contact</a>
</nav>
<a class="button button--small header__cta" href="#book">Book appointment
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11m-4-4 4 4-4 4"/></svg>
</a>
</div>
</header>
<main id="main">
<section class="hero" aria-labelledby="hero-title">
<div class="hero__orb hero__orb--one" aria-hidden="true"></div>
<div class="hero__orb hero__orb--two" aria-hidden="true"></div>
<div class="container hero__grid">
<div class="hero__content">
<div class="eyebrow"><span aria-hidden="true">✦</span> Modern dentistry. Human touch.</div>
<h1 id="hero-title">Feel good about your smile <em>again.</em></h1>
<p class="hero__lead">Thoughtful, gentle dental care for every stage of life. From routine check-ups to complete smile makeovers, we make every visit feel refreshingly easy.</p>
<div class="hero__actions">
<a class="button button--primary" href="#book">Book appointment
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11m-4-4 4 4-4 4"/></svg>
</a>
<a class="text-link" href="#services">Explore treatments <span aria-hidden="true">↓</span></a>
</div>
<div class="hero__proof" aria-label="Patient rating and experience">
<div class="avatar-stack" aria-hidden="true">
<img src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=80&q=80" alt="">
<img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=80&q=80" alt="">
<img src="https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=80&q=80" alt="">
</div>
<div>
<div class="stars" aria-label="5 out of 5 stars">★★★★★ <strong>4.9</strong></div>
<p>Loved by 800+ local patients</p>
</div>
</div>
</div>
<div class="hero__visual">
<div class="hero__image-wrap">
<img src="https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1100&q=88" alt="Bright, welcoming treatment room at BrightSmile Dental Clinic" fetchpriority="high">
<div class="hero__image-tint" aria-hidden="true"></div>
</div>
<div class="floating-card floating-card--appointment">
<span class="floating-card__icon" aria-hidden="true">
<svg viewBox="0 0 24 24"><rect x="3.5" y="5.5" width="17" height="15" rx="3"/><path d="M8 3.5v4m8-4v4M3.5 10h17m-12 4h2m3 0h2m-7 3h2"/></svg>
</span>
<span><small>Next available</small><strong>Today, 3:30 PM</strong></span>
</div>
<div class="floating-card floating-card--rating">
<span class="floating-card__icon floating-card__icon--mint" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m12 3 2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1-4.4-4.3 6.1-.9L12 3Z"/></svg>
</span>
<span><strong>4.9 out of 5</strong><small>Google patient rating</small></span>
</div>
<div class="hero__experience"><strong>15+</strong><span>years of<br>happy smiles</span></div>
</div>
</div>
</section>
<section class="benefits" aria-label="Why patients choose us">
<div class="container benefits__grid">
<article class="benefit">
<span class="benefit__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"/><path d="M12 7v5l3 2m-3-12v2m0 16v2M3 12h2m14 0h2"/></svg></span>
<div><h2>Same-week appointments</h2><p>Care when you need it, without the wait.</p></div>
</article>
<article class="benefit">
<span class="benefit__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M20.8 8.7c0 5.2-8.8 11.3-8.8 11.3S3.2 13.9 3.2 8.7A4.7 4.7 0 0 1 12 6.4a4.7 4.7 0 0 1 8.8 2.3Z"/><path d="M8 12h2l1-2 2 4 1-2h2"/></svg></span>
<div><h2>Genuinely gentle care</h2><p>Comfort-first treatment, at your pace.</p></div>
</article>
<article class="benefit">
<span class="benefit__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M4 7.5h16v11H4z"/><path d="M8 7.5v-3h8v3M4 12h16M9 12v2h6v-2"/></svg></span>
<div><h2>Clear, honest pricing</h2><p>No surprises. Just straightforward care.</p></div>
</article>
</div>
</section>
<section class="section services" id="services" aria-labelledby="services-title">
<div class="container">
<div class="section-heading section-heading--split">
<div>
<span class="section-kicker">Our services</span>
<h2 id="services-title">Everything your smile needs,<br>all in one place.</h2>
</div>
<p>Preventive, cosmetic and restorative dentistry—personalised around you, using the latest technology.</p>
</div>
<div class="services__grid">
<article class="service-card">
<div class="service-card__top"><span class="service-card__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 4.2c-2.5-1.8-5.9-1.2-7.4 1.7-1.4 2.7-1 6.1-.1 8.5.8 2.3 1.5 6.4 3.3 8.1 1 .9 2 .7 2.7-1 .6-1.5 1-3.8 1.5-3.8s.9 2.3 1.5 3.8c.7 1.7 1.7 1.9 2.7 1 1.8-1.7 2.5-5.8 3.3-8.1.9-2.4 1.3-5.8-.1-8.5-1.5-2.9-4.9-3.5-7.4-1.7Z"/></svg></span><span class="service-card__tag">Most popular</span></div>
<h3>New patient exam</h3>
<p>A comprehensive check-up, digital X-rays and a personal care plan.</p>
<div class="service-card__footer"><span class="price"><sup>$</sup>89</span><a href="#book" data-service="New patient exam" aria-label="Book a new patient exam">Book now <span aria-hidden="true">↗</span></a></div>
</article>
<article class="service-card">
<div class="service-card__top"><span class="service-card__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="m14.5 4.5 5 5M5 19l3.5-.8L19 7.7a2.1 2.1 0 0 0-3-3L5.8 15.2 5 19Z"/><path d="m13 6 5 5M4 19h5"/></svg></span></div>
<h3>Hygiene & polish</h3>
<p>A professional clean to remove plaque, freshen breath and protect gums.</p>
<div class="service-card__footer"><span class="price"><sup>$</sup>129</span><a href="#book" data-service="Hygiene & polish" aria-label="Book hygiene and polish">Book now <span aria-hidden="true">↗</span></a></div>
</article>
<article class="service-card">
<div class="service-card__top"><span class="service-card__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="m12 3 1.6 5.4L19 10l-5.4 1.6L12 17l-1.6-5.4L5 10l5.4-1.6L12 3Z"/><path d="m19 16 .7 2.3L22 19l-2.3.7L19 22l-.7-2.3L16 19l2.3-.7L19 16ZM5 2l.6 1.9L7.5 4.5l-1.9.6L5 7l-.6-1.9L2.5 4.5l1.9-.6L5 2Z"/></svg></span></div>
<h3>Teeth whitening</h3>
<p>Safe, effective whitening for a naturally brighter smile in one visit.</p>
<div class="service-card__footer"><span class="price"><small>from</small><sup>$</sup>299</span><a href="#book" data-service="Teeth whitening" aria-label="Book teeth whitening">Book now <span aria-hidden="true">↗</span></a></div>
</article>
<article class="service-card">
<div class="service-card__top"><span class="service-card__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M5 5.5 12 3l7 2.5v6.2c0 4.5-2.8 7.6-7 9.3-4.2-1.7-7-4.8-7-9.3V5.5Z"/><path d="m8.5 12 2.2 2.2 4.8-5"/></svg></span></div>
<h3>Composite bonding</h3>
<p>Repair chips and gaps with natural-looking, tooth-coloured resin.</p>
<div class="service-card__footer"><span class="price"><small>from</small><sup>$</sup>249</span><a href="#book" data-service="Composite bonding" aria-label="Book composite bonding">Book now <span aria-hidden="true">↗</span></a></div>
</article>
<article class="service-card">
<div class="service-card__top"><span class="service-card__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M4.5 14.5c2.5 3.5 12.5 3.5 15 0M4.5 9.5c2.5-3.5 12.5-3.5 15 0"/><path d="M7 10v4m3-6v8m4-8v8m3-6v4"/></svg></span></div>
<h3>Clear aligners</h3>
<p>Straighten teeth discreetly with a custom clear-aligner treatment plan.</p>
<div class="service-card__footer"><span class="price price--free">Free <small>consult</small></span><a href="#book" data-service="Clear aligners consultation" aria-label="Book a clear aligners consultation">Book now <span aria-hidden="true">↗</span></a></div>
</article>
<article class="service-card">
<div class="service-card__top"><span class="service-card__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Z"/><path d="M12 7v5l3 2M5 3 3 5m16-2 2 2"/></svg></span></div>
<h3>Emergency dentistry</h3>
<p>Prompt relief for toothache, swelling, broken teeth and lost fillings.</p>
<div class="service-card__footer"><span class="price"><sup>$</sup>119</span><a href="#book" data-service="Emergency dentistry" aria-label="Book emergency dentistry">Book now <span aria-hidden="true">↗</span></a></div>
</article>
</div>
<p class="pricing-note"><svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="7.5"/><path d="M10 9v5m0-8v.2"/></svg> Prices are starting estimates. Your dentist will confirm all costs before treatment begins.</p>
</div>
</section>
<section class="section dentists" id="dentists" aria-labelledby="dentists-title">
<div class="container">
<div class="section-heading section-heading--center">
<span class="section-kicker">Meet your care team</span>
<h2 id="dentists-title">Great dentists. Even better listeners.</h2>
<p>Experienced, friendly and always happy to answer one more question. You’ll see the same familiar faces at every visit.</p>
</div>
<div class="dentists__grid">
<article class="dentist-card">
<div class="dentist-card__image"><img src="https://images.unsplash.com/photo-1612349317150-e413f6a5b16d?auto=format&fit=crop&w=700&q=85" alt="Dr. Matthew Bennett in his clinic" loading="lazy"><span>General & family dentistry</span></div>
<div class="dentist-card__body"><div><h3>Dr. Matthew Bennett</h3><p class="credentials">DDS, Clinical Director</p></div><p>Matthew believes a calm conversation is the best place to start. He loves helping nervous patients feel at home.</p><div class="dentist-card__meta"><span>15 years’ experience</span><a href="#book" data-dentist="Dr. Matthew Bennett">Book with Matthew <span aria-hidden="true">→</span></a></div></div>
</article>
<article class="dentist-card">
<div class="dentist-card__image"><img src="https://images.unsplash.com/photo-1622253692010-333f2da6031d?auto=format&fit=crop&w=700&q=85" alt="Dr. Daniel Chen in a white medical coat" loading="lazy"><span>Cosmetic dentistry</span></div>
<div class="dentist-card__body"><div><h3>Dr. Daniel Chen</h3><p class="credentials">DMD, Cosmetic Dentist</p></div><p>Daniel combines an artist’s eye with a conservative approach, creating natural results that still look like you.</p><div class="dentist-card__meta"><span>11 years’ experience</span><a href="#book" data-dentist="Dr. Daniel Chen">Book with Daniel <span aria-hidden="true">→</span></a></div></div>
</article>
<article class="dentist-card">
<div class="dentist-card__image"><img src="https://images.unsplash.com/photo-1537368910025-700350fe46c7?auto=format&fit=crop&w=700&q=85" alt="Dr. Sebastian Ramirez in his clinic" loading="lazy"><span>Aligners & restorative care</span></div>
<div class="dentist-card__body"><div><h3>Dr. Sebastian Ramirez</h3><p class="credentials">DDS, Restorative Dentist</p></div><p>Sebastian is known for his gentle touch and clear explanations. He’s passionate about minimally invasive dentistry.</p><div class="dentist-card__meta"><span>9 years’ experience</span><a href="#book" data-dentist="Dr. Sebastian Ramirez">Book with Sebastian <span aria-hidden="true">→</span></a></div></div>
</article>
</div>
</div>
</section>
<section class="section results" id="results" aria-labelledby="results-title">
<div class="container results__grid">
<div class="results__content">
<span class="section-kicker">Real possibilities</span>
<h2 id="results-title">Small changes.<br>A whole new smile.</h2>
<p>See how composite bonding can transform the shape, colour and alignment of your smile—without unnecessary drilling.</p>
<ul class="check-list">
<li><span aria-hidden="true">✓</span><div><strong>Natural-looking results</strong><p>Designed to suit your face, not a one-size-fits-all template.</p></div></li>
<li><span aria-hidden="true">✓</span><div><strong>Usually completed in one visit</strong><p>Walk in with chips or gaps and leave with a confident smile.</p></div></li>
<li><span aria-hidden="true">✓</span><div><strong>A plan before we begin</strong><p>Preview your options and get a clear quote before treatment.</p></div></li>
</ul>
<a class="button button--primary" href="#book">Explore your options <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11m-4-4 4 4-4 4"/></svg></a>
</div>
<div class="results__visual">
<div class="comparison" id="smileComparison" style="--position: 50%;">
<img class="comparison__image comparison__image--after" src="./assets/smile-after.svg" alt="Illustration of a straight, bright smile after composite bonding">
<img class="comparison__image comparison__image--before" src="./assets/smile-before.svg" alt="Illustration of a smile with uneven, discoloured teeth before treatment">
<span class="comparison__label comparison__label--before">Before</span>
<span class="comparison__label comparison__label--after">After</span>
<div class="comparison__handle" aria-hidden="true"><span><svg viewBox="0 0 24 24"><path d="m10 7-5 5 5 5m4-10 5 5-5 5"/></svg></span></div>
<input class="comparison__range" id="comparisonRange" type="range" min="0" max="100" value="50" aria-label="Drag to compare smile before and after treatment">
</div>
<p class="comparison__caption"><span aria-hidden="true">↔</span> Drag the slider to compare <small>Illustrative smile simulation</small></p>
</div>
</div>
</section>
<section class="section reviews" id="reviews" aria-labelledby="reviews-title">
<div class="container">
<div class="reviews__header">
<div class="section-heading">
<span class="section-kicker">Patient stories</span>
<h2 id="reviews-title">Don’t just take our word for it.</h2>
</div>
<div class="reviews__summary"><div class="reviews__score">4.9</div><div><div class="stars" aria-label="4.9 out of 5 stars">★★★★★</div><p>Based on 800+ Google reviews</p></div></div>
</div>
<div class="reviews__grid">
<figure class="review-card">
<div class="review-card__quote" aria-hidden="true">“</div>
<div class="stars" aria-label="5 out of 5 stars">★★★★★</div>
<blockquote>“I used to put off every dental visit. Matthew and the team made me feel completely at ease—no judgement, no rushing, just genuinely kind care.”</blockquote>
<figcaption><span class="review-card__avatar review-card__avatar--blue">JL</span><span><strong>Jessica L.</strong><small>Patient for 3 years</small></span><svg class="google-icon" viewBox="0 0 24 24" aria-label="Google review"><path fill="#4285F4" d="M21.6 12.2c0-.7-.1-1.4-.2-2H12v3.8h5.4a4.6 4.6 0 0 1-2 3v2.5h3.2c1.9-1.7 3-4.3 3-7.3Z"/><path fill="#34A853" d="M12 22c2.7 0 5-.9 6.6-2.4l-3.2-2.5c-.9.6-2 1-3.4 1a5.9 5.9 0 0 1-5.6-4.1H3.1v2.6A10 10 0 0 0 12 22Z"/><path fill="#FBBC05" d="M6.4 14a6 6 0 0 1 0-3.9V7.5H3.1a10 10 0 0 0 0 9l3.3-2.5Z"/><path fill="#EA4335" d="M12 6c1.5 0 2.8.5 3.8 1.5L18.7 4.6A9.8 9.8 0 0 0 3.1 7.5l3.3 2.6A5.9 5.9 0 0 1 12 6Z"/></svg></figcaption>
</figure>
<figure class="review-card review-card--featured">
<div class="review-card__quote" aria-hidden="true">“</div>
<div class="stars" aria-label="5 out of 5 stars">★★★★★</div>
<blockquote>“The whole experience felt more like a spa than a dental clinic. My whitening results are amazing, and the pricing was exactly as promised.”</blockquote>
<figcaption><span class="review-card__avatar review-card__avatar--mint">MK</span><span><strong>Marcus K.</strong><small>Whitening patient</small></span><svg class="google-icon" viewBox="0 0 24 24" aria-label="Google review"><path fill="#4285F4" d="M21.6 12.2c0-.7-.1-1.4-.2-2H12v3.8h5.4a4.6 4.6 0 0 1-2 3v2.5h3.2c1.9-1.7 3-4.3 3-7.3Z"/><path fill="#34A853" d="M12 22c2.7 0 5-.9 6.6-2.4l-3.2-2.5c-.9.6-2 1-3.4 1a5.9 5.9 0 0 1-5.6-4.1H3.1v2.6A10 10 0 0 0 12 22Z"/><path fill="#FBBC05" d="M6.4 14a6 6 0 0 1 0-3.9V7.5H3.1a10 10 0 0 0 0 9l3.3-2.5Z"/><path fill="#EA4335" d="M12 6c1.5 0 2.8.5 3.8 1.5L18.7 4.6A9.8 9.8 0 0 0 3.1 7.5l3.3 2.6A5.9 5.9 0 0 1 12 6Z"/></svg></figcaption>
</figure>
<figure class="review-card">
<div class="review-card__quote" aria-hidden="true">“</div>
<div class="stars" aria-label="5 out of 5 stars">★★★★★</div>
<blockquote>“Daniel explained every option without pushing me towards the most expensive one. My bonding looks so natural—I can’t stop smiling.”</blockquote>
<figcaption><span class="review-card__avatar review-card__avatar--peach">AR</span><span><strong>Amelia R.</strong><small>Bonding patient</small></span><svg class="google-icon" viewBox="0 0 24 24" aria-label="Google review"><path fill="#4285F4" d="M21.6 12.2c0-.7-.1-1.4-.2-2H12v3.8h5.4a4.6 4.6 0 0 1-2 3v2.5h3.2c1.9-1.7 3-4.3 3-7.3Z"/><path fill="#34A853" d="M12 22c2.7 0 5-.9 6.6-2.4l-3.2-2.5c-.9.6-2 1-3.4 1a5.9 5.9 0 0 1-5.6-4.1H3.1v2.6A10 10 0 0 0 12 22Z"/><path fill="#FBBC05" d="M6.4 14a6 6 0 0 1 0-3.9V7.5H3.1a10 10 0 0 0 0 9l3.3-2.5Z"/><path fill="#EA4335" d="M12 6c1.5 0 2.8.5 3.8 1.5L18.7 4.6A9.8 9.8 0 0 0 3.1 7.5l3.3 2.6A5.9 5.9 0 0 1 12 6Z"/></svg></figcaption>
</figure>
</div>
</div>
</section>
<section class="section booking-section" id="book" aria-labelledby="booking-title">
<div class="container booking-card">
<div class="booking-card__intro">
<span class="section-kicker section-kicker--light">Your smile starts here</span>
<h2 id="booking-title">Ready when you are.</h2>
<p>Book online in less than a minute. We’ll call to confirm your preferred time and answer any questions.</p>
<div class="booking-card__contact"><span aria-hidden="true">☏</span><div><small>Prefer to talk?</small><a href="tel:+15550132847">(555) 013-2847</a></div></div>
</div>
<form class="booking-form" id="bookingForm">
<div class="form-row">
<label>Full name<input type="text" name="name" placeholder="Your name" autocomplete="name" required></label>
<label>Phone number<input type="tel" name="phone" placeholder="(555) 000-0000" autocomplete="tel" required></label>
</div>
<div class="form-row">
<label>Treatment<select name="service" id="serviceSelect" required><option value="" selected disabled>Select a service</option><option>New patient exam</option><option>Hygiene & polish</option><option>Teeth whitening</option><option>Composite bonding</option><option>Clear aligners consultation</option><option>Emergency dentistry</option><option>Other / not sure yet</option></select></label>
<label>Preferred dentist<select name="dentist" id="dentistSelect"><option value="">No preference</option><option>Dr. Matthew Bennett</option><option>Dr. Daniel Chen</option><option>Dr. Sebastian Ramirez</option></select></label>
</div>
<label>Preferred date<input type="date" name="date" id="appointmentDate" required></label>
<button class="button button--white" type="submit">Request appointment <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h11m-4-4 4 4-4 4"/></svg></button>
<p class="form-privacy">No payment needed. We’ll confirm within one business day.</p>
<p class="form-message" id="bookingMessage" role="status" aria-live="polite"></p>
</form>
</div>
</section>
<section class="section contact" id="contact" aria-labelledby="contact-title">
<div class="container contact__grid">
<div class="contact__info">
<span class="section-kicker">Visit us</span>
<h2 id="contact-title">Come say hello.</h2>
<p>Find us in the heart of Maplewood, with easy parking and step-free access.</p>
<address>
<a href="https://maps.google.com/?q=128+Maple+Avenue+Maplewood" target="_blank" rel="noopener noreferrer"><span class="contact__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M20 10c0 5-8 11-8 11S4 15 4 10a8 8 0 1 1 16 0Z"/><circle cx="12" cy="10" r="2.5"/></svg></span><span><small>Our clinic</small>128 Maple Avenue, Maplewood, CA 90210</span><span class="contact-arrow" aria-hidden="true">↗</span></a>
<a href="mailto:hello@brightsmile.example"><span class="contact__icon" aria-hidden="true"><svg viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2.5"/><path d="m4 7 8 6 8-6"/></svg></span><span><small>Email us</small>hello@brightsmile.example</span></a>
</address>
<div class="hours">
<h3><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg> Opening hours <span class="open-badge" id="openBadge">Open today</span></h3>
<dl>
<div><dt>Monday – Thursday</dt><dd>8:00 AM – 6:00 PM</dd></div>
<div><dt>Friday</dt><dd>8:00 AM – 4:00 PM</dd></div>
<div><dt>Saturday</dt><dd>9:00 AM – 2:00 PM</dd></div>
<div><dt>Sunday</dt><dd>Closed</dd></div>
</dl>
</div>
</div>
<div class="contact-form-wrap">
<div class="contact-form-wrap__heading"><span class="contact-form-wrap__icon" aria-hidden="true">✉</span><div><h3>Send us a message</h3><p>Questions? We usually reply within a few hours.</p></div></div>
<form id="contactForm" class="contact-form">
<div class="form-row"><label>First name<input type="text" name="firstName" placeholder="Jane" autocomplete="given-name" required></label><label>Last name<input type="text" name="lastName" placeholder="Smith" autocomplete="family-name" required></label></div>
<label>Email address<input type="email" name="email" placeholder="jane@example.com" autocomplete="email" required></label>
<label>How can we help?<textarea name="message" rows="5" placeholder="Tell us a little about what you need..." required></textarea></label>
<label class="checkbox-label"><input type="checkbox" required><span>I’m happy for BrightSmile to contact me about my enquiry.</span></label>
<button class="button button--primary" type="submit">Send message <svg viewBox="0 0 20 20" aria-hidden="true"><path d="m3 10 14-7-4 14-3-5-7-2Z"/><path d="m10 12 7-9"/></svg></button>
<p class="form-message" id="contactMessage" role="status" aria-live="polite"></p>
</form>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container footer__grid">
<div class="footer__brand"><a class="brand brand--footer" href="#" aria-label="BrightSmile home"><span class="brand__mark" aria-hidden="true"><svg viewBox="0 0 40 40"><path d="M20 5.5c-3.8-2.7-8.8-1.8-11.2 1.5-2.3 3.1-1.8 7.4-.6 11.1 1.1 3.5 2 10.3 4.4 14.1 1.5 2.4 3.2 2.3 4.5-.2 1.2-2.3 1.8-6.6 3.1-6.6s1.9 4.3 3.1 6.6c1.3 2.5 3 2.6 4.5.2 2.4-3.8 3.3-10.6 4.4-14.1 1.2-3.7 1.7-8-.6-11.1-2.4-3.3-7.4-4.2-11.2-1.5Z" fill="currentColor"/><path d="m13.5 12.2 2.1 2.1 4-4.2" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span>Bright<span>Smile</span><small>DENTAL CLINIC</small></span></a><p>Gentle, modern dentistry for brighter smiles and healthier lives.</p><div class="social-links"><a href="#" aria-label="Instagram">ig</a><a href="#" aria-label="Facebook">f</a></div></div>
<div><h2>Explore</h2><a href="#services">Services & pricing</a><a href="#dentists">Meet the dentists</a><a href="#results">Smile results</a><a href="#reviews">Patient reviews</a></div>
<div><h2>Treatments</h2><a href="#services">General dentistry</a><a href="#services">Teeth whitening</a><a href="#services">Composite bonding</a><a href="#services">Clear aligners</a></div>
<div><h2>Get in touch</h2><a href="tel:+15550132847">(555) 013-2847</a><a href="mailto:hello@brightsmile.example">hello@brightsmile.example</a><a href="#book">Request an appointment</a></div>
</div>
<div class="container footer__bottom"><p>© <span id="currentYear"></span> BrightSmile Dental Clinic. All rights reserved.</p><div><a href="#">Privacy policy</a><a href="#">Accessibility</a></div></div>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"><span aria-hidden="true">✓</span><div><strong>Thank you!</strong><p id="toastText">Your request has been received.</p></div></div>
</body>
</html>style.css2575 lines
:root {
--blue: #176bce;
--blue-dark: #0f55a7;
--blue-deep: #0b396d;
--navy: #092b4c;
--ink: #15324c;
--muted: #61758a;
--line: #dfe9f3;
--pale: #f3f8fd;
--sky: #e7f2ff;
--mint: #e3f7f1;
--white: #ffffff;
--gold: #f7b500;
--shadow-sm: 0 8px 30px rgba(15, 65, 108, 0.07);
--shadow-lg: 0 24px 70px rgba(14, 63, 105, 0.14);
--radius: 20px;
--font-body: "DM Sans", Arial, sans-serif;
--font-heading: "Manrope", Arial, sans-serif;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
scroll-padding-top: 96px;
}
body {
margin: 0;
color: var(--ink);
background: var(--white);
font-family: var(--font-body);
font-size: 16px;
line-height: 1.65;
-webkit-font-smoothing: antialiased;
}
body.menu-open {
overflow: hidden;
}
img,
svg {
display: block;
}
img {
max-width: 100%;
}
button,
input,
select,
textarea {
font: inherit;
}
button,
select {
cursor: pointer;
}
a {
color: inherit;
text-decoration: none;
}
h1,
h2,
h3,
p {
margin-top: 0;
}
h1,
h2,
h3 {
color: var(--navy);
font-family: var(--font-heading);
line-height: 1.17;
}
h2 {
margin-bottom: 20px;
font-size: clamp(2rem, 3.5vw, 3rem);
font-weight: 800;
letter-spacing: -0.045em;
}
h3 {
letter-spacing: -0.025em;
}
button,
a,
input,
select,
textarea {
-webkit-tap-highlight-color: transparent;
}
.button,
.menu-toggle,
.site-nav a,
.text-link,
.service-card__footer a,
.dentist-card__meta a {
touch-action: manipulation;
}
.button {
pointer-events: auto;
}
:focus-visible {
outline: 3px solid #72b7ff;
outline-offset: 4px;
}
.skip-link {
position: fixed;
top: 12px;
left: 12px;
z-index: 1000;
padding: 10px 18px;
border-radius: 8px;
color: var(--white);
background: var(--navy);
transform: translateY(-150%);
}
.skip-link:focus {
transform: translateY(0);
}
.container {
width: min(1180px, calc(100% - 48px));
margin-inline: auto;
}
.section {
padding: 104px 0;
}
.topbar {
position: relative;
z-index: 30;
color: #dbeaff;
background: var(--navy);
font-size: 13px;
}
.topbar__inner {
display: flex;
min-height: 38px;
align-items: center;
justify-content: space-between;
}
.topbar p {
display: flex;
margin: 0;
align-items: center;
gap: 8px;
}
.status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: #63dbb2;
box-shadow: 0 0 0 4px rgba(99, 219, 178, 0.12);
}
.topbar__details,
.topbar__details a {
display: flex;
align-items: center;
}
.topbar__details {
gap: 18px;
}
.topbar__details a {
gap: 7px;
font-weight: 600;
}
.topbar__details svg {
width: 14px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.7;
}
.topbar__divider {
width: 1px;
height: 13px;
background: rgba(255, 255, 255, 0.25);
}
.site-header {
position: sticky;
top: 0;
z-index: 50;
border-bottom: 1px solid transparent;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(14px);
transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
border-color: var(--line);
box-shadow: 0 6px 24px rgba(20, 55, 88, 0.07);
}
.header__inner {
display: flex;
min-height: 82px;
align-items: center;
gap: 34px;
}
.brand {
display: inline-flex;
flex-shrink: 0;
align-items: center;
gap: 10px;
color: var(--navy);
font-family: var(--font-heading);
font-size: 23px;
font-weight: 800;
letter-spacing: -0.055em;
line-height: 1;
}
.brand > span:last-child > span {
color: var(--blue);
}
.brand small {
display: block;
margin-top: 5px;
color: #7890a5;
font-family: var(--font-body);
font-size: 8px;
font-weight: 700;
letter-spacing: 0.2em;
}
.brand__mark {
display: grid;
width: 40px;
height: 40px;
place-items: center;
color: var(--blue);
}
.brand__mark svg {
width: 100%;
height: 100%;
}
.site-nav {
display: flex;
margin-left: auto;
align-items: center;
gap: 29px;
}
.site-nav a {
position: relative;
color: #405a72;
font-size: 14px;
font-weight: 600;
transition: color 0.2s ease;
}
.site-nav a::after {
position: absolute;
right: 0;
bottom: -8px;
left: 0;
height: 2px;
border-radius: 2px;
background: var(--blue);
content: "";
transform: scaleX(0);
transition: transform 0.2s ease;
}
.site-nav a:hover {
color: var(--blue);
}
.site-nav a:hover::after {
transform: scaleX(1);
}
.button {
display: inline-flex;
min-height: 52px;
padding: 13px 23px;
border: 0;
border-radius: 10px;
align-items: center;
justify-content: center;
gap: 12px;
font-size: 15px;
font-weight: 700;
line-height: 1.2;
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button svg {
width: 19px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.8;
transition: transform 0.2s ease;
}
.button:hover {
transform: translateY(-2px);
}
.button:hover svg {
transform: translateX(3px);
}
.button--primary {
color: var(--white);
background: var(--blue);
box-shadow: 0 10px 24px rgba(23, 107, 206, 0.24);
}
.button--primary:hover {
background: var(--blue-dark);
box-shadow: 0 14px 30px rgba(23, 107, 206, 0.3);
}
.button--small {
min-height: 44px;
padding: 11px 18px;
color: var(--white);
background: var(--blue);
font-size: 14px;
}
.header__cta {
flex-shrink: 0;
}
.mobile-menu {
display: none;
}
.menu-toggle {
position: relative;
z-index: 61;
display: none;
width: 42px;
height: 42px;
padding: 10px;
border: 1px solid var(--line);
border-radius: 9px;
background: var(--white);
touch-action: manipulation;
}
.menu-toggle span {
display: block;
width: 100%;
height: 2px;
margin: 4px 0;
border-radius: 2px;
background: var(--navy);
transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
transform: translateY(-6px) rotate(-45deg);
}
.hero {
position: relative;
overflow: hidden;
padding: 80px 0 112px;
background: linear-gradient(125deg, #f7fbff 0%, #edf6ff 58%, #e8f4ff 100%);
}
.hero__orb {
position: absolute;
border-radius: 50%;
pointer-events: none;
}
.hero__orb--one {
top: -200px;
left: -180px;
width: 500px;
height: 500px;
background: rgba(255, 255, 255, 0.75);
}
.hero__orb--two {
right: -150px;
bottom: -250px;
width: 560px;
height: 560px;
border: 1px solid rgba(23, 107, 206, 0.1);
background: rgba(171, 214, 255, 0.15);
}
.hero__grid {
position: relative;
display: grid;
align-items: center;
grid-template-columns: 1.03fr 0.97fr;
gap: 80px;
}
.eyebrow {
display: inline-flex;
margin-bottom: 24px;
padding: 7px 13px;
border: 1px solid #d6e8fb;
border-radius: 50px;
align-items: center;
gap: 8px;
color: var(--blue-dark);
background: rgba(255, 255, 255, 0.75);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.055em;
text-transform: uppercase;
}
.eyebrow span {
color: var(--blue);
font-size: 14px;
}
.hero h1 {
max-width: 650px;
margin-bottom: 25px;
font-size: clamp(3.25rem, 5.2vw, 5rem);
font-weight: 800;
letter-spacing: -0.065em;
}
.hero h1 em {
position: relative;
color: var(--blue);
font-style: normal;
white-space: nowrap;
}
.hero h1 em::after {
position: absolute;
right: 2px;
bottom: -4px;
left: 5px;
height: 8px;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 10'%3E%3Cpath d='M2 7c44-7 112-6 176-3' fill='none' stroke='%2365b5ed' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
content: "";
}
.hero__lead {
max-width: 575px;
margin-bottom: 31px;
color: var(--muted);
font-size: 18px;
line-height: 1.75;
}
.hero__actions {
display: flex;
align-items: center;
gap: 26px;
}
.text-link {
display: inline-flex;
align-items: center;
gap: 9px;
color: var(--navy);
font-size: 15px;
font-weight: 700;
}
.text-link span {
color: var(--blue);
transition: transform 0.2s ease;
}
.text-link:hover span {
transform: translateY(3px);
}
.hero__proof {
display: flex;
margin-top: 39px;
align-items: center;
gap: 15px;
}
.avatar-stack {
display: flex;
padding-left: 8px;
}
.avatar-stack img {
width: 39px;
height: 39px;
margin-left: -8px;
border: 3px solid #f3f8fe;
border-radius: 50%;
object-fit: cover;
}
.stars {
color: var(--gold);
font-size: 13px;
letter-spacing: 0.07em;
}
.stars strong {
margin-left: 5px;
color: var(--navy);
font-size: 14px;
letter-spacing: 0;
}
.hero__proof p {
margin: 2px 0 0;
color: var(--muted);
font-size: 13px;
}
.hero__visual {
position: relative;
min-height: 565px;
}
.hero__visual::before {
position: absolute;
top: -15px;
right: -15px;
width: 77%;
height: 79%;
border: 1px solid rgba(23, 107, 206, 0.19);
border-radius: 190px 24px 24px 24px;
content: "";
}
.hero__image-wrap {
position: absolute;
inset: 0 0 0 26px;
overflow: hidden;
border: 8px solid rgba(255, 255, 255, 0.65);
border-radius: 210px 28px 28px 28px;
background: #c5def4;
box-shadow: var(--shadow-lg);
}
.hero__image-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.hero__image-tint {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(9, 54, 92, 0) 50%, rgba(9, 43, 76, 0.24) 100%);
pointer-events: none;
}
.floating-card {
position: absolute;
z-index: 2;
display: flex;
padding: 14px 17px;
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 14px;
align-items: center;
gap: 12px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 14px 35px rgba(12, 55, 92, 0.16);
backdrop-filter: blur(10px);
}
.floating-card__icon {
display: grid;
width: 41px;
height: 41px;
flex-shrink: 0;
border-radius: 11px;
place-items: center;
color: var(--blue);
background: var(--sky);
}
.floating-card__icon--mint {
color: #16896a;
background: var(--mint);
}
.floating-card__icon svg {
width: 22px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.6;
}
.floating-card small,
.floating-card strong {
display: block;
}
.floating-card small {
margin-bottom: 2px;
color: var(--muted);
font-size: 11px;
}
.floating-card strong {
color: var(--navy);
font-family: var(--font-heading);
font-size: 13px;
}
.floating-card--appointment {
top: 63px;
right: -28px;
}
.floating-card--rating {
bottom: 40px;
left: -35px;
}
.hero__experience {
position: absolute;
top: 18px;
left: -24px;
display: flex;
width: 112px;
height: 112px;
border: 5px solid #eff6fd;
border-radius: 50%;
align-items: center;
justify-content: center;
gap: 6px;
color: var(--white);
background: var(--blue);
box-shadow: 0 12px 28px rgba(23, 107, 206, 0.25);
}
.hero__experience strong {
font-family: var(--font-heading);
font-size: 29px;
letter-spacing: -0.06em;
}
.hero__experience span {
font-size: 10px;
line-height: 1.35;
}
.benefits {
position: relative;
z-index: 5;
margin-top: -48px;
}
.benefits__grid {
display: grid;
padding: 28px 32px;
border: 1px solid rgba(223, 233, 243, 0.8);
border-radius: 17px;
grid-template-columns: repeat(3, 1fr);
background: var(--white);
box-shadow: var(--shadow-sm);
}
.benefit {
display: flex;
padding: 2px 28px;
align-items: center;
gap: 15px;
}
.benefit + .benefit {
border-left: 1px solid var(--line);
}
.benefit__icon {
display: grid;
width: 46px;
height: 46px;
flex-shrink: 0;
border-radius: 13px;
place-items: center;
color: var(--blue);
background: var(--sky);
}
.benefit__icon svg {
width: 24px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.5;
}
.benefit h2 {
margin: 0 0 3px;
font-size: 15px;
letter-spacing: -0.02em;
}
.benefit p {
margin: 0;
color: var(--muted);
font-size: 12px;
line-height: 1.5;
}
.section-heading {
max-width: 690px;
margin-bottom: 46px;
}
.section-heading > p {
max-width: 620px;
margin-bottom: 0;
color: var(--muted);
font-size: 17px;
}
.section-heading--split {
display: flex;
max-width: none;
align-items: end;
justify-content: space-between;
gap: 50px;
}
.section-heading--split > p {
max-width: 390px;
padding-bottom: 5px;
font-size: 15px;
}
.section-heading--center {
margin-inline: auto;
text-align: center;
}
.section-kicker {
display: inline-flex;
margin-bottom: 14px;
align-items: center;
gap: 8px;
color: var(--blue);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.13em;
text-transform: uppercase;
}
.section-kicker::before {
width: 22px;
height: 2px;
border-radius: 2px;
background: currentColor;
content: "";
}
.section-heading--center .section-kicker::after {
width: 22px;
height: 2px;
background: currentColor;
content: "";
}
.services {
background: var(--pale);
}
.services__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
}
.service-card {
display: flex;
min-width: 0;
padding: 27px;
border: 1px solid var(--line);
border-radius: var(--radius);
flex-direction: column;
background: var(--white);
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
border-color: #c2ddf7;
box-shadow: 0 18px 40px rgba(17, 67, 109, 0.09);
transform: translateY(-6px);
}
.service-card__top {
display: flex;
min-height: 47px;
margin-bottom: 20px;
align-items: start;
justify-content: space-between;
}
.service-card__icon {
display: grid;
width: 49px;
height: 49px;
border-radius: 13px;
place-items: center;
color: var(--blue);
background: var(--sky);
}
.service-card__icon svg {
width: 26px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.45;
}
.service-card__tag {
padding: 5px 9px;
border-radius: 20px;
color: #177458;
background: var(--mint);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.service-card h3 {
margin-bottom: 10px;
font-size: 20px;
font-weight: 700;
}
.service-card > p {
margin-bottom: 25px;
color: var(--muted);
font-size: 14px;
line-height: 1.7;
}
.service-card__footer {
display: flex;
margin-top: auto;
padding-top: 18px;
border-top: 1px solid var(--line);
align-items: center;
justify-content: space-between;
gap: 12px;
}
.price {
color: var(--navy);
font-family: var(--font-heading);
font-size: 27px;
font-weight: 800;
letter-spacing: -0.05em;
}
.price sup {
position: relative;
top: -3px;
margin-right: 2px;
font-size: 14px;
letter-spacing: 0;
}
.price small {
margin-right: 4px;
color: var(--muted);
font-family: var(--font-body);
font-size: 10px;
font-weight: 500;
letter-spacing: 0;
}
.price--free {
font-size: 21px;
letter-spacing: -0.03em;
}
.price--free small {
font-size: 12px;
}
.service-card__footer a {
color: var(--blue);
font-size: 13px;
font-weight: 700;
}
.service-card__footer a span {
display: inline-block;
margin-left: 3px;
transition: transform 0.2s ease;
}
.service-card__footer a:hover span {
transform: translate(2px, -2px);
}
.pricing-note {
display: flex;
margin: 25px 0 0;
align-items: center;
justify-content: center;
gap: 7px;
color: var(--muted);
font-size: 12px;
text-align: center;
}
.pricing-note svg {
width: 16px;
flex-shrink: 0;
fill: none;
stroke: var(--blue);
stroke-linecap: round;
stroke-width: 1.4;
}
.dentists {
background: var(--white);
}
.dentists__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}
.dentist-card {
overflow: hidden;
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--white);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dentist-card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-5px);
}
.dentist-card__image {
position: relative;
height: 320px;
overflow: hidden;
background: var(--sky);
}
.dentist-card__image::after {
position: absolute;
inset: 45% 0 0;
background: linear-gradient(transparent, rgba(7, 41, 70, 0.56));
content: "";
pointer-events: none;
}
.dentist-card__image img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 24%;
transition: transform 0.5s ease;
}
.dentist-card:hover img {
transform: scale(1.035);
}
.dentist-card__image > span {
position: absolute;
bottom: 16px;
left: 18px;
z-index: 2;
padding: 5px 10px;
border: 1px solid rgba(255, 255, 255, 0.35);
border-radius: 30px;
color: var(--white);
background: rgba(8, 45, 79, 0.35);
font-size: 10px;
font-weight: 600;
backdrop-filter: blur(8px);
}
.dentist-card__body {
padding: 24px;
}
.dentist-card__body h3 {
margin-bottom: 5px;
font-size: 21px;
}
.credentials {
margin-bottom: 15px;
color: var(--blue);
font-size: 12px;
font-weight: 600;
}
.dentist-card__body > p:not(.credentials) {
min-height: 72px;
margin-bottom: 20px;
color: var(--muted);
font-size: 13px;
line-height: 1.7;
}
.dentist-card__meta {
display: flex;
padding-top: 17px;
border-top: 1px solid var(--line);
align-items: center;
justify-content: space-between;
gap: 12px;
}
.dentist-card__meta > span {
color: #768a9c;
font-size: 11px;
}
.dentist-card__meta a {
color: var(--blue);
font-size: 12px;
font-weight: 700;
}
.dentist-card__meta a:hover span {
margin-left: 3px;
}
.results {
position: relative;
overflow: hidden;
color: #c0d4e6;
background: var(--navy);
}
.results::before {
position: absolute;
top: -250px;
left: -220px;
width: 650px;
height: 650px;
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 50%;
box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.015), 0 0 0 180px rgba(255, 255, 255, 0.01);
content: "";
pointer-events: none;
}
.results__grid {
position: relative;
display: grid;
align-items: center;
grid-template-columns: 0.93fr 1.07fr;
gap: 90px;
}
.results h2 {
color: var(--white);
font-size: clamp(2.3rem, 4vw, 3.6rem);
}
.results .section-kicker {
color: #77c3ff;
}
.results__content > p {
max-width: 520px;
margin-bottom: 30px;
font-size: 16px;
line-height: 1.8;
}
.check-list {
display: grid;
margin: 0 0 34px;
padding: 0;
gap: 21px;
list-style: none;
}
.check-list li {
display: flex;
align-items: flex-start;
gap: 13px;
}
.check-list li > span {
display: grid;
width: 24px;
height: 24px;
flex-shrink: 0;
border-radius: 50%;
place-items: center;
color: #8dd9ff;
background: rgba(99, 186, 255, 0.14);
font-size: 12px;
font-weight: 700;
}
.check-list strong {
display: block;
margin-bottom: 3px;
color: var(--white);
font-family: var(--font-heading);
font-size: 15px;
}
.check-list p {
margin: 0;
color: #a9bfd1;
font-size: 13px;
}
.comparison {
position: relative;
overflow: hidden;
width: 100%;
aspect-ratio: 1 / 0.91;
border: 7px solid rgba(255, 255, 255, 0.12);
border-radius: 24px;
background: #dff0fb;
box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
isolation: isolate;
user-select: none;
}
.comparison__image {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
pointer-events: none;
}
.comparison__image--before {
z-index: 2;
clip-path: inset(0 calc(100% - var(--position)) 0 0);
}
.comparison__label {
position: absolute;
top: 17px;
z-index: 3;
padding: 5px 11px;
border-radius: 30px;
color: var(--white);
background: rgba(8, 42, 70, 0.66);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
pointer-events: none;
backdrop-filter: blur(6px);
}
.comparison__label--before {
left: 17px;
}
.comparison__label--after {
right: 17px;
}
.comparison__handle {
position: absolute;
top: 0;
bottom: 0;
left: var(--position);
z-index: 4;
width: 2px;
background: var(--white);
box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
pointer-events: none;
transform: translateX(-1px);
}
.comparison__handle span {
position: absolute;
top: 50%;
left: 50%;
display: grid;
width: 48px;
height: 48px;
border: 4px solid rgba(255, 255, 255, 0.4);
border-radius: 50%;
place-items: center;
color: var(--blue);
background: var(--white);
background-clip: padding-box;
box-shadow: 0 5px 18px rgba(4, 38, 66, 0.25);
transform: translate(-50%, -50%);
}
.comparison__handle svg {
width: 23px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.8;
}
.comparison__range {
position: absolute;
inset: 0;
z-index: 6;
width: 100%;
height: 100%;
margin: 0;
cursor: ew-resize;
opacity: 0;
}
.comparison:focus-within {
outline: 3px solid #8ed3ff;
outline-offset: 5px;
}
.comparison__range:focus-visible {
outline: none;
}
.comparison__caption {
display: flex;
margin: 17px 0 0;
align-items: center;
justify-content: center;
gap: 8px;
color: #c3d5e4;
font-size: 12px;
}
.comparison__caption > span {
color: #78c6ff;
font-size: 18px;
}
.comparison__caption small {
margin-left: 8px;
padding-left: 15px;
border-left: 1px solid rgba(255, 255, 255, 0.18);
color: #819db3;
font-size: 10px;
}
.reviews {
background: var(--pale);
}
.reviews__header {
display: flex;
margin-bottom: 44px;
align-items: end;
justify-content: space-between;
gap: 30px;
}
.reviews__header .section-heading {
margin-bottom: 0;
}
.reviews__header h2 {
margin-bottom: 0;
}
.reviews__summary {
display: flex;
flex-shrink: 0;
align-items: center;
gap: 14px;
padding-bottom: 3px;
}
.reviews__score {
color: var(--navy);
font-family: var(--font-heading);
font-size: 46px;
font-weight: 800;
letter-spacing: -0.07em;
}
.reviews__summary p {
margin: 3px 0 0;
color: var(--muted);
font-size: 11px;
}
.reviews__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
}
.review-card {
position: relative;
display: flex;
min-width: 0;
margin: 0;
padding: 29px;
border: 1px solid var(--line);
border-radius: 18px;
flex-direction: column;
background: var(--white);
}
.review-card--featured {
border-color: #b7d6f4;
box-shadow: 0 18px 45px rgba(20, 78, 128, 0.09);
}
.review-card__quote {
position: absolute;
top: 19px;
right: 26px;
color: #e5f0fa;
font-family: Georgia, serif;
font-size: 72px;
line-height: 1;
}
.review-card blockquote {
position: relative;
margin: 19px 0 26px;
color: #375168;
font-size: 15px;
line-height: 1.8;
}
.review-card figcaption {
display: flex;
margin-top: auto;
align-items: center;
gap: 11px;
}
.review-card__avatar {
display: grid;
width: 42px;
height: 42px;
flex-shrink: 0;
border-radius: 50%;
place-items: center;
font-family: var(--font-heading);
font-size: 12px;
font-weight: 700;
}
.review-card__avatar--blue {
color: #175c9e;
background: #deedfb;
}
.review-card__avatar--mint {
color: #167358;
background: #def3eb;
}
.review-card__avatar--peach {
color: #a45a3d;
background: #fce9df;
}
.review-card figcaption strong,
.review-card figcaption small {
display: block;
}
.review-card figcaption strong {
color: var(--navy);
font-size: 13px;
}
.review-card figcaption small {
margin-top: 2px;
color: #8192a1;
font-size: 10px;
}
.google-icon {
width: 18px;
height: 18px;
margin-left: auto;
}
.booking-section {
padding-top: 90px;
}
.booking-card {
position: relative;
display: grid;
overflow: hidden;
border-radius: 26px;
grid-template-columns: 0.85fr 1.15fr;
background: var(--blue);
box-shadow: 0 24px 60px rgba(18, 83, 143, 0.2);
}
.booking-card__intro {
position: relative;
overflow: hidden;
padding: 54px 45px;
color: #cfe5ff;
background: linear-gradient(145deg, #0d58a8, #176bce);
}
.booking-card__intro::before,
.booking-card__intro::after {
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 50%;
content: "";
pointer-events: none;
}
.booking-card__intro::before {
right: -130px;
bottom: -130px;
width: 330px;
height: 330px;
box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.025), 0 0 0 100px rgba(255, 255, 255, 0.018);
}
.booking-card__intro::after {
top: -50px;
left: -60px;
width: 140px;
height: 140px;
}
.section-kicker--light {
color: #9dd3ff;
}
.booking-card__intro h2 {
position: relative;
margin-bottom: 17px;
color: var(--white);
font-size: 40px;
}
.booking-card__intro > p {
position: relative;
margin-bottom: 32px;
font-size: 14px;
line-height: 1.8;
}
.booking-card__contact {
position: relative;
display: flex;
align-items: center;
gap: 12px;
}
.booking-card__contact > span {
display: grid;
width: 42px;
height: 42px;
border-radius: 50%;
place-items: center;
background: rgba(255, 255, 255, 0.12);
font-size: 22px;
}
.booking-card__contact small,
.booking-card__contact a {
display: block;
}
.booking-card__contact small {
font-size: 10px;
}
.booking-card__contact a {
color: var(--white);
font-family: var(--font-heading);
font-size: 16px;
font-weight: 700;
}
.booking-form {
margin: 22px;
padding: 30px;
border-radius: 17px;
background: var(--white);
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
.booking-form label,
.contact-form label:not(.checkbox-label) {
display: block;
margin-bottom: 15px;
color: #405a70;
font-size: 11px;
font-weight: 700;
}
.booking-form input,
.booking-form select,
.contact-form input,
.contact-form textarea {
width: 100%;
margin-top: 6px;
border: 1px solid #d8e4ef;
border-radius: 8px;
outline: none;
color: var(--navy);
background: #fbfcfe;
font-size: 13px;
font-weight: 400;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.booking-form input,
.booking-form select {
height: 43px;
padding: 0 12px;
}
.booking-form input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
color: #9aaaba;
}
.booking-form input:focus,
.booking-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
border-color: #73afea;
background: var(--white);
box-shadow: 0 0 0 3px rgba(23, 107, 206, 0.09);
}
.booking-form .button {
width: 100%;
min-height: 47px;
margin-top: 3px;
}
.button--white {
color: var(--blue-dark);
background: var(--white);
box-shadow: 0 7px 18px rgba(7, 46, 85, 0.13);
}
.button:disabled {
cursor: default;
opacity: 0.85;
transform: none;
}
.booking-form > .button--white {
color: var(--white);
background: var(--blue);
box-shadow: none;
}
.form-privacy {
margin: 11px 0 0;
color: #8697a6;
font-size: 10px;
text-align: center;
}
.form-message {
display: none;
margin: 13px 0 0;
padding: 10px 12px;
border-radius: 7px;
color: #126146;
background: #e7f8f1;
font-size: 12px;
text-align: center;
}
.form-message.visible {
display: block;
}
.contact {
padding-top: 30px;
}
.contact__grid {
display: grid;
grid-template-columns: 0.95fr 1.05fr;
gap: 85px;
}
.contact__info > p {
max-width: 480px;
margin-bottom: 30px;
color: var(--muted);
font-size: 15px;
}
.contact__info address {
display: grid;
margin-bottom: 30px;
gap: 12px;
font-style: normal;
}
.contact__info address a {
display: flex;
align-items: center;
gap: 12px;
color: #365069;
font-size: 13px;
}
.contact__info address a > .contact-arrow {
margin-left: auto;
}
.contact__icon {
display: grid;
width: 40px;
height: 40px;
flex-shrink: 0;
border-radius: 11px;
place-items: center;
color: var(--blue);
background: var(--sky);
}
.contact__icon svg {
width: 20px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.5;
}
.contact__info address small {
display: block;
margin-bottom: 1px;
color: #8999a7;
font-size: 10px;
}
.contact__info address a:hover {
color: var(--blue);
}
.hours {
padding: 25px 27px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--pale);
}
.hours h3 {
display: flex;
margin-bottom: 18px;
align-items: center;
gap: 8px;
font-size: 15px;
letter-spacing: -0.01em;
}
.hours h3 svg {
width: 18px;
fill: none;
stroke: var(--blue);
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.6;
}
.open-badge {
margin-left: auto;
padding: 3px 8px;
border-radius: 20px;
color: #147455;
background: #ddf3e9;
font-family: var(--font-body);
font-size: 9px;
font-weight: 700;
letter-spacing: 0;
text-transform: uppercase;
}
.open-badge.closed {
color: #8a5757;
background: #f7e8e8;
}
.hours dl {
margin: 0;
}
.hours dl > div {
display: flex;
padding: 8px 0;
justify-content: space-between;
gap: 20px;
color: var(--muted);
font-size: 12px;
}
.hours dl > div + div {
border-top: 1px solid #e4ecf3;
}
.hours dt {
font-weight: 500;
}
.hours dd {
margin: 0;
color: #324e65;
font-weight: 600;
text-align: right;
}
.contact-form-wrap {
padding: 34px;
border: 1px solid var(--line);
border-radius: 20px;
background: var(--white);
box-shadow: var(--shadow-sm);
}
.contact-form-wrap__heading {
display: flex;
margin-bottom: 25px;
align-items: center;
gap: 13px;
}
.contact-form-wrap__icon {
display: grid;
width: 44px;
height: 44px;
border-radius: 12px;
place-items: center;
color: var(--blue);
background: var(--sky);
font-size: 20px;
}
.contact-form-wrap__heading h3 {
margin-bottom: 4px;
font-size: 19px;
}
.contact-form-wrap__heading p {
margin: 0;
color: var(--muted);
font-size: 12px;
}
.contact-form label:not(.checkbox-label) {
margin-bottom: 16px;
font-size: 12px;
}
.contact-form input,
.contact-form textarea {
padding: 11px 13px;
}
.contact-form textarea {
min-height: 115px;
resize: vertical;
line-height: 1.6;
}
.checkbox-label {
display: flex;
margin: 3px 0 20px;
align-items: flex-start;
gap: 9px;
color: var(--muted);
font-size: 11px;
line-height: 1.5;
cursor: pointer;
}
.checkbox-label input {
width: 15px;
height: 15px;
flex-shrink: 0;
margin: 2px 0 0;
accent-color: var(--blue);
}
.contact-form .button {
min-height: 47px;
padding-inline: 22px;
font-size: 13px;
}
.contact-form .form-message {
text-align: left;
}
.site-footer {
padding-top: 65px;
color: #9bb0c2;
background: #071f36;
}
.footer__grid {
display: grid;
padding-bottom: 50px;
grid-template-columns: 1.7fr 0.8fr 0.9fr 1.1fr;
gap: 55px;
}
.brand--footer {
color: var(--white);
}
.brand--footer .brand__mark {
color: #62b4f4;
}
.brand--footer small {
color: #6d8497;
}
.footer__brand > p {
max-width: 280px;
margin: 20px 0;
font-size: 13px;
line-height: 1.8;
}
.social-links {
display: flex;
gap: 8px;
}
.social-links a {
display: grid;
width: 32px;
height: 32px;
border: 1px solid #244057;
border-radius: 8px;
place-items: center;
color: #c3d5e3;
font-family: var(--font-heading);
font-size: 13px;
font-weight: 700;
transition: background 0.2s ease, color 0.2s ease;
}
.social-links a:hover {
color: var(--white);
background: var(--blue);
}
.footer__grid h2 {
margin-bottom: 20px;
color: var(--white);
font-size: 13px;
letter-spacing: -0.01em;
}
.footer__grid > div:not(.footer__brand) > a {
display: block;
width: fit-content;
margin: 11px 0;
font-size: 12px;
transition: color 0.2s ease;
}
.footer__grid > div:not(.footer__brand) > a:hover {
color: var(--white);
}
.footer__bottom {
display: flex;
min-height: 67px;
border-top: 1px solid #17344c;
align-items: center;
justify-content: space-between;
gap: 20px;
font-size: 11px;
}
.footer__bottom p {
margin: 0;
}
.footer__bottom div {
display: flex;
gap: 24px;
}
.footer__bottom a:hover {
color: var(--white);
}
.toast {
position: fixed;
right: 24px;
bottom: 24px;
z-index: 100;
display: flex;
max-width: calc(100% - 48px);
padding: 16px 21px;
border: 1px solid #c8eadc;
border-radius: 12px;
align-items: center;
gap: 12px;
color: #174e3d;
background: #f1fff9;
box-shadow: 0 16px 45px rgba(4, 35, 25, 0.16);
opacity: 0;
pointer-events: none;
transform: translateY(20px);
transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.visible {
opacity: 1;
transform: translateY(0);
}
.toast > span {
display: grid;
width: 29px;
height: 29px;
flex-shrink: 0;
border-radius: 50%;
place-items: center;
color: var(--white);
background: #218465;
font-weight: 700;
}
.toast strong {
display: block;
font-family: var(--font-heading);
font-size: 13px;
}
.toast p {
margin: 2px 0 0;
font-size: 11px;
}
@media (max-width: 1080px) {
.header__inner {
gap: 22px;
}
.site-nav {
gap: 20px;
}
.site-nav a {
font-size: 13px;
}
.hero__grid {
gap: 45px;
}
.hero h1 {
font-size: clamp(3.1rem, 5.4vw, 4.2rem);
}
.floating-card--appointment {
right: -8px;
}
.hero__experience {
left: -8px;
}
.benefit {
padding-inline: 20px;
}
.service-card {
padding: 23px;
}
.results__grid {
gap: 55px;
}
.contact__grid {
gap: 45px;
}
}
@media (max-width: 900px) {
.section {
padding: 80px 0;
}
.mobile-menu {
position: static;
display: block;
margin-left: auto;
}
.menu-toggle {
display: block;
margin-left: 0;
list-style: none;
cursor: pointer;
}
.menu-toggle::-webkit-details-marker {
display: none;
}
.menu-toggle::marker {
content: "";
}
.mobile-menu[open] .menu-toggle span:nth-child(1) {
transform: translateY(6px) rotate(45deg);
}
.mobile-menu[open] .menu-toggle span:nth-child(2) {
opacity: 0;
}
.mobile-menu[open] .menu-toggle span:nth-child(3) {
transform: translateY(-6px) rotate(-45deg);
}
.mobile-menu__panel {
position: absolute;
top: calc(100% + 20px);
left: 50%;
z-index: 70;
display: flex;
width: min(360px, calc(100vw - 32px));
max-height: calc(100vh - 120px);
padding: 12px 22px 20px;
border: 1px solid var(--line);
border-radius: 14px;
flex-direction: column;
overflow-y: auto;
background: var(--white);
box-shadow: 0 20px 45px rgba(10, 45, 76, 0.18);
transform: translateX(-50%);
}
.mobile-menu:not([open]) .mobile-menu__panel {
display: none;
}
.mobile-menu[open] .mobile-menu__panel {
display: flex;
}
.mobile-menu__panel > a:not(.button) {
padding: 13px 4px;
border-bottom: 1px solid #edf2f6;
color: #405a72;
font-size: 15px;
font-weight: 600;
}
.mobile-menu__cta {
margin-top: 17px;
color: var(--white);
}
.header__cta {
margin-left: 0;
}
.site-nav {
display: none;
}
.hero {
padding-top: 65px;
}
.hero__grid {
grid-template-columns: 1fr;
gap: 65px;
}
.hero__content {
max-width: 700px;
text-align: center;
margin-inline: auto;
}
.hero__lead {
margin-inline: auto;
}
.hero__actions,
.hero__proof {
justify-content: center;
}
.hero__visual {
width: min(590px, 94%);
min-height: 550px;
margin-inline: auto;
}
.benefits__grid {
grid-template-columns: 1fr;
gap: 20px;
padding: 28px 32px;
}
.benefit + .benefit {
padding-top: 20px;
border-top: 1px solid var(--line);
border-left: 0;
}
.services__grid,
.dentists__grid {
grid-template-columns: repeat(2, 1fr);
}
.service-card:last-child,
.dentist-card:last-child {
grid-column: 1 / -1;
width: calc(50% - 11px);
justify-self: center;
}
.dentist-card__body > p:not(.credentials) {
min-height: 0;
}
.results__grid {
grid-template-columns: 1fr;
gap: 50px;
}
.results__content {
max-width: 650px;
}
.results__visual {
width: min(600px, 100%);
margin-inline: auto;
}
.reviews__grid {
grid-template-columns: 1fr;
}
.review-card {
min-height: 0;
}
.review-card blockquote {
font-size: 16px;
}
.booking-card {
grid-template-columns: 1fr;
}
.booking-card__intro {
padding: 42px;
}
.contact {
padding-top: 10px;
}
.contact__grid {
grid-template-columns: 1fr;
gap: 50px;
}
.footer__grid {
grid-template-columns: 1.5fr 1fr 1fr;
gap: 40px;
}
.footer__brand {
grid-column: 1 / -1;
}
}
@media (max-width: 640px) {
.container {
width: min(100% - 32px, 1180px);
}
.section {
padding: 66px 0;
}
.topbar__inner {
min-height: 35px;
justify-content: center;
}
.topbar__details {
display: none;
}
.header__inner {
min-height: 72px;
gap: 12px;
}
.brand {
font-size: 20px;
}
.brand__mark {
width: 34px;
height: 34px;
}
.brand small {
font-size: 7px;
}
.header__cta {
display: none;
}
.menu-toggle {
width: 39px;
height: 39px;
}
.hero {
padding: 48px 0 90px;
}
.hero h1 {
font-size: clamp(2.75rem, 13vw, 3.7rem);
}
.hero__lead {
font-size: 16px;
}
.eyebrow {
margin-bottom: 19px;
font-size: 10px;
}
.hero__actions {
align-items: stretch;
flex-direction: column;
gap: 17px;
}
.hero__actions .button {
width: 100%;
}
.hero__proof {
margin-top: 30px;
}
.hero__visual {
width: calc(100% - 10px);
min-height: 430px;
}
.hero__image-wrap {
left: 8px;
border-width: 5px;
border-radius: 140px 22px 22px 22px;
}
.hero__visual::before {
right: -6px;
border-radius: 140px 20px 20px 20px;
}
.hero__experience {
top: 3px;
left: -5px;
width: 91px;
height: 91px;
border-width: 4px;
}
.hero__experience strong {
font-size: 24px;
}
.hero__experience span {
font-size: 8px;
}
.floating-card {
padding: 11px 13px;
}
.floating-card__icon {
width: 35px;
height: 35px;
}
.floating-card--appointment {
top: 52px;
right: -5px;
}
.floating-card--rating {
bottom: 24px;
left: -4px;
}
.benefits {
margin-top: -38px;
}
.benefits__grid {
padding: 24px;
}
.benefit {
padding: 0;
}
.section-heading,
.section-heading--split {
margin-bottom: 32px;
}
.section-heading--split {
align-items: start;
flex-direction: column;
gap: 0;
}
.section-heading--split br {
display: none;
}
.section-heading > p,
.section-heading--split > p {
font-size: 14px;
}
h2 {
font-size: 31px;
}
.services__grid,
.dentists__grid {
grid-template-columns: 1fr;
gap: 17px;
}
.service-card:last-child,
.dentist-card:last-child {
grid-column: auto;
width: 100%;
}
.service-card {
padding: 24px;
}
.pricing-note {
align-items: flex-start;
text-align: left;
}
.dentist-card__image {
height: 350px;
}
.results h2 {
font-size: 36px;
}
.comparison {
border-width: 4px;
border-radius: 17px;
}
.comparison__caption {
flex-wrap: wrap;
font-size: 10px;
}
.comparison__caption small {
width: 100%;
margin: 0;
padding: 0;
border: 0;
text-align: center;
}
.reviews__header {
align-items: start;
flex-direction: column;
margin-bottom: 30px;
}
.review-card {
padding: 25px;
}
.review-card blockquote {
font-size: 15px;
}
.booking-section {
padding-top:
…script.js190 lines
(() => {
"use strict";
const header = document.getElementById("siteHeader");
const mobileMenu = document.getElementById("mobileMenu");
const menuToggle = document.getElementById("menuToggle");
const bookingForm = document.getElementById("bookingForm");
const contactForm = document.getElementById("contactForm");
const serviceSelect = document.getElementById("serviceSelect");
const dentistSelect = document.getElementById("dentistSelect");
const appointmentDate = document.getElementById("appointmentDate");
const comparison = document.getElementById("smileComparison");
const comparisonRange = document.getElementById("comparisonRange");
const toast = document.getElementById("toast");
const toastText = document.getElementById("toastText");
const today = new Date();
let toastTimer;
let bookingButtonTimer;
const updateHeader = () => {
if (header) header.classList.toggle("scrolled", window.scrollY > 12);
};
updateHeader();
window.addEventListener("scroll", updateHeader, { passive: true });
const closeMenu = () => {
if (mobileMenu) mobileMenu.open = false;
};
if (mobileMenu) {
mobileMenu.addEventListener("toggle", () => {
const isOpen = mobileMenu.open;
if (menuToggle) {
menuToggle.setAttribute("aria-label", isOpen ? "Close navigation" : "Open navigation");
}
document.body.classList.toggle("menu-open", isOpen);
});
mobileMenu.querySelectorAll("a").forEach((link) => {
link.addEventListener("click", closeMenu);
});
document.addEventListener("click", (event) => {
if (mobileMenu.open && !mobileMenu.contains(event.target)) closeMenu();
});
document.addEventListener("keydown", (event) => {
if (event.key === "Escape") closeMenu();
});
window.addEventListener("resize", () => {
if (window.innerWidth > 900) closeMenu();
});
}
if (appointmentDate) {
const localDate = new Date(today.getTime() - today.getTimezoneOffset() * 60000)
.toISOString()
.split("T")[0];
appointmentDate.min = localDate;
appointmentDate.value = localDate;
}
const showToast = (message) => {
if (!toast || !toastText) return;
window.clearTimeout(toastTimer);
toastText.textContent = message;
toast.classList.add("visible");
toastTimer = window.setTimeout(() => toast.classList.remove("visible"), 5500);
};
const updateComparison = () => {
if (comparison && comparisonRange) {
comparison.style.setProperty("--position", `${comparisonRange.value}%`);
}
};
if (comparisonRange) {
comparisonRange.addEventListener("input", updateComparison);
updateComparison();
}
const chooseOption = (select, value) => {
if (!select || !value) return;
const option = Array.from(select.options).find(
(item) => item.value === value || item.text === value
);
if (option) {
select.selectedIndex = option.index;
select.dispatchEvent(new Event("change", { bubbles: true }));
}
};
// Preselect the relevant form options when a booking link is clicked.
document.addEventListener("click", (event) => {
const serviceLink = event.target.closest("[data-service]");
const dentistLink = event.target.closest("[data-dentist]");
if (serviceLink) {
chooseOption(serviceSelect, serviceLink.dataset.service);
}
if (dentistLink) {
chooseOption(dentistSelect, dentistLink.dataset.dentist);
if (serviceSelect && !serviceSelect.value) {
chooseOption(serviceSelect, "New patient exam");
}
}
});
if (bookingForm) {
bookingForm.addEventListener("submit", (event) => {
event.preventDefault();
if (!bookingForm.reportValidity()) return;
const data = new FormData(bookingForm);
const fullName = String(data.get("name") || "").trim();
const firstName = fullName.split(" ")[0] || "there";
const message = document.getElementById("bookingMessage");
const submitButton = bookingForm.querySelector("button[type='submit']");
if (message) {
message.textContent = `Thanks, ${firstName}! Your ${data.get("service")} request has been received. We’ll call to confirm your visit.`;
message.classList.add("visible");
}
showToast("Your appointment request is on its way.");
if (submitButton) {
window.clearTimeout(bookingButtonTimer);
if (!submitButton.dataset.defaultLabel) {
submitButton.dataset.defaultLabel = submitButton.innerHTML;
}
submitButton.textContent = "Request received ✓";
bookingButtonTimer = window.setTimeout(() => {
submitButton.innerHTML = submitButton.dataset.defaultLabel;
}, 4500);
}
});
bookingForm.addEventListener("input", () => {
document.getElementById("bookingMessage")?.classList.remove("visible");
});
}
if (contactForm) {
contactForm.addEventListener("submit", (event) => {
event.preventDefault();
if (!contactForm.reportValidity()) return;
const data = new FormData(contactForm);
const firstName = String(data.get("firstName") || "").trim();
const message = document.getElementById("contactMessage");
if (message) {
message.textContent = `Thanks, ${firstName}! Your message has been sent. We’ll reply to ${data.get("email")} shortly.`;
message.classList.add("visible");
}
showToast("Message sent. We’ll be in touch soon.");
contactForm.reset();
});
contactForm.addEventListener("input", () => {
document.getElementById("contactMessage")?.classList.remove("visible");
});
}
const openBadge = document.getElementById("openBadge");
if (openBadge) {
const schedule = {
0: null,
1: [8, 18],
2: [8, 18],
3: [8, 18],
4: [8, 18],
5: [8, 16],
6: [9, 14]
};
const hours = schedule[today.getDay()];
const currentHour = today.getHours() + today.getMinutes() / 60;
const isOpen = hours && currentHour >= hours[0] && currentHour < hours[1];
openBadge.textContent = isOpen ? "Open today" : "Closed now";
openBadge.classList.toggle("closed", !isOpen);
}
const currentYear = document.getElementById("currentYear");
if (currentYear) currentYear.textContent = today.getFullYear();
})();assets/smile-after.svg91 lines
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="728" viewBox="0 0 800 728" role="img" aria-labelledby="title desc">
<title id="title">Smile after treatment</title>
<desc id="desc">An illustration of a bright, even smile with natural-looking teeth after composite bonding.</desc>
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
<stop stop-color="#eff8ff"/>
<stop offset="1" stop-color="#cce7f9"/>
</linearGradient>
<radialGradient id="skin" cx="48%" cy="38%" r="72%">
<stop stop-color="#f6d4c2"/>
<stop offset="0.65" stop-color="#e9b7a2"/>
<stop offset="1" stop-color="#d99883"/>
</radialGradient>
<linearGradient id="lip" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#a74f5d"/>
<stop offset="0.48" stop-color="#bd6870"/>
<stop offset="1" stop-color="#883a4a"/>
</linearGradient>
<linearGradient id="mouth" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#351c28"/>
<stop offset="1" stop-color="#130d17"/>
</linearGradient>
<linearGradient id="gum" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#c86d78"/>
<stop offset="1" stop-color="#e29397"/>
</linearGradient>
<linearGradient id="enamel" x1="0.15" y1="0" x2="0.75" y2="1">
<stop stop-color="#ffffff"/>
<stop offset="0.55" stop-color="#f7fbfc"/>
<stop offset="1" stop-color="#e7f1f3"/>
</linearGradient>
<linearGradient id="lowerEnamel" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#edf5f6"/>
<stop offset="1" stop-color="#ffffff"/>
</linearGradient>
<radialGradient id="tongue" cx="50%" cy="20%" r="75%">
<stop stop-color="#d77c86"/>
<stop offset="1" stop-color="#a74e61"/>
</radialGradient>
<filter id="softShadow" x="-20%" y="-30%" width="140%" height="170%">
<feGaussianBlur stdDeviation="13"/>
</filter>
<clipPath id="openingClip">
<path d="M124 361C225 252 316 259 400 292c84-33 175-40 276 69-48 126-155 177-276 177S172 487 124 361Z"/>
</clipPath>
</defs>
<rect width="800" height="728" fill="url(#bg)"/>
<circle cx="94" cy="112" r="66" fill="#fff" opacity=".35"/>
<circle cx="714" cy="622" r="103" fill="#a6d6f4" opacity=".24"/>
<path d="M81 0h638v728H81z" fill="url(#skin)"/>
<path d="M81 0h638v122c-115 41-222 55-319 55S182 163 81 122V0Z" fill="#c98775" opacity=".12"/>
<ellipse cx="400" cy="421" rx="303" ry="183" fill="#9e5759" opacity=".13" filter="url(#softShadow)"/>
<path d="M111 357c44-102 149-155 289-134 140-21 245 32 289 134-21 143-133 219-289 219S132 500 111 357Z" fill="#6f313f" opacity=".16" transform="translate(0 9)"/>
<path d="M111 357c54-107 154-142 289-119 135-23 235 12 289 119-42 140-148 204-289 204S153 497 111 357Z" fill="url(#lip)"/>
<path d="M124 361C225 252 316 259 400 292c84-33 175-40 276 69-48 126-155 177-276 177S172 487 124 361Z" fill="url(#mouth)"/>
<g clip-path="url(#openingClip)">
<path d="M131 348c87-91 178-94 269-57 91-37 182-34 269 57l-9 73H140l-9-73Z" fill="url(#gum)"/>
<path d="M156 342c74-66 157-81 244-49 87-32 170-17 244 49-24 8-44 17-61 30-36 28-107 39-183 36-76 3-147-8-183-36-17-13-37-22-61-30Z" fill="#f7b7b2" opacity=".35"/>
<g stroke="#d4e4e7" stroke-width="1.4" stroke-linejoin="round">
<path d="M165 338c23-43 50-57 77-55 8 25 7 60-2 91-9 10-19 14-29 11-14-4-27-21-46-47Z" fill="url(#enamel)"/>
<path d="M240 283c23-13 47-12 67 2l8 100c-7 15-18 22-32 21-25-2-41-44-49-96 1-10 3-19 6-27Z" fill="url(#enamel)"/>
<path d="M306 287c18-6 36-4 51 5l2 124c-17 10-37 10-56 0l-10-101c1-11 5-20 13-28Z" fill="url(#enamel)"/>
<path d="M356 292c14-7 29-8 45-3v127c-17 8-34 8-51 0l8-106c-1-7-1-13-2-18Z" fill="url(#enamel)"/>
<path d="M400 289c16-4 31-3 46 3l4 106c-1 7-1 13-2 18l-50 0 2-127Z" fill="url(#enamel)"/>
<path d="M445 292c16-6 33-6 49 2 7 9 11 18 12 29l-14 96c-19 10-39 10-56 0l9-127Z" fill="url(#enamel)"/>
<path d="M493 296c20-14 44-15 67-2 6 8 8 17 6 27l-8 96c-14 1-25-6-32-21l-33-100Z" fill="url(#enamel)"/>
<path d="M559 295c27-2 54 12 77 55-19 26-32 43-46 47-10 3-20-1-29-11l-2-91Z" fill="url(#enamel)"/>
</g>
<g fill="none" stroke="#fff" stroke-linecap="round" opacity=".65">
<path d="M253 296c3 24 4 46 3 69" stroke-width="4"/>
<path d="M320 302c3 27 3 52 1 75" stroke-width="5"/>
<path d="M371 302v72" stroke-width="4"/>
<path d="M421 302v72" stroke-width="4"/>
<path d="M471 303c-1 25-1 48-2 70" stroke-width="4"/>
<path d="M536 307c-3 22-4 43-3 64" stroke-width="3"/>
</g>
<path d="M183 473c56-31 129-40 217-38 88-2 161 7 217 38-19 37-72 55-142 53-50 8-137 7-187-1-44-8-70-25-88-56 19 1 37 3 53 4Z" fill="url(#lowerEnamel)"/>
<g fill="none" stroke="#d6e5e8" stroke-width="1.4">
<path d="M254 450c9 21 14 37 12 59m65-67c7 17 12 34 12 59m59-60v59m63-57c-7 17-11 34-12 59m63-51c-9 21-14 37-12 59"/>
</g>
<path d="M211 509c64-46 298-54 378 0-39 37-118 50-189 48-71 2-150-11-189-48Z" fill="url(#tongue)"/>
<path d="M264 527c61-18 187-20 272 0" fill="none" stroke="#edabb0" stroke-width="5" stroke-linecap="round" opacity=".5"/>
</g>
<path d="M124 361c76-79 172-91 276-69 104-22 200-10 276 69" fill="none" stroke="#7f3546" stroke-width="5" stroke-linecap="round" opacity=".55"/>
<path d="M152 441c56 89 147 124 248 124s192-35 248-124" fill="none" stroke="#7d3545" stroke-width="4" stroke-linecap="round" opacity=".38"/>
<path d="M183 294c41-40 84-61 127-70m307 70c-41-40-84-61-127-70" fill="none" stroke="#f4c8ba" stroke-width="8" stroke-linecap="round" opacity=".36"/>
<g fill="#fff">
<path d="m675 142 5 15 15 5-15 5-5 15-5-15-15-5 15-5 5-15Z" opacity=".85"/>
<path d="m127 554 4 11 11 4-11 4-4 11-4-11-11-4 11-4 4-11Z" opacity=".65"/>
</g>
</svg>assets/smile-before.svg91 lines
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="728" viewBox="0 0 800 728" role="img" aria-labelledby="title desc">
<title id="title">Smile before treatment</title>
<desc id="desc">An illustration of a smile with uneven, chipped and discoloured teeth before composite bonding.</desc>
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
<stop stop-color="#eff8ff"/>
<stop offset="1" stop-color="#cce7f9"/>
</linearGradient>
<radialGradient id="skin" cx="48%" cy="38%" r="72%">
<stop stop-color="#f6d4c2"/>
<stop offset="0.65" stop-color="#e9b7a2"/>
<stop offset="1" stop-color="#d99883"/>
</radialGradient>
<linearGradient id="lip" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#a74f5d"/>
<stop offset="0.48" stop-color="#bd6870"/>
<stop offset="1" stop-color="#883a4a"/>
</linearGradient>
<linearGradient id="mouth" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#351c28"/>
<stop offset="1" stop-color="#130d17"/>
</linearGradient>
<linearGradient id="gum" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#bd626e"/>
<stop offset="1" stop-color="#d8898e"/>
</linearGradient>
<linearGradient id="oldEnamel" x1="0.15" y1="0" x2="0.75" y2="1">
<stop stop-color="#e9d7a3"/>
<stop offset="0.5" stop-color="#e2c98e"/>
<stop offset="1" stop-color="#c9a971"/>
</linearGradient>
<linearGradient id="oldLower" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#c7a671"/>
<stop offset="1" stop-color="#e5ce9c"/>
</linearGradient>
<radialGradient id="tongue" cx="50%" cy="20%" r="75%">
<stop stop-color="#d77c86"/>
<stop offset="1" stop-color="#a74e61"/>
</radialGradient>
<filter id="softShadow" x="-20%" y="-30%" width="140%" height="170%">
<feGaussianBlur stdDeviation="13"/>
</filter>
<clipPath id="openingClip">
<path d="M124 361C225 252 316 259 400 292c84-33 175-40 276 69-48 126-155 177-276 177S172 487 124 361Z"/>
</clipPath>
</defs>
<rect width="800" height="728" fill="url(#bg)"/>
<circle cx="94" cy="112" r="66" fill="#fff" opacity=".35"/>
<circle cx="714" cy="622" r="103" fill="#a6d6f4" opacity=".24"/>
<path d="M81 0h638v728H81z" fill="url(#skin)"/>
<path d="M81 0h638v122c-115 41-222 55-319 55S182 163 81 122V0Z" fill="#c98775" opacity=".12"/>
<ellipse cx="400" cy="421" rx="303" ry="183" fill="#9e5759" opacity=".13" filter="url(#softShadow)"/>
<path d="M111 357c44-102 149-155 289-134 140-21 245 32 289 134-21 143-133 219-289 219S132 500 111 357Z" fill="#6f313f" opacity=".16" transform="translate(0 9)"/>
<path d="M111 357c54-107 154-142 289-119 135-23 235 12 289 119-42 140-148 204-289 204S153 497 111 357Z" fill="url(#lip)"/>
<path d="M124 361C225 252 316 259 400 292c84-33 175-40 276 69-48 126-155 177-276 177S172 487 124 361Z" fill="url(#mouth)"/>
<g clip-path="url(#openingClip)">
<path d="M131 348c87-91 178-94 269-57 91-37 182-34 269 57l-9 73H140l-9-73Z" fill="url(#gum)"/>
<path d="M156 342c74-66 157-81 244-49 87-32 170-17 244 49-24 8-44 17-61 30-36 28-107 39-183 36-76 3-147-8-183-36-17-13-37-22-61-30Z" fill="#e69a99" opacity=".22"/>
<g stroke="#b79a69" stroke-width="1.5" stroke-linejoin="round">
<path d="M164 341c23-45 51-61 78-58 9 26 7 61-3 93-9 11-20 15-30 11-14-5-27-21-45-46Z" fill="url(#oldEnamel)" transform="rotate(-5 205 342)"/>
<path d="M240 286c23-15 47-14 67 0l9 96-11 27c-15 9-30 7-43-5l-32-118Z" fill="url(#oldEnamel)" transform="rotate(8 276 345)"/>
<path d="M309 278c17-3 34 1 47 12l-1 87 12 36c-19 9-40 6-56-7l-6-113c0-6 1-11 4-15Z" fill="url(#oldEnamel)" transform="rotate(-7 332 352)"/>
<path d="M363 289c14-4 27-3 39 2l-2 81 14 38-4 10c-16 7-32 6-47-1l10-130Z" fill="url(#oldEnamel)" transform="rotate(5 382 355)"/>
<path d="M410 286c13-4 27-3 39 4l3 119c-18 10-38 9-53 0l11-123Z" fill="url(#oldEnamel)" transform="rotate(-4 430 350)"/>
<path d="M459 284c19-5 37 0 52 14 6 7 7 15 3 25l-17 88c-17 11-36 12-53 3l15-130Z" fill="url(#oldEnamel)" transform="rotate(10 482 350)"/>
<path d="M516 298c21-11 43-7 62 10 5 5 6 12 3 20l-15 82c-17 2-29-5-37-18l-13-94Z" fill="url(#oldEnamel)" transform="rotate(-7 544 351)"/>
<path d="M570 292c25 0 49 14 70 53-17 28-30 45-42 49-11 4-22 0-32-11l-2-87c1-2 3-3 6-4Z" fill="url(#oldEnamel)" transform="rotate(5 604 343)"/>
</g>
<g fill="none" stroke="#aa8452" stroke-linecap="round" opacity=".55">
<path d="M250 298c4 23 6 43 6 63m50-70c0 22 1 43 2 65m51-65c0 20-1 40-3 60m59-57c-1 21-2 40-4 58m52-65c1 20 2 40 5 59m58-46c-1 18-2 36-5 51" stroke-width="5"/>
<path d="m333 406 8-16 8 14m10-73 6 17 11-6" stroke-width="3"/>
</g>
<path d="M183 473c56-31 129-40 217-38 88-2 161 7 217 38-19 37-72 55-142 53-50 8-137 7-187-1-44-8-70-25-88-56 19 1 37 3 53 4Z" fill="url(#oldLower)"/>
<g fill="none" stroke="url(#oldLower)" stroke-width="23" stroke-linecap="round">
<path d="M260 468c4 17 7 31 6 48" transform="rotate(-7 264 492)"/>
<path d="M321 453c3 15 5 31 4 49" transform="rotate(5 324 478)"/>
<path d="M382 451v53" transform="rotate(-4 382 478)"/>
<path d="M441 452c-2 17-3 32-2 50" transform="rotate(7 440 478)"/>
<path d="M502 462c-3 14-5 29-5 43" transform="rotate(-8 500 484)"/>
<path d="M558 473c-2 12-3 24-3 36" transform="rotate(6 557 491)"/>
</g>
<g fill="none" stroke="#b18c5c" stroke-width="1.3" opacity=".7">
<path d="M255 452c10 21 15 38 13 59m64-65c7 17 11 34 11 57m59-58v57m63-56c-7 17-10 34-10 57m64-48c-7 18-11 34-11 50"/>
</g>
<path d="M211 509c64-46 298-54 378 0-39 37-118 50-189 48-71 2-150-11-189-48Z" fill="url(#tongue)"/>
<path d="M264 527c61-18 187-20 272 0" fill="none" stroke="#edabb0" stroke-width="5" stroke-linecap="round" opacity=".5"/>
</g>
<path d="M124 361c76-79 172-91 276-69 104-22 200-10 276 69" fill="none" stroke="#7f3546" stroke-width="5" stroke-linecap="round" opacity=".55"/>
<path d="M152 441c56 89 147 124 248 124s192-35 248-124" fill="none" stroke="#7d3545" stroke-width="4" stroke-linecap="round" opacity=".38"/>
<path d="M183 294c41-40 84-61 127-70m307 70c-41-40-84-61-127-70" fill="none" stroke="#f4c8ba" stroke-width="8" stroke-linecap="round" opacity=".36"/>
</svg>