/* ============================================================
   GoDental.au — Styles
   Brand color: #2563eb (blue)
   CTA color:   #16a34a (green)
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background: #f1f5f9;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Header --- */
.site-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.nav-cta i {
  margin-right: 0.3rem;
  font-size: 0.78rem;
}

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 0.3rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: border-color 0.15s;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Section headings --- */
.section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  padding-top: 2.5rem;
  margin-bottom: -0.5rem;
  color: #1e293b;
  letter-spacing: -0.5px;
}

/* --- State Grid (Homepage) --- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem 0 2.5rem;
}

.state-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.state-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  opacity: 0;
  transition: opacity 0.25s;
}

.state-card:hover {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
  text-decoration: none;
  border-color: #bfdbfe;
}

.state-card:hover::before {
  opacity: 1;
}

.state-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.state-card .state-abbr {
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.state-card p {
  color: #64748b;
  font-size: 0.88rem;
}

/* --- Homepage CTA --- */
.home-cta {
  padding: 0 0 3rem;
}

.home-cta-inner {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.home-cta-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 0.5rem;
}

.home-cta-inner p {
  color: #15803d;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.85rem;
  color: #94a3b8;
  padding: 1.5rem 0 0.75rem;
}

.breadcrumbs a {
  color: #2563eb;
  font-weight: 500;
}

.breadcrumbs span {
  color: #64748b;
  font-weight: 500;
}

/* --- State page --- */
.page-state h1,
.page-about h1,
.page-submit h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.state-intro,
.page-intro {
  color: #64748b;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Practice list (state page) --- */
.practice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 3rem;
}

.practice-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.practice-card:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  border-color: #cbd5e1;
}

.practice-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.practice-card h2 a {
  color: #1e293b;
  transition: color 0.15s;
}

.practice-card h2 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.practice-address {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.practice-card-action {
  flex-shrink: 0;
}

/* --- Tags / Pill badges --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-call {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-call:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
  color: #fff;
}

.btn-website {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-website:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  color: #fff;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-reviews {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.btn-reviews:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  color: #fff;
}

.btn i {
  margin-right: 0.4rem;
}

.btn-block {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
}

/* --- Practice Detail Page --- */
.detail-layout,
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.detail-header {
  margin-bottom: 1.75rem;
}

.detail-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

.detail-section {
  margin-bottom: 2.25rem;
}

.detail-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #1e293b;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.detail-section p {
  color: #475569;
  line-height: 1.8;
}

.services-list,
.highlights-list {
  list-style: none;
  padding-left: 0;
}

.services-list li,
.highlights-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: #475569;
  position: relative;
  line-height: 1.5;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
}

.highlights-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: #16a34a;
  font-weight: 800;
  font-size: 0.9rem;
}

.cross-links {
  list-style: none;
  padding: 0;
}

.cross-links li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.cross-links li:last-child {
  border-bottom: none;
}

/* --- Sidebar --- */
.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
}

.sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.sidebar-address {
  color: #64748b;
  font-size: 0.88rem;
  margin-top: 0.35rem;
  line-height: 1.6;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #475569;
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  font-weight: 500;
}

/* --- Info Banner (Submit page) --- */
.info-banner {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: #1e40af;
  line-height: 1.6;
}

/* --- Form Styles --- */
.listing-form {
  margin-top: 0.5rem;
}

.listing-form fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
}

.listing-form legend {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  padding: 0 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.required {
  color: #dc2626;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

.guidelines li {
  font-size: 0.85rem;
  padding-left: 1rem;
  position: relative;
}

.guidelines li::before {
  content: '\2713';
  position: absolute;
  left: -0.1rem;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.8rem;
}

/* --- Agency Warning --- */
.agency-warning {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: #991b1b;
  line-height: 1.6;
}

.agency-warning i {
  margin-right: 0.3rem;
  color: #dc2626;
}

/* --- Form Tabs --- */
.form-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-tab {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: center;
  font-family: inherit;
}

.form-tab:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

.form-tab.active {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.form-tab i {
  margin-right: 0.4rem;
}

/* --- Premium Listing Offer --- */
.premium-offer {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.premium-offer-header {
  font-size: 1.05rem;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.premium-offer-header i {
  color: #f59e0b;
  margin-right: 0.25rem;
}

.premium-offer p {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.premium-checkbox {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.premium-note {
  font-size: 0.82rem !important;
  color: #a16207 !important;
  margin-bottom: 0 !important;
}

.premium-note i {
  margin-right: 0.2rem;
}

/* --- Sidebar address icon --- */
.sidebar-address i {
  margin-right: 0.3rem;
  color: #2563eb;
}

/* --- Practice Card Thumbnails --- */
.practice-card-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.practice-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.placeholder-sm {
  width: 72px;
  height: 72px;
  border-radius: 10px;
}

.placeholder-lg {
  width: 100%;
  height: 220px;
  border-radius: 14px;
}

.placeholder-initial {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.placeholder-lg .placeholder-initial {
  font-size: 3rem;
}

.placeholder-icon {
  font-size: 0.7rem;
  opacity: 0.5;
}

.placeholder-lg .placeholder-icon {
  font-size: 1.2rem;
}

.practice-img-sm {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.practice-img-lg {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

/* --- Detail Hero Image --- */
.detail-hero-img {
  margin-bottom: 1.75rem;
}

/* --- Map Embed --- */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.map-embed iframe {
  display: block;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #94a3b8;
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.85rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .nav-divider {
    display: none;
  }

  .nav-cta {
    margin-top: 0.25rem;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .state-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.5rem 0 2rem;
  }

  .state-card {
    padding: 1.25rem 1rem;
  }

  .practice-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .practice-card-thumb {
    width: 100%;
    height: auto;
  }

  .placeholder-sm {
    width: 100%;
    height: 120px;
  }

  .practice-img-sm {
    width: 100%;
    height: 120px;
  }

  .placeholder-lg {
    height: 160px;
  }

  .practice-card-action {
    width: 100%;
  }

  .practice-card-action .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .detail-layout,
  .content-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .home-cta-inner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .state-grid {
    grid-template-columns: 1fr;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
