@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D2C5B;
  --teal: #1BA8A2;
  --teal-dark: #128C87;
  --gold: #E8A44A;
  --dark: #1F2937;
  --medium: #4B5563;
  --light: #F7F9FC;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 20px rgba(13,44,91,0.08);
  --shadow-lg: 0 8px 40px rgba(13,44,91,0.15);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; }

/* TOPBAR */
.topbar { background: var(--navy); color: rgba(255,255,255,0.85); padding: 8px 0; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-phone { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar-hours { display: flex; align-items: center; gap: 6px; }
@media(max-width:640px){ .topbar-hours { display:none; } }

/* HEADER */
.site-header { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo img { height: 52px; width: auto; }
.logo a { display: block; }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 6px;
  color: var(--dark); text-decoration: none;
  font-weight: 500; font-size: 14.5px;
  transition: all 0.2s; white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li:hover > a { background: var(--light); color: var(--teal); }
.main-nav > ul > li > a .caret { font-size: 10px; opacity: 0.5; transition: 0.2s; }
.main-nav > ul > li:hover > a .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.2s; z-index: 100; }
.main-nav > ul > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown ul { list-style: none; padding: 8px; }
.dropdown ul li a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--medium); text-decoration: none; font-size: 14px; transition: all 0.15s; }
.dropdown ul li a:hover { background: var(--light); color: var(--teal); padding-left: 18px; }

/* Portal & CTA in nav */
.nav-portal a { background: var(--light); border-radius: 6px; }
.nav-cta a { background: var(--teal) !important; color: var(--white) !important; border-radius: 6px; padding: 8px 16px; font-weight: 600; }
.nav-cta a:hover { background: var(--teal-dark) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

@media(max-width:900px){
  .main-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 999; flex-direction: column; align-items: flex-start; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; background: var(--white); width: 300px; height: 100%; overflow-y: auto; padding: 20px; gap: 4px; box-shadow: var(--shadow-lg); }
  .main-nav > ul > li > a { padding: 10px 14px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--light); margin-top: 4px; border-radius: 8px; }
  .main-nav > ul > li .dropdown { display: none; }
  .main-nav > ul > li.open .dropdown { display: block; }
  .nav-toggle { display: block; }
}

/* CONTAINER */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, #1a4a8a 60%, #0d3d6e 100%); }
.hero-bg { position: absolute; inset: 0; background-image: url('https://www.tedpinneydds.com/wp-content/uploads/2019/05/20190519_141441-e1558990532381-scaled.jpg'); background-size: cover; background-position: center top; opacity: 0.18; }
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 80px 0; }
.hero-eyebrow { display: inline-block; background: rgba(27,168,162,0.25); color: var(--teal); border: 1px solid rgba(27,168,162,0.4); padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--white); line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero h1 span { color: var(--teal); }
.hero p { color: rgba(255,255,255,0.78); font-size: 1.1rem; margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.2s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,168,162,0.4); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #d4903d; transform: translateY(-1px); }

/* STATS BAR */
.stats-bar { background: var(--teal); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 24px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 4px; }
@media(max-width:600px){ .stats-bar .container { grid-template-columns: repeat(2,1fr); } .stat-item:nth-child(2){ border-right:none; } }

/* SECTIONS */
.section { padding: 72px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow { display: inline-block; color: var(--teal); font-weight: 600; font-size: 13px; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.section-navy .section-title { color: var(--white); }
.section-subtitle { color: var(--medium); font-size: 1rem; line-height: 1.7; }
.section-navy .section-subtitle { color: rgba(255,255,255,0.7); }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:768px){ .services-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .services-grid { grid-template-columns: 1fr; } }

.service-card { background: var(--white); border-radius: 12px; padding: 28px 24px; border: 1px solid var(--border); transition: all 0.25s; text-decoration: none; display: block; }
.service-card:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon { width: 52px; height: 52px; background: linear-gradient(135deg, rgba(27,168,162,0.12), rgba(27,168,162,0.06)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy); font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--medium); font-size: 14px; line-height: 1.6; }
.service-card .learn-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--teal); font-weight: 600; font-size: 13.5px; }

/* FEATURES / WHY CHOOSE */
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
@media(max-width:640px){ .features-grid { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: 16px; }
.feature-icon { width: 48px; height: 48px; background: rgba(27,168,162,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.feature-item h3 { font-weight: 600; font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.feature-item p { color: var(--medium); font-size: 14px; line-height: 1.65; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:768px){ .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 28px; }
.stars { color: var(--gold); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote { color: rgba(255,255,255,0.85); font-size: 14.5px; line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testimonial-author { color: var(--teal); font-weight: 600; font-size: 14px; }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media(max-width:768px){ .two-col { grid-template-columns: 1fr; gap: 36px; } }
.two-col-img { border-radius: 16px; overflow: hidden; }
.two-col-img img { width: 100%; height: 100%; object-fit: cover; max-height: 440px; display: block; }

/* CONTACT BAR */
.contact-bar { background: var(--gold); }
.contact-bar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.contact-bar-text h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); font-weight: 700; margin-bottom: 6px; }
.contact-bar-text p { color: rgba(255,255,255,0.88); font-size: 15px; }
.btn-white { background: var(--white); color: var(--gold); font-weight: 700; }
.btn-white:hover { background: var(--navy); color: var(--white); }

/* INFO CARDS */
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:768px){ .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--white); border-radius: 12px; padding: 32px 28px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); }
.info-card .icon { font-size: 32px; margin-bottom: 14px; }
.info-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 12px; }
.info-card p, .info-card address { color: var(--medium); font-size: 14.5px; line-height: 1.8; font-style: normal; }
.info-card a { color: var(--teal); text-decoration: none; font-weight: 600; }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--navy), #1a4a8a); padding: 60px 0; text-align: center; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: 13px; margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

/* CONTENT BODY */
.content-body { max-width: 780px; margin: 0 auto; }
.content-body h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); font-weight: 700; margin: 36px 0 14px; }
.content-body h3 { font-size: 1.1rem; color: var(--navy); font-weight: 600; margin: 24px 0 10px; }
.content-body p { color: var(--medium); line-height: 1.8; margin-bottom: 16px; }
.content-body ul, .content-body ol { color: var(--medium); padding-left: 22px; margin-bottom: 16px; }
.content-body li { margin-bottom: 8px; line-height: 1.7; }
.content-body .lead { font-size: 1.1rem; color: var(--dark); line-height: 1.75; }

/* SERVICE DETAIL */
.service-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
@media(max-width:768px){ .service-detail-grid { grid-template-columns: 1fr; } }
.service-sidebar { }
.sidebar-card { background: var(--light); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.sidebar-card h3 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--navy); margin-bottom: 14px; border-bottom: 2px solid var(--teal); padding-bottom: 10px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li a { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: var(--medium); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.sidebar-card ul li:last-child a { border-bottom: none; }
.sidebar-card ul li a:hover { color: var(--teal); }
.sidebar-card ul li a::before { content: '→'; color: var(--teal); font-size: 12px; }
.cta-box { background: linear-gradient(135deg, var(--navy), #1a4a8a); border-radius: 12px; padding: 28px 24px; text-align: center; }
.cta-box h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,0.75); font-size: 13.5px; margin-bottom: 18px; }
.cta-box .btn { width: 100%; justify-content: center; }

/* TEAM GRID */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:640px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
.team-card { text-align: center; }
.team-card-img { width: 100%; aspect-ratio: 1; background: var(--light); border-radius: 12px; overflow: hidden; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.team-card p { color: var(--medium); font-size: 14px; }

/* APPOINTMENT FORM */
.appointment-form { max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:480px){ .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 13.5px; font-weight: 500; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 14px;
  font-family: inherit; font-size: 14.5px; color: var(--dark); background: var(--white);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,168,162,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: var(--white); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-logo img { height: 42px; margin-bottom: 14px; filter: brightness(0) invert(1) opacity(0.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }

/* PAGE CONTENT */
.page-content { padding: 60px 0; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media(max-width:768px){ .blog-grid { grid-template-columns: 1fr; } }
.blog-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-card-img { background: var(--light); aspect-ratio: 16/9; overflow: hidden; display:flex; align-items:center; justify-content:center; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-date { color: var(--teal); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.blog-card h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.blog-card p { color: var(--medium); font-size: 14px; line-height: 1.6; }

/* SMILE GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media(max-width:600px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Utilities */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* CHERRY FINANCING FLOAT */
.cherry-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #00C37D, #00A668);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,195,125,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cherry-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,195,125,0.5);
  color: #fff;
}
.cherry-float-icon { font-size: 1.4rem; flex-shrink: 0; }
.cherry-float-text { color: #fff; }
.cherry-float-text small { font-weight: 400; opacity: 0.88; font-size: 11.5px; }
@media(max-width:480px) {
  .cherry-float { bottom: 16px; right: 16px; padding: 10px 16px 10px 12px; }
  .cherry-float-text small { display: none; }
}
