/* ==========================================================================
   The Podiatrists of Mona Vale - Homepage Styles
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #2fb8bd;
  --color-primary-alt: #27b5bb;
  --color-body-text: #666666;
  --color-footer-bg: #666666;
  --color-footer-text: #ffffff;
  --color-about-bg: #fff2e9;
  --color-rebecca-bg: #f7f9fc;
  --color-white: #ffffff;
  --color-black: #000000;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

/* ---------- Skip to Content ---------- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: #2fb8bd;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-body-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-alt);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  line-height: 1.4;
  color: var(--color-body-text);
}

h1 { font-size: 32px; }
h2 { font-size: 27px; }
h3 { font-size: 23px; }
h4 { font-size: 19px; }
h5 { font-size: 16px; }
h6 { font-size: 15px; }


/* ==========================================================================
   TOP HEADER BAR
   ========================================================================== */
.top-header-bar {
  background-color: var(--color-primary);
  padding: 8px 0;
}

.top-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-header-phone,
.top-header-email {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.top-header-phone:hover,
.top-header-email:hover {
  color: var(--color-white);
  opacity: 0.85;
}

.top-header-phone {
  text-decoration: none;
}


/* ==========================================================================
   MAIN HEADER
   ========================================================================== */
.main-header {
  background-color: var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-block;
  flex-shrink: 0;
}

.logo-img {
  width: 140px;
  height: 65px;
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu li {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-body-text);
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-body-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger open state */
.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  padding: 0 0 3px 0;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  max-height: 700px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.slide-bg.parallax {
  background-attachment: fixed;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.24);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 40px;
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  max-width: 900px;
}

.slide-title.text-shadow {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-title-link {
  color: var(--color-white);
}

.slide-title-link:hover {
  color: var(--color-white);
  opacity: 0.9;
}

.slide-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: 2px solid var(--color-white);
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.slide-btn:hover {
  background-color: var(--color-primary-alt);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  border: none;
  font-size: 24px;
  padding: 16px 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  line-height: 1;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.slider-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
  background-color: var(--color-white);
}


/* ==========================================================================
   SERVICE BOXES SECTION
   ========================================================================== */
.service-boxes-section {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}

.service-boxes-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.service-boxes-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-box {
  flex: 1;
  min-width: 250px;
  max-width: 360px;
  text-align: center;
  padding: 30px 20px;
  /* Animation initial state */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px auto;
}

.service-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}

.service-items {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-body-text);
  line-height: 2em;
}


/* ==========================================================================
   ABOUT US / OUR SERVICES SECTION
   ========================================================================== */
.about-services-section {
  position: relative;
  background-color: var(--color-white);
}

/* SVG Curve Divider */
.curve-divider {
  position: relative;
  margin-top: -1px;
  z-index: 2;
}

.curve-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* About/Services Row - no gutters, equal height columns */
.about-services-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.about-column {
  flex: 1;
  min-width: 50%;
  background-color: var(--color-about-bg);
}

.about-column-inner {
  padding: 80px 4%;
}

.about-img {
  width: 100%;
  margin-bottom: 20px;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 27px;
  margin-bottom: 16px;
  color: var(--color-body-text);
}

.section-heading.white {
  color: var(--color-white);
}

.about-text {
  font-size: 16px;
  line-height: 2em;
  text-align: left;
  margin-bottom: 8px;
}

.services-column {
  flex: 1;
  min-width: 50%;
  background-color: var(--color-primary);
}

.services-column-inner {
  padding: 80px 4%;
}

.services-img {
  width: 100%;
  margin-bottom: 20px;
  background-color: var(--color-primary);
}

.services-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-white);
  font-size: 16px;
  line-height: 2em;
  text-align: left;
}

.services-list li {
  margin-bottom: 2px;
}

/* Slide-in animation states */
.et-animated {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.et-animated.slide-in-left {
  transform: translateX(-50px);
}

.et-animated.slide-in-right {
  transform: translateX(50px);
}

.et-animated.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* For service boxes that use translateY */
.et-animated.visible.slide-in-left,
.et-animated.visible.slide-in-right {
  transform: translateX(0);
}


/* ==========================================================================
   REBECCA MALCOLM SECTION
   ========================================================================== */
.rebecca-section {
  padding-top: 64px;
  background-color: var(--color-white);
}

.rebecca-row {
  max-width: 80%;
  margin: 0 auto;
  padding: 100px 0 48px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.rebecca-image-col {
  flex: 0 0 25%;
  max-width: 25%;
}

.rebecca-img {
  width: 100%;
  margin-top: -60px;
  display: block;
}

.rebecca-text-col {
  flex: 0 0 75%;
  max-width: 75%;
  background-color: var(--color-rebecca-bg);
  padding: 40px 60px;
}

.rebecca-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.4em;
  color: var(--color-body-text);
  margin-bottom: 8px;
}

.rebecca-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-primary);
  line-height: 2em;
  margin-bottom: 16px;
}

.rebecca-text {
  font-size: 16px;
  line-height: 2em;
  margin-bottom: 12px;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--color-footer-bg);
  padding-top: 40px;
}

.footer-widgets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-widget {
  flex: 1;
  min-width: 250px;
}

.footer-widget-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.footer-widget-text {
  color: var(--color-footer-text);
  font-size: 14px;
  line-height: 2em;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 2px;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--color-footer-text);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--color-footer-text);
  text-decoration: underline;
}

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


/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Tablet - below 980px */
@media (max-width: 980px) {

  /* Mobile menu toggle visible */
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 14px 24px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
  }

  /* Mobile overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
  }

  .mobile-overlay.active {
    display: block;
  }

  /* Slider adjustments */
  .slider-wrapper {
    height: 50vh;
    min-height: 300px;
  }

  .slide-title {
    font-size: 36px;
  }

  /* About/Services columns */
  .about-services-row {
    flex-direction: column;
  }

  .about-column,
  .services-column {
    min-width: 100%;
  }

  .about-column-inner,
  .services-column-inner {
    padding: 60px 10%;
  }

  /* Rebecca Malcolm section */
  .rebecca-row {
    max-width: 90%;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 40px 0;
  }

  .rebecca-image-col {
    flex: 0 0 60%;
    max-width: 60%;
    margin-bottom: 20px;
  }

  .rebecca-img {
    margin-top: 0;
  }

  .rebecca-text-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 30px 40px;
  }

  .rebecca-name {
    font-size: 32px;
  }

  /* Footer */
  .footer-widgets {
    flex-direction: column;
  }
}

/* Mobile - below 768px */
@media (max-width: 768px) {

  .top-header-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .top-header-phone,
  .top-header-email {
    font-size: 14px;
  }

  .slider-wrapper {
    height: 45vh;
    min-height: 280px;
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .slider-arrow {
    font-size: 18px;
    padding: 12px 10px;
  }

  /* Service boxes stack */
  .service-boxes-inner {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    max-width: 100%;
    min-width: unset;
  }

  /* About/Services */
  .about-column-inner,
  .services-column-inner {
    padding: 40px 6%;
  }

  .section-heading {
    font-size: 24px;
  }

  /* Rebecca section */
  .rebecca-row {
    max-width: 95%;
    padding: 40px 0 30px 0;
  }

  .rebecca-image-col {
    flex: 0 0 80%;
    max-width: 80%;
  }

  .rebecca-text-col {
    padding: 24px 20px;
  }

  .rebecca-name {
    font-size: 26px;
  }

  .rebecca-title {
    font-size: 14px;
  }

  .rebecca-text {
    font-size: 14px;
  }
}

/* Small mobile - below 480px */
@media (max-width: 480px) {

  .slide-title {
    font-size: 22px;
  }

  .slider-wrapper {
    height: 40vh;
    min-height: 240px;
  }

  .rebecca-image-col {
    flex: 0 0 90%;
    max-width: 90%;
  }
}

/* Disable parallax on mobile / touch devices */
@media (max-width: 980px) {
  .slide-bg.parallax,
  .service-boxes-bg {
    background-attachment: scroll;
  }
}
