/* ============================================================
   Dent 318 Clinic — Global Stylesheet
   Theme derived from the brand logo & wave artwork:
     primary blue  #2A8BC9
     dark navy     #16456E
     mid blue      #1B6CA8
     light teal    #8FC0D4
     cyan          #35A8C4
   ============================================================ */

:root {
  --blue-primary: #2a8bc9;
  --blue-dark: #16456e;
  --blue-mid: #1b6ca8;
  --blue-light: #8fc0d4;
  --cyan: #35a8c4;
  --gray-text: #6b7280;
  --gray-soft: #9aa0a6;
  --white: #ffffff;
  --bg-light: #f4f9fc;
  --shadow-sm: 0 4px 14px rgba(22, 69, 110, 0.08);
  --shadow-md: 0 12px 34px rgba(22, 69, 110, 0.14);
  --radius: 16px;
  --maxw: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: #2b3a4a;
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  zoom: 0.95;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(42, 139, 201, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(42, 139, 201, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 2px solid var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--blue-primary);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand .brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: 0.5px;
}

.brand .brand-text span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gray-soft);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 9px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: #34495e;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(42, 139, 201, 0.1);
  color: var(--blue-primary);
}

.nav-links a.active {
  background: var(--blue-primary);
  color: #fff;
}

.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--blue-primary);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #16456e 0%, #1b6ca8 55%, #2a8bc9 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../Image/Image-1.png");
  background-size: cover;
  background-position: center right;
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  max-width: 640px;
  color: #fff;
}

.hero .eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Section base ---------- */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .tag {
  display: inline-block;
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--blue-dark);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray-text);
  font-size: 17px;
}

/* ---------- Feature / Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42, 139, 201, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card .icon2 {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan));
  color: #fff;
}

.card h3 {
  font-size: 20px;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-text);
  font-size: 15px;
}

/* ---------- Stats band ---------- */
.stats {
  background: linear-gradient(135deg, #16456e, #1b6ca8);
  color: #fff;
}

.stats .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat .num {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat .num span {
  color: var(--cyan);
}

.stat .label {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- About split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
  background: linear-gradient(135deg, #8fc0d4, #2a8bc9);
}

.about-media .badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-dark);
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
}

.about-media .badge small {
  display: block;
  font-size: 12px;
  color: var(--gray-text);
  font-weight: 600;
}

.about-text h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--blue-dark);
  margin-bottom: 18px;
  line-height: 1.2;
}

.about-text p {
  color: var(--gray-text);
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: #34495e;
}

.check-list .tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doctor {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doctor:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.doctor .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
}

.doctor h3 {
  color: var(--blue-dark);
  font-size: 19px;
}

.doctor .role {
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.doctor p {
  color: var(--gray-text);
  font-size: 14px;
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testi {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue-primary);
}

.testi .stars {
  color: #f5b301;
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testi p {
  color: #34495e;
  font-style: italic;
  margin-bottom: 18px;
}

.testi .who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi .who .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testi .who b {
  color: var(--blue-dark);
  font-size: 15px;
}

.testi .who small {
  display: block;
  color: var(--gray-text);
  font-size: 13px;
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, #2a8bc9, #35a8c4);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  border-left: 5px solid var(--blue-primary);
}

.info-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.info-card h4 {
  color: var(--blue-dark);
  font-size: 16px;
  margin-bottom: 5px;
}

.info-card p {
  color: var(--gray-text);
  font-size: 15px;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 38px;
}

.contact-form h3 {
  color: var(--blue-dark);
  font-size: 22px;
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #dbe7f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #2b3a4a;
  background: #fbfdfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(42, 139, 201, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray-text);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer .f-brand img {
  height: 52px;
  margin-bottom: 16px;
}

.footer p {
  font-size: 14px;
  line-height: 1.7;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 11px;
  font-size: 14px;
}

.footer ul a:hover {
  color: var(--cyan);
}

.footer .socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer .socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer .socials a:hover {
  background: var(--blue-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3,
  .team-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hamburger {
    display: flex;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px 28px;
    box-shadow: var(--shadow-md);
    gap: 6px;
  }
  .nav-links.open a {
    display: block;
    width: 100%;
    text-align: center;
  }
  .grid-3,
  .team-grid,
  .testi-grid,
  .stats .grid-4,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 560px;
  }
  .section {
    padding: 64px 0;
  }
  .contact-form {
    padding: 5px;
  }
}
