/*
Theme Name:   POM Dental Child
Theme URI:    https://www.pomdental.com/
Description:  Divi 5 Child Theme for Peace of Mind Dental Studio – replicates pomdental.com design
Author:       Your Name
Author URI:   https://yourwebsite.com
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         child-theme, divi, dental
Text Domain:  pomdental-child
*/

/* ============================================================
   CSS CUSTOM PROPERTIES – Brand Colors & Fonts
   ============================================================ */
:root {
  /* Primary Palette */
  --pom-teal:        #2a6b6b;   /* deep teal – primary brand color */
  --pom-teal-dark:   #1e4f4f;   /* darker teal for hover states */
  --pom-teal-light:  #3d8f8f;   /* lighter teal for accents */
  --pom-teal-bg:     #eaf4f4;   /* very light teal for section backgrounds */

  /* Neutrals */
  --pom-white:       #ffffff;
  --pom-off-white:   #f8f8f6;
  --pom-light-gray:  #f2f2f0;
  --pom-mid-gray:    #888888;
  --pom-dark-gray:   #444444;
  --pom-black:       #1a1a1a;

  /* Typography */
  --pom-font-heading: 'Playfair Display', Georgia, serif;
  --pom-font-body:    'Lato', Helvetica, Arial, sans-serif;
  --pom-font-accent:  'Lato', Helvetica, Arial, sans-serif;

  /* Spacing */
  --pom-section-pad:  80px;
  --pom-radius:       4px;
  --pom-radius-lg:    8px;

  /* Transitions */
  --pom-transition:   all 0.3s ease;
}

/* ============================================================
   GLOBAL RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pom-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--pom-dark-gray);
  background-color: var(--pom-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.et_pb_module h1,
.et_pb_module h2,
.et_pb_module h3,
.et_pb_module h4 {
  font-family: var(--pom-font-heading);
  color: var(--pom-black);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  font-family: var(--pom-font-body);
  color: var(--pom-dark-gray);
  line-height: 1.8;
  margin-bottom: 1.2em;
}

a {
  color: var(--pom-teal);
  text-decoration: none;
  transition: var(--pom-transition);
}

a:hover {
  color: var(--pom-teal-dark);
}

/* ============================================================
   TOP BAR (Announcement Bar above header)
   ============================================================ */
#top-header,
.et-fixed-header #top-header {
  background-color: var(--pom-teal-dark);
  color: var(--pom-white);
  font-size: 13px;
  letter-spacing: 0.05em;
}

#top-header a {
  color: var(--pom-white);
}

#top-header a:hover {
  color: rgba(255,255,255,0.75);
}

.et_pb_top_inside_divider,
#et-top-navigation .et-top-navigation-bar {
  font-family: var(--pom-font-body);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#main-header,
#main-header.et-fixed-header {
  background-color: var(--pom-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: var(--pom-transition);
}

/* Logo */
#logo {
  max-height: 60px;
}

/* Primary Nav links */
#et-top-navigation nav > ul > li > a {
  font-family: var(--pom-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pom-dark-gray);
  padding: 28px 14px;
  transition: var(--pom-transition);
}

#et-top-navigation nav > ul > li > a:hover,
#et-top-navigation nav > ul > li.current-menu-item > a {
  color: var(--pom-teal);
}

/* Dropdown menus */
#et-top-navigation nav > ul ul {
  background-color: var(--pom-white);
  border-top: 2px solid var(--pom-teal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

#et-top-navigation nav > ul ul a {
  font-size: 13px;
  color: var(--pom-dark-gray);
  padding: 10px 20px;
  border-bottom: 1px solid var(--pom-light-gray);
}

#et-top-navigation nav > ul ul a:hover {
  color: var(--pom-teal);
  background-color: var(--pom-teal-bg);
}

/* Header CTA Buttons */
.et_header_style_left #et-top-navigation .et-top-nav-buttons a,
.et_header_style_centered #et-top-navigation .et-top-nav-buttons a {
  background-color: var(--pom-teal);
  color: var(--pom-white) !important;
  padding: 10px 22px;
  border-radius: var(--pom-radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--pom-transition);
}

.et_header_style_left #et-top-navigation .et-top-nav-buttons a:hover,
.et_header_style_centered #et-top-navigation .et-top-nav-buttons a:hover {
  background-color: var(--pom-teal-dark);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.pom-hero,
.et_pb_section.pom-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--pom-teal);
  position: relative;
  overflow: hidden;
}

.pom-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,79,79,0.92) 0%, rgba(42,107,107,0.75) 100%);
  z-index: 1;
}

.pom-hero .et_pb_row {
  position: relative;
  z-index: 2;
}

.pom-hero h1,
.pom-hero .et_pb_text h1 {
  color: var(--pom-white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}

.pom-hero p,
.pom-hero .et_pb_text p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.et_pb_button,
a.et_pb_button {
  font-family: var(--pom-font-body) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: var(--pom-radius) !important;
  padding: 14px 30px !important;
  transition: var(--pom-transition) !important;
  border-width: 2px !important;
}

/* Primary button */
.et_pb_button_0,
.et_pb_button.pom-btn-primary {
  background-color: var(--pom-teal) !important;
  border-color: var(--pom-teal) !important;
  color: var(--pom-white) !important;
}

.et_pb_button_0:hover,
.et_pb_button.pom-btn-primary:hover {
  background-color: var(--pom-teal-dark) !important;
  border-color: var(--pom-teal-dark) !important;
}

/* Outline button */
.et_pb_button.pom-btn-outline {
  background-color: transparent !important;
  border-color: var(--pom-teal) !important;
  color: var(--pom-teal) !important;
}

.et_pb_button.pom-btn-outline:hover {
  background-color: var(--pom-teal) !important;
  color: var(--pom-white) !important;
}

/* White outline button (on dark backgrounds) */
.et_pb_button.pom-btn-white-outline {
  background-color: transparent !important;
  border-color: var(--pom-white) !important;
  color: var(--pom-white) !important;
}

.et_pb_button.pom-btn-white-outline:hover {
  background-color: var(--pom-white) !important;
  color: var(--pom-teal) !important;
}

/* ============================================================
   INFO BLOCKS (Address / Hours / Contact icons)
   ============================================================ */
.pom-info-block,
.et_pb_section.pom-info-strip {
  background-color: var(--pom-off-white);
  padding: 40px 0;
  border-top: 3px solid var(--pom-teal);
}

.pom-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pom-info-icon {
  width: 44px;
  height: 44px;
  background-color: var(--pom-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pom-white);
  font-size: 18px;
  flex-shrink: 0;
}

.pom-info-text h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pom-teal);
  margin-bottom: 4px;
}

.pom-info-text p {
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================================
   ABOUT / CONTENT SECTIONS
   ============================================================ */
.et_pb_section {
  padding: var(--pom-section-pad) 0;
}

.pom-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pom-teal);
  margin-bottom: 12px;
}

/* Divider element */
.pom-divider {
  width: 50px;
  height: 3px;
  background-color: var(--pom-teal);
  margin: 16px 0 24px;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.et_pb_blurb.pom-service-card,
.pom-service-card {
  background: var(--pom-white);
  border: 1px solid #e8e8e8;
  border-radius: var(--pom-radius-lg);
  padding: 32px 28px;
  transition: var(--pom-transition);
  position: relative;
  overflow: hidden;
}

.pom-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--pom-teal);
  transform: scaleX(0);
  transition: var(--pom-transition);
  transform-origin: left;
}

.pom-service-card:hover {
  box-shadow: 0 12px 40px rgba(42,107,107,0.12);
  transform: translateY(-3px);
  border-color: var(--pom-teal-light);
}

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

.pom-service-card .et_pb_main_blurb_image,
.pom-service-card .et_pb_blurb_container .et_pb_blurb_image {
  margin-bottom: 20px;
}

.pom-service-card h4,
.pom-service-card .et_pb_module_header {
  color: var(--pom-teal-dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

/* ============================================================
   STATS / CALLOUT SECTION
   ============================================================ */
.pom-stat-section,
.et_pb_section.pom-stat-section {
  background-color: var(--pom-teal);
  color: var(--pom-white);
  padding: 60px 0;
}

.pom-stat-section h2,
.pom-stat-section .et_pb_text h2 {
  color: var(--pom-white);
}

.pom-stat-section p,
.pom-stat-section .et_pb_text p {
  color: rgba(255,255,255,0.85);
}

.pom-stat-number {
  font-family: var(--pom-font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--pom-white);
  line-height: 1;
  display: block;
}

.pom-stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-top: 6px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.et_pb_accordion .et_pb_toggle {
  border-bottom: 1px solid var(--pom-light-gray);
  border-top: none;
  border-left: none;
  border-right: none;
}

.et_pb_accordion .et_pb_toggle_title {
  font-family: var(--pom-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pom-dark-gray);
  padding: 20px 0;
}

.et_pb_accordion .et_pb_toggle.et_pb_toggle_open .et_pb_toggle_title {
  color: var(--pom-teal);
}

.et_pb_accordion .et_pb_toggle_title::before {
  color: var(--pom-teal) !important;
  font-size: 1.2rem;
}

.et_pb_accordion .et_pb_toggle_content {
  padding: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--pom-mid-gray);
}

/* ============================================================
   TESTIMONIALS / SLIDER
   ============================================================ */
.et_pb_testimonial {
  background: var(--pom-off-white);
  border-left: 4px solid var(--pom-teal);
  border-radius: var(--pom-radius-lg);
  padding: 36px 40px;
}

.et_pb_testimonial_description p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--pom-dark-gray);
}

.et_pb_testimonial_author {
  color: var(--pom-teal);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Stars */
.pom-stars {
  color: #f0a500;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ============================================================
   GOOGLE MAP SECTION
   ============================================================ */
.et_pb_map_container iframe {
  border-radius: var(--pom-radius-lg);
  filter: saturate(0.8) contrast(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer-widgets {
  background-color: #1a3333;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 40px;
}

#footer-widgets h4,
#footer-widgets .footer-widget h4,
#footer-widgets .widgettitle {
  font-family: var(--pom-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pom-white);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

#footer-widgets a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 2;
  display: block;
  transition: var(--pom-transition);
}

#footer-widgets a:hover {
  color: var(--pom-white);
  padding-left: 4px;
}

#footer-widgets p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.8;
}

#et-footer-nav,
#footer-bottom {
  background-color: #101f1f;
  border-top: 1px solid rgba(255,255,255,0.08);
}

#footer-bottom .container {
  padding: 20px 0;
}

#footer-bottom p,
#footer-info {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
}

#footer-bottom a {
  color: rgba(255,255,255,0.5);
}

#footer-bottom a:hover {
  color: var(--pom-white);
}

/* Social Icons in Footer */
.et_pb_social_media_follow li a {
  background-color: var(--pom-teal) !important;
  border-radius: 50% !important;
  transition: var(--pom-transition) !important;
}

.et_pb_social_media_follow li a:hover {
  background-color: var(--pom-white) !important;
  color: var(--pom-teal) !important;
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
#et_mobile_nav_menu .mobile_menu_bar::before {
  color: var(--pom-teal);
}

#et_mobile_nav_menu .et_mobile_menu {
  background-color: var(--pom-white);
  border-top: 2px solid var(--pom-teal);
}

#et_mobile_nav_menu .et_mobile_menu a {
  color: var(--pom-dark-gray);
  border-bottom: 1px solid var(--pom-light-gray);
}

#et_mobile_nav_menu .et_mobile_menu a:hover {
  color: var(--pom-teal);
  background-color: var(--pom-teal-bg);
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
#et-footer-nav .et_pb_scroll_top {
  background-color: var(--pom-teal);
  border-radius: 50%;
}

#et-footer-nav .et_pb_scroll_top:hover {
  background-color: var(--pom-teal-dark);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.pom-text-center { text-align: center; }
.pom-text-teal   { color: var(--pom-teal) !important; }
.pom-bg-teal     { background-color: var(--pom-teal) !important; }
.pom-bg-light    { background-color: var(--pom-off-white) !important; }

/* Section subheading label */
.pom-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pom-teal);
  background-color: var(--pom-teal-bg);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 980px) {
  :root {
    --pom-section-pad: 56px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .et_pb_section {
    padding: var(--pom-section-pad) 0;
  }
}

@media (max-width: 767px) {
  :root {
    --pom-section-pad: 40px;
  }

  .et_pb_testimonial {
    padding: 24px 20px;
  }
}
