/*
 Theme Name:   Calculus Child (Orange)
 Description:  A child theme for the Kadence theme, with a custom landing page.
 Template:     kadence
 Version:      1.7.0
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* === COLOR & FONT VARIABLES === */
:root {
  --brand-color: #FF5733;
  --brand-color-dark: #D94A28;
  --brand-color-light: #FF7D5C;
  --dark-footer-bg: #2C2C2C;
  --light-brand-bg: #FFEEEC;
  --background-grey: #f8f9fa;
  --dark-text: #212529;
  --light-text: #555;
  --white: #ffffff;
  --font-family: 'Poppins', 'Helvetica Neue', sans-serif;
}

body.calculus-landing-page-body {
  font-family: var(--font-family);
  color: var(--dark-text);
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

.calculus-landing-page-body .site {
  max-width: 1440px;
  margin: 0 auto;
  background-color: var(--white);
  overflow: hidden;
}

/* === STICKY HEADER FIX === */
#masthead.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* === Prevent overlap from fixed header === */
.site-main {
  padding-top: 180px;
}

/* === HEADER STRUCTURE === */
.calculus-landing-page-body .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.calculus-landing-page-body .header-top-bar {
  background-color: var(--brand-color);
  position: relative;
  color: var(--white);
  padding: 10px 0;
}

.calculus-landing-page-body .header-top-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-color: var(--white);
  border-bottom-left-radius: 100%;
}

/* === Logo Area === */
.calculus-landing-page-body .logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.calculus-landing-page-body .logo-area img {
  width: 80px;
  height: auto;
  max-width: 100%;
}

.calculus-landing-page-body .logo-text {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Navigation === */
.calculus-landing-page-body .top-nav,
.calculus-landing-page-body .main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  z-index: 2;
}

.calculus-landing-page-body .top-nav a {
  color: var(--dark-text);
  text-decoration: none;
  font-weight: 600;
}

.calculus-landing-page-body .main-nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 600;
}

/* === Ticker === */
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.header-main-bar .logo-text {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 95s linear infinite; /* slower scroll */
  will-change: transform;
  font-weight: 700;
  font-size: 1.1rem;
  color: #4b2e2e; /* deep brown */
}


.ticker-wrap:hover .logo-text {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* === Hero Section === */
.hero-section {
  display: flex;
  align-items: center;
  padding: 60px 20px;
  background-color: var(--light-brand-bg);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  background-color: var(--brand-color);
  border-radius: 50%;
  opacity: 0.1;
}

.hero-section::before {
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
}

.hero-section::after {
  top: 50%;
  right: 25%;
  width: 300px;
  height: 300px;
  transform: translateY(-50%);
}

.hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-image {
  flex: 0 0 45%;
  max-width: 45%;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* === Buttons === */
.button-outline {
  background-color: transparent;
  color: var(--brand-color-dark);
  border: 2px solid var(--brand-color);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button-outline:hover {
  background-color: var(--brand-color-light);
  color: var(--white);
}

.button-solid {
  background-color: var(--brand-color);
  color: var(--white);
  border: 2px solid var(--brand-color);
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button-solid:hover {
  background-color: var(--brand-color-dark);
  border-color: var(--brand-color-dark);
}

.button-solid.large {
  padding: 12px 30px;
  font-size: 1rem;
}

/* === Footer === */
.site-footer {
  background-color: var(--dark-footer-bg);
  color: #a9a9a9;
  padding: 60px 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-widget .logo-text {
  color: var(--white);
  font-weight: 700;
}

.footer-widget h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget a {
  color: #a9a9a9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-widget a:hover {
  color: var(--brand-color);
}

.footer-about {
  margin-top: 15px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: var(--white);
  background-color: #444;
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--brand-color);
}

.site-info {
  text-align: center;
  padding: 25px 0;
  margin-top: 40px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
}

/* === Responsive Fixes === */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-image {
    flex: 0 0 100%;
    max-width: 80%;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .logo-area {
    justify-content: flex-start !important;
  }
}

@media (max-width: 768px) {
  /* ✅ Hide top logo text only (not the ticker text) */
  .calculus-landing-page-body .header-top-bar .logo-text {
    display: none !important;
  }

  /* ✅ Enlarge logo image */
  .calculus-landing-page-body .logo-area img {
    width: 100px !important;
  }

  /* ✅ Shrink header button */
  .calculus-landing-page-body .top-nav a.button-outline {
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-text);
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .main-nav.show {
    display: flex;
  }

  .top-nav a:not(.button-outline),
  .main-nav a:not(.button-solid) {
    display: none;
  }
}
