/* style.css â€” Shared styles for BrightSmile Dental website
   Drop this into project root and remove inline duplicate styles from pages.
*/

/* ---------------------------
   Theme variables
   ---------------------------*/
:root{
  /* Colors */
  --primary:   #0066b3;   /* slightly deeper blue */
  --accent:    #00aaff;   /* accent (kept) */
  --muted:     #f4f7fb;
  --dark:      #0b1a2b;
  --ink:       #1e2b3a;
  --bg:        #ffffff;

  /* Spacing / radii / shadows */
  --container-max: 1200px;
  --card-radius: 10px;
  --shadow-sm: 0 6px 18px rgba(11,26,43,0.06);
  --shadow-md: 0 12px 30px rgba(11,26,43,0.08);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --base-font-size: 16px;
}

/* ---------------------------
   Global reset + base
   ---------------------------*/
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--base-font-size);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container helper */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------
   Navbar & Offcanvas
   ---------------------------*/
.navbar {
  background: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.navbar .navbar-brand {
  color: var(--primary) !important;
  font-weight: 700;
  letter-spacing: 0.1px;
}
.navbar .navbar-toggler { border: 0; }
.offcanvas {
  width: min(420px, 92vw);
}

/* Ensure links in offcanvas look good */
.offcanvas .nav-link {
  color: var(--ink);
  margin: .15rem 0;
}
.offcanvas .nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* ---------------------------
   Hero / Page header
   ---------------------------*/
.hero {
  color: #fff;
  padding: 3.5rem 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* default fallback gradient */
  background-image: linear-gradient(90deg, rgba(0,102,179,0.95), rgba(0,170,255,0.85));
}
.hero .lead { opacity: .95; }

/* Common fallback for hero images used in various pages:
   if you want page-specific hero images, keep them inline or in page-specific CSS */
.hero .card.contact-card {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* ---------------------------
   Buttons
   ---------------------------*/
.btn-primary {
  background: linear-gradient(180deg, var(--primary), #0057a0);
  border: none;
  color: #fff;
  box-shadow: none;
  padding: .65rem .95rem;
  border-radius: 8px;
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
}

/* Large hero CTAs */
.btn-lg { padding: .85rem 1.25rem; font-size: 1rem; }

/* ---------------------------
   Cards & Utilities
   ---------------------------*/
.card, .service-card, .testimonial-card, .contact-card {
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

/* Service card (used on services page + homepage) */
.service-card {
  padding: 1.25rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Small decorative icon block in service cards */
.service-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: .75rem;
  background: linear-gradient(180deg, rgba(0,170,255,0.10), rgba(0,124,204,0.04));
}

/* Testimonial */
.testimonial-card {
  padding: 1.2rem;
  background: var(--muted);
  border-radius: calc(var(--card-radius) - 2px);
}

/* Blog card */
.blog-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* CTAs & strips */
.cta-strip {
  background: var(--primary);
  color: #fff;
  padding: 1.6rem;
  border-radius: 10px;
}

/* ---------------------------
   Forms
   ---------------------------*/
.form-control, .form-select, textarea {
  border-radius: 8px;
  border: 1px solid #d6e3f2;
  padding: .6rem .75rem;
  background: #fff;
  font-size: .95rem;
}
.form-control:focus, .form-select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(0,102,179,0.08);
  border-color: var(--primary);
}

/* Buttons in forms */
button[type="submit"] {
  border-radius: 8px;
}

/* ---------------------------
   Grid responsivity tweaks
   ---------------------------*/
.row.g-4 { gap: 1.5rem; }

/* Team grid helper */
.team-grid { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.team-member { text-align: center; padding: 1rem; background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); }

/* ---------------------------
   Footer
   ---------------------------*/
footer {
  background: #061226;
  color: #cfe9ff;
  padding: 2.25rem 0;
  margin-top: 2rem;
}
footer a { color: #cfe9ff; }
footer .social a { margin-right: .75rem; font-size: 1.15rem; color: #cfe9ff; }

/* subtle hr color for dark footer */
footer hr { border-color: rgba(255,255,255,0.06); }

/* small text */
.small-muted { color: rgba(255,255,255,0.8); }

/* ---------------------------
   Accessibility & small helpers
   ---------------------------*/
.text-primary { color: var(--primary) !important; }
.lead { font-size: 1.05rem; color: rgba(0,0,0,0.65); }

/* Utilities */
.img-circle { border-radius: 50%; object-fit: cover; }

/* ---------------------------
   Responsive tweaks
   ---------------------------*/
@media (min-width: 768px) {
  .hero { padding: 4.5rem 0; }
  .blog-card img { height: 200px; }
}

@media (min-width: 992px) {
  .hero { padding: 5.5rem 0; }
  .lead { font-size: 1.15rem; }
}

/* Small print: keep footer text readable on narrow devices */
@media (max-width: 575px) {
  footer .row { text-align: center; }
  .team-grid { gap: .75rem; }
}