/*
Theme Name: Spixworth Dental Child
Theme URI: https://spixworthdental.co.uk/
Description: Child theme for Spixworth Dental Practice — WordPress + Astra + Elementor. Ships brand colours, typography, and booking CTA styling.
Author: Anglia Computer Solutions
Author URI: https://angliacomputersolutions.co.uk/
Template: astra
Version: 0.1.0
Text Domain: spixworth-dental-child
*/

/* ================================================================
   Brand tokens
   ================================================================
   Palette derived from the Spixworth logo — pink→purple→blue gradient
   against a deep navy wordmark.
*/

:root {
  --spx-pink:    #e9189d;
  --spx-purple:  #7b2cbf;
  --spx-blue:    #3a5bff;
  --spx-navy:    #0b1a4a;
  --spx-cream:   #fdf8f2;
  --spx-slate:   #485275;
  --spx-mist:    #f4f5fa;

  --spx-gradient: linear-gradient(135deg, var(--spx-pink) 0%, var(--spx-purple) 50%, var(--spx-blue) 100%);

  --spx-font-heading: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
  --spx-font-body:    'Inter',   'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  font-family: var(--spx-font-body);
  color: var(--spx-navy);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--spx-font-heading);
  color: var(--spx-navy);
  letter-spacing: -0.01em;
}

/* ================================================================
   Header / navigation
   ================================================================
*/

.site-header .ast-site-identity img.custom-logo {
  max-height: 64px;
  width: auto;
}

.main-header-bar {
  box-shadow: 0 2px 12px rgba(11, 26, 74, 0.06);
}

.site-header .main-navigation a {
  font-family: var(--spx-font-heading);
  font-weight: 600;
  color: var(--spx-navy);
}

.site-header .main-navigation a:hover,
.site-header .main-navigation .current-menu-item > a {
  color: var(--spx-purple);
}

.site-header .header-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--spx-mist);
  color: var(--spx-navy);
  font-weight: 600;
  font-family: var(--spx-font-heading);
}

.site-header .header-contact-phone::before {
  content: "📞";
}

/* ================================================================
   Book Online CTA
   ================================================================
*/

.spx-book-button,
a.spx-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--spx-font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  background: var(--spx-gradient);
  background-size: 200% 200%;
  background-position: 0% 50%;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(123, 44, 191, 0.22);
  transition: background-position 0.5s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.spx-book-button:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(123, 44, 191, 0.28);
}

.spx-book-button::after {
  content: "→";
  font-weight: 400;
}

/* Ghost variant for dark/hero backgrounds */
.spx-book-button--ghost {
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
}

.spx-book-button--ghost:hover {
  background: #fff;
  color: var(--spx-navy) !important;
}

/* ================================================================
   Hero photo (homepage + about page top)
   ================================================================
*/

figure.spx-hero-photo,
figure.spx-about-hero {
  margin: 0 0 2rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(11, 26, 74, 0.12);
  background: var(--spx-mist);
}

figure.spx-hero-photo img,
figure.spx-about-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}

/* ================================================================
   Hero (gradient — used for splash sections)
   ================================================================
*/

.spx-hero {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  background: var(--spx-gradient);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.spx-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.spx-hero p.spx-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 2rem;
}

.spx-hero .spx-hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ================================================================
   Service cards (home page + category pages)
   ================================================================
*/

.spx-service-section {
  padding: 4rem 1.5rem;
}

.spx-service-section:nth-child(even) {
  background: var(--spx-mist);
}

.spx-service-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.spx-service-section p.spx-intro {
  max-width: 60ch;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--spx-slate);
}

.spx-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.spx-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(11, 26, 74, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--spx-navy);
}

.spx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 26, 74, 0.10);
}

.spx-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--spx-mist);
}

.spx-card .spx-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.spx-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

/* ================================================================
   Footer
   ================================================================
*/

.site-footer {
  background: var(--spx-navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 1.5rem 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #fff;
  opacity: 0.85;
}

.site-footer a:hover {
  opacity: 1;
  color: #fff;
}

.spx-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.site-footer .spx-footer-meta {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ================================================================
   Placeholder ribbon (visible dev aid for [[BRACKETED]] content)
   — Remove the `.spx-placeholder-highlight` class in production
   ================================================================
*/

.spx-placeholder-highlight {
  background: #fff3b0;
  color: #7a5c00;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.95em;
}

/* ================================================================
   Meet Our Team — team member cards
   ================================================================
*/

.spx-team-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.spx-team-intro p {
  color: var(--spx-slate);
  font-size: 1.1rem;
  line-height: 1.7;
}

.spx-team-section {
  margin-bottom: 3.5rem;
}

.spx-team-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid transparent;
  border-image: var(--spx-gradient) 1;
  display: inline-block;
}

.spx-team-section > p.spx-section-desc {
  color: var(--spx-slate);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.spx-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
}

.spx-team-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(11, 26, 74, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spx-team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 26, 74, 0.10);
}

.spx-team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--spx-mist);
}

.spx-team-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.spx-team-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--spx-navy);
}

.spx-team-card-body .spx-team-role {
  display: block;
  font-size: 0.9rem;
  color: var(--spx-purple);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.spx-team-card-body .spx-team-gdc {
  display: block;
  font-size: 0.8rem;
  color: var(--spx-slate);
  font-style: italic;
}

/* Support team — smaller cards */
.spx-team-grid--support {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.spx-team-grid--support .spx-team-card img {
  aspect-ratio: 1 / 1;
  object-position: top center;
}

.spx-team-grid--support .spx-team-card-body {
  padding: 0.75rem 1rem 1rem;
  text-align: center;
}

.spx-team-grid--support .spx-team-card-body h3 {
  font-size: 0.95rem;
}

.spx-team-grid--support .spx-team-card-body .spx-team-role {
  font-size: 0.8rem;
}

/* No-photo placeholder */
.spx-team-card .spx-no-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--spx-mist);
  color: var(--spx-slate);
  font-size: 3rem;
}

.spx-team-grid--support .spx-team-card .spx-no-photo {
  aspect-ratio: 1 / 1;
}

@media (max-width: 600px) {
  .spx-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .spx-team-grid--support {
    grid-template-columns: repeat(2, 1fr);
  }
}
