/*
Theme Name: Bublik Dental Child
Theme URI: https://drjanbublik.com
Template: hello-elementor
Author: Dr. Jan Bublik
Description: Child theme for Bublik Dental Implant and Surgical Center
Version: 1.0.0
*/

/* ============================================
   BRAND COLORS & VARIABLES
   ============================================ */
:root {
  --primary:       #1a6b8a;   /* Deep teal - main brand color */
  --primary-dark:  #134f67;   /* Darker teal for hovers */
  --primary-light: #2389b0;   /* Lighter teal for accents */
  --gold:          #c9a84c;   /* Gold accent */
  --gold-light:    #e5c97a;
  --dark:          #1a1f2e;   /* Near-black for text */
  --gray:          #5a6270;
  --gray-light:    #f4f6f8;
  --white:         #ffffff;
  --border:        #e2e8f0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans Pro', 'Open Sans', sans-serif;

  --shadow-sm: 0 2px 8px rgba(26,107,138,0.10);
  --shadow-md: 0 6px 24px rgba(26,107,138,0.15);
  --shadow-lg: 0 12px 48px rgba(26,107,138,0.20);

  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ============================================
   GLOBAL BASE
   ============================================ */
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header,
header.elementor-location-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
}

.header-top-bar a {
  color: var(--gold-light);
}

.site-logo img {
  max-height: 70px;
  width: auto;
}

/* Navigation */
.elementor-nav-menu .elementor-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--dark) !important;
  transition: color var(--transition);
}

.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu .elementor-item.elementor-item-active {
  color: var(--primary) !important;
}

.elementor-nav-menu .elementor-item::after {
  background-color: var(--gold) !important;
  height: 2px;
}

/* CTA button in header */
.header-cta-btn,
.elementor-button.header-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 40px !important;
  padding: 10px 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  transition: all var(--transition) !important;
  border: 2px solid transparent !important;
}

.header-cta-btn:hover,
.elementor-button.header-cta:hover {
  background: var(--white) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .elementor-heading-title {
  color: var(--white) !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-section .elementor-widget-text-editor p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 40px;
  margin-bottom: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.elementor-button {
  border-radius: 40px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  transition: all var(--transition) !important;
}

.elementor-button-primary,
.btn-primary {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary) !important;
}

.elementor-button-primary:hover,
.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.elementor-button-gold,
.btn-gold {
  background: var(--gold) !important;
  color: var(--dark) !important;
  border: 2px solid var(--gold) !important;
}

.elementor-button-gold:hover,
.btn-gold:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: var(--white) !important;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 0.5em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  margin: 16px 0 32px;
}

.bg-light  { background: var(--gray-light) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-dark    { background: var(--dark) !important; }

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 28px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: #cde8f5;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--primary-light);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 24px;
  line-height: 1;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ============================================
   TRUST BADGES / CREDENTIALS
   ============================================ */
.credentials-bar {
  background: var(--primary-dark);
  padding: 20px 0;
}

.credential-item {
  text-align: center;
  color: var(--white);
  padding: 12px;
}

.credential-item .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.credential-item .label {
  font-size: 0.85rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   LOCATION PAGE SPECIFIC
   ============================================ */
.location-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  color: var(--white);
}

.location-hero h1 {
  color: var(--white) !important;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.location-hero .location-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.why-choose-box {
  background: var(--gray-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin: 32px 0;
}

/* ============================================
   APPOINTMENT / CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white) !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--dark) !important;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  transition: all var(--transition);
}

.phone-cta:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ============================================
   FOOTER
   ============================================ */
footer.elementor-location-footer,
.site-footer {
  background: var(--dark) !important;
  color: rgba(255,255,255,0.8);
}

.footer-logo img { max-height: 60px; filter: brightness(0) invert(1); }

.footer-heading {
  color: var(--gold) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 40px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-section { min-height: 400px; }
  .service-card { padding: 24px 20px; }
  .cta-section { padding: 50px 20px; }
}
