/* ============================================================
   Dr Prime Pty Ltd — site-wide stylesheet
   Industry: Healthcare Business Services (WA-based)
   ============================================================ */

/* ---- Colour palette ---- */
:root {
  --primary:        #004e5c;   /* deep teal — trust, healthcare */
  --primary-dark:   #00303d;
  --accent:         #00a0b0;   /* bright teal — highlights */
  --accent-warm:    #f9a825;   /* gold accent — warmth, care */
  --bg:             #f8fbfc;
  --bg-light:       #ffffff;
  --bg-card:        #ffffff;
  --text-dark:      #1b262f;
  --text-medium:    #37474f;
  --text-light:     #607d8b;
  --border:         #cfd8dc;
  --border-dark:    #b0bec5;
  --shadow:         0 2px 8px rgba(0, 78, 92, 0.08);
  --shadow-lg:      0 8px 24px rgba(0, 78, 92, 0.12);
  --radius:         6px;
  --radius-lg:      12px;
  --transition:     0.2s ease;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
  padding-block: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.navbar .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.navbar .logo .dot { color: var(--accent); }

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar .nav-links a {
  font-weight: 500;
  color: var(--text-medium);
  padding: 0.4rem 0;
  position: relative;
}
.navbar .nav-links a:hover { color: var(--primary-dark); }
.navbar .nav-links a.active {
  color: var(--primary);
}
.navbar .nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.navbar .cta-button {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.navbar .cta-button:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Mobile dropdown */
.navbar .mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
}
.navbar .mobile-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.navbar .mobile-menu .cta-button {
  margin: 0.5rem 1.5rem;
  display: inline-block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding-block: 5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.92;
}
.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-accent {
  background: var(--accent-warm);
  color: var(--bg-light);
}
.btn-accent:hover {
  background: #e69a17;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ============================================================
   CREDENTIALS STRIP
   ============================================================ */
.credentials {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.credentials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}
.credentials li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-medium);
  font-size: 0.95rem;
}
.credentials .check {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   VALUE PROPS
   ============================================================ */
.value-props {
  background: var(--bg);
  padding-block: 4rem 0;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.value-item {
  text-align: center;
}
.value-item .icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}
.value-item h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
}
.about-strip .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about-strip h2 { text-align: left; }
.about-strip .about-text {
  color: var(--text-medium);
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  margin-block: 3rem 0;
}
.cta-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.7rem; }
.cta-strip p { opacity: 0.9; margin-bottom: 1.5rem; }

/* ============================================================
   CONTENT PAGE STYLES
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding-block: 4rem;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-hero p { max-width: 700px; margin-inline: auto; opacity: 0.9; }

.content-block {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.content-block h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.content-block h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.content-block ul, .content-block ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-block li { margin-bottom: 0.4rem; color: var(--text-medium); }
.content-block p { color: var(--text-medium); margin-bottom: 1rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.contact-card .contact-icon { font-size: 1.8rem; margin-bottom: 0.8rem; color: var(--primary); }
.contact-card h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-light); }
.contact-card a { color: var(--accent); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 3rem 0 1.5rem;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #fff;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a {
  color: #cfd8dc;
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer ul li a:hover { color: var(--accent); }
.footer .footer-blurb {
  color: #90a4ae;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer .credentials-small {
  color: #90a4ae;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.footer .copyright {
  text-align: center;
  color: #607d8b;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* ============================================================
   LEGAL PAGE STYLES
   ============================================================ */
.legal-content { max-width: 800px; margin-inline: auto; }
.legal-content h2 {
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.legal-content h3 {
  color: var(--primary);
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
}
.legal-content p { color: var(--text-medium); margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin-bottom: 1rem; }
.legal-content .effective-date {
  color: var(--text-light);
  font-size: 0.88rem;
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .navbar .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .navbar .mobile-menu.active { display: block; }
  .navbar .mobile-menu { display: block; }
  .about-strip .content { grid-template-columns: 1fr; text-align: center; }
  .about-strip h2 { text-align: center; }
  .hero .cta-group { flex-direction: column; align-items: center; }
  .container { padding-block: 2rem; }
}
