/*
 * Global Stylesheet for TheModernPM Lead Generating Website
 *
 * This file defines the overall look and feel of the website. The color
 * palette is inspired by modern property management brands and uses a
 * mix of dark teal, sea green and a warm amber accent to evoke
 * professionalism and warmth. Cards and buttons have gentle
 * rounded corners and subtle shadows to provide depth without
 * overwhelming the eye. Typographic hierarchy is maintained
 * throughout using varied font sizes and weights. Responsive
 * layouts are implemented with CSS grid and flexbox so that the
 * content remains readable and attractive on mobile, tablet and
 * desktop devices.
 */

/* Color palette variables */
:root {
  --primary-color: #014b5b;   /* dark teal for headers and backgrounds */
  --secondary-color: #0f6e7f; /* medium teal for accents */
  --accent-color: #f5a623;    /* warm amber for calls‑to‑action */
  --light-color: #f7fafb;     /* pale background for large sections */
  --text-color: #1e2a32;      /* dark charcoal for body copy */
  --radius: 8px;
  --transition: 0.2s ease-in-out;
}

/* Base styling */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-color);
}

h1, h2, h3, h4, h5 {
  margin-top: 0;
  color: var(--primary-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  color: #fff;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: #fff;
  font-weight: 600;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--accent-color);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }
  nav.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 1rem;
  background: var(--primary-color);
  color: #fff;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  padding-right: 1rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons a {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.hero-buttons a:hover {
  background: #ffd072;
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  min-width: 280px;
  padding-left: 1rem;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Features grid */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Section headings */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
  text-align: left;
}

.pricing-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.pricing-card li::before {
  content: '\2022';
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.pricing-card a {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}

.pricing-card a:hover {
  background: #ffd072;
}

/* About page */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-img {
  flex: 1;
  min-width: 300px;
}

.about-content {
  flex: 2;
  min-width: 300px;
}

/* Contact & forms */
form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto;
}

form .form-step {
  display: none;
}

form .form-step.active {
  display: block;
}

form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 1rem;
}

form button {
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

form button:hover {
  background: var(--secondary-color);
}

form .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  background: #e5eff1;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  height: 8px;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-color);
  transition: width var(--transition);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #d1e6eb;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}
/* ===== Reviews Ticker (mobile-safe) ===== */
.reviews {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.reviews h2 {
  margin: 0 0 18px;
  font-size: 24px;
  color: #0f172a;
}

.reviews-viewport {
  overflow: hidden;      /* creates the window */
  width: 100%;
  position: relative;
}

.reviews-track {
  display: flex;         /* two inner rows side by side */
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: reviews-marquee 100s linear infinite;  /* <-- speed: bigger = slower */
}

.reviews-track-inner {
  display: flex;
  gap: 16px;
}

.review {
  flex: 0 0 auto;        /* do not shrink */
  min-width: 85vw;       /* big readable cards on phones */
  max-width: 85vw;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  color: #374151;
  line-height: 1.45;
  box-shadow: 0 6px 16px -12px rgba(0,0,0,.25);
  text-align: left;
}

/* Wider cards on tablets/desktop so multiple are visible */
@media (min-width: 768px) {
  .review { min-width: 44vw; max-width: 44vw; }
}
@media (min-width: 1100px) {
  .review { min-width: 32vw; max-width: 32vw; }
}

/* Move the whole two-row track left until Set B aligns with Set A start */
@keyframes reviews-marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); } /* half the track width because we duplicated content */
}

/* Pause on hover (desktop) */
.reviews-viewport:hover .reviews-track { animation-play-state: paused; }

/* Optional: remove if you don't want accessibility to disable motion */
/* @media (prefers-reduced-motion: reduce) { .reviews-track { animation: none; } } */
/* Mobile nav toggle */
.nav-toggle{display:none; cursor:pointer; font-size:24px; background:none; border:0; color:inherit}
@media (max-width: 900px){
  .nav-toggle{display:inline-block}
  header nav{display:none}
  header.nav-open nav{display:block}
  header nav a{display:block; padding:10px 0}
}
/* Keep header above everything so clicks work */
header{z-index:1000}
