/* =========================================================
   TowelsOn – FULL DROP-IN STYLES (Simplified + Fade Quotes)
   ========================================================= */

/* -------------------------
   Base / Reset
-------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; }
body {
  margin: 0;
  background: #0f2b50;
  font-family: Arial, sans-serif;
  color: #cdd9ed;
  overflow-x: hidden; /* prevent right-edge scroll on mobile */
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* -------------------------
   Header / Navigation
-------------------------- */
header {
  background-color: #162447;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.logo img { max-height: 60px; width: auto; }
nav.navigation {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* avoids overflow pushing layout */
}
nav.navigation a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: color 0.3s;
}
nav.navigation a:hover { color: #ffc107; }
nav.navigation .btn {
  background-color: #ffc107;
  color: #0f2b50;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}
nav.navigation .btn:hover { background-color: #ffdb58; }

/* Shared CTA Button */
.btn {
  background-color: #ffc107;
  color: #0f2b50;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, text-decoration-color 0.3s;
}
.btn:hover {
  background-color: #ffdb58;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Make nav CTA consistent and accessible */
nav.navigation a.btn,
nav.navigation a.btn-primary {
  background-color: #ffc107;
  color: #0f2b50 !important;
  border: none;
}
nav.navigation a.btn:hover,
nav.navigation a.btn:focus,
nav.navigation a.btn:focus-visible,
nav.navigation a.btn-primary:hover,
nav.navigation a.btn-primary:focus,
nav.navigation a.btn-primary:focus-visible {
  background-color: #ffdb58 !important;
  color: #0f2b50 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  outline: 2px solid #ffdb58;
  outline-offset: 2px;
}
nav.navigation a.btn:active,
nav.navigation a.btn-primary:active { transform: translateY(1px); }

/* -------------------------
   Hero
-------------------------- */
.hero {
  background-color: #162447;
  color: #fff;
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(145deg, #162447, #1f4068);
  overflow: hidden;
}
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  flex-wrap: nowrap; /* image stays on the right on wide screens */
}
.hero-text { flex: 1 1 48%; max-width: 48%; }
.hero-image { flex: 1 1 52%; max-width: 52%; }
.hero-image img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Stack cleanly on smaller screens */
@media (max-width: 1000px) {
  .hero-content { flex-direction: column; gap: 20px; }
  .hero-text, .hero-image { max-width: 100%; flex: 1 1 auto; }
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}
.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
}
.hero-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}
.hero-text ul li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero-text ul li:before {
  content: "✔️";
  font-size: 1.5rem;
  color: #1ab300;
  margin-right: 10px;
  display: inline-block;
  vertical-align: top;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* -------------------------
   FLOATING QUOTES (FADE ONLY, ONE-LINE, MOBILE-SAFE)
-------------------------- */
/* Reserve space above H1 for the quote line */
/* Replace this */
.hero .hero-text { 
  position: relative; 
  padding-top: calc(1em * 1.25); 
}

/* With this */
.hero .hero-text { 
  position: relative; 
  padding-top: 2.8em;   /* gives more breathing room above H1 */
}
@media (max-width: 700px) {
  .hero .hero-text {
    padding-top: 2.4em; /* smaller extra gap on mobile */
  }
}

/* One-line container anchored above the H1 */
.floating-quotes {
  /* Typography & metrics */
  font-size: 1.2rem;
  line-height: 1.25;                  /* keep in sync with height */
  height: calc(1em * 1.25);           /* exactly one line tall */
  font-weight: 500;
  color: #cdd9ed;

  /* Positioning */
  position: absolute;
  top: -2.8em;        /* raise quotes a bit higher (was 0) */
  left: 0;
  width: 100%;
  padding-left: 60px;                  /* desktop indent */
  pointer-events: none;
  overflow: hidden;                    /* clip anything beyond one line */
  z-index: 2000;
}

/* Each quote fills the line, never wraps, and fades according to the long timeline */
.floating-quotes .quote {
  position: absolute;
  inset: 0;
  opacity: 0;                          /* hidden by default */
  white-space: nowrap;                 /* NEVER wrap on mobile */
  overflow: hidden;                    /* prevent second-line bleed */
  text-overflow: ellipsis;             /* if too long, truncate nicely */
  line-height: inherit;                /* match container line height */
  animation: fade20 140s linear infinite both;
  will-change: opacity;
}

/* 20 × 7s staggered slots */
.floating-quotes .quote:nth-child(1)  { animation-delay:   0s; }
.floating-quotes .quote:nth-child(2)  { animation-delay:   7s; }
.floating-quotes .quote:nth-child(3)  { animation-delay:  14s; }
.floating-quotes .quote:nth-child(4)  { animation-delay:  21s; }
.floating-quotes .quote:nth-child(5)  { animation-delay:  28s; }
.floating-quotes .quote:nth-child(6)  { animation-delay:  35s; }
.floating-quotes .quote:nth-child(7)  { animation-delay:  42s; }
.floating-quotes .quote:nth-child(8)  { animation-delay:  49s; }
.floating-quotes .quote:nth-child(9)  { animation-delay:  56s; }
.floating-quotes .quote:nth-child(10) { animation-delay:  63s; }
.floating-quotes .quote:nth-child(11) { animation-delay:  70s; }
.floating-quotes .quote:nth-child(12) { animation-delay:  77s; }
.floating-quotes .quote:nth-child(13) { animation-delay:  84s; }
.floating-quotes .quote:nth-child(14) { animation-delay:  91s; }
.floating-quotes .quote:nth-child(15) { animation-delay:  98s; }
.floating-quotes .quote:nth-child(16) { animation-delay: 105s; }
.floating-quotes .quote:nth-child(17) { animation-delay: 112s; }
.floating-quotes .quote:nth-child(18) { animation-delay: 119s; }
.floating-quotes .quote:nth-child(19) { animation-delay: 126s; }
.floating-quotes .quote:nth-child(20) { animation-delay: 133s; }
.floating-quotes .quote:nth-child(21) { animation-delay: 140s; }
.floating-quotes .quote:nth-child(22) { animation-delay: 147s; }
.floating-quotes .quote:nth-child(23) { animation-delay: 154s; }
.floating-quotes .quote:nth-child(24) { animation-delay: 161s; }
.floating-quotes .quote:nth-child(25) { animation-delay: 168s; }
.floating-quotes .quote:nth-child(26) { animation-delay: 175s; }
.floating-quotes .quote:nth-child(27) { animation-delay: 182s; }
.floating-quotes .quote:nth-child(28) { animation-delay: 189s; }
.floating-quotes .quote:nth-child(29) { animation-delay: 196s; }
.floating-quotes .quote:nth-child(30) { animation-delay: 203s; }
.floating-quotes .quote:nth-child(31) { animation-delay: 210s; }
.floating-quotes .quote:nth-child(32) { animation-delay: 217s; }


/* Keyframes: 0.5s fade in, 5s hold, 0.5s fade out, 1s blank (of each 7s slot; all scaled over 140s) */
@keyframes fade20 {
  0%        { opacity: 0; }
  0.357%    { opacity: 1; }  /* 0.5s / 140s */
  3.929%    { opacity: 1; }  /* 5.5s / 140s */
  4.286%    { opacity: 0; }  /* 6.0s / 140s */
  100%      { opacity: 0; }
}

/* Mobile: remove indent & slightly reduce size; keep exact one line */
@media (max-width: 700px) {
  .hero .hero-text { padding-top: calc(1em * 1.2); } /* reserve line height (smaller font) */
  .floating-quotes {
    font-size: 1rem;
    line-height: 1.2;
    height: calc(1em * 1.2);
    padding-left: 0;
  }
}

/* Respect reduced-motion: show only the first quote */
@media (prefers-reduced-motion: reduce) {
  .floating-quotes .quote { animation: none; opacity: 0; position: absolute; }
  .floating-quotes .quote:first-child { opacity: 1; position: static; }
}

/* -------------------------
   Features / Pricing Sections
-------------------------- */
.features, .pricing-section {
  background-color: #1f4068;
  padding: 60px 0;
  text-align: center;
}
.features h1, .pricing-section h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: #ffffff;
}
.features h2, .pricing-section h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Playfair Display', serif;
  text-align: center;
}
.features p, .pricing-section p {
  font-size: 2.2rem;
  margin-bottom: 45px;
  color: #ffffff;
}

/* Cards */
.pricing-item, .feature-item {
  background-color: #1a2b52;
  color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 300px;
}
.pricing-item:hover, .feature-item:hover {
  background-color: #1f497d;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.pricing-item h3, .feature-item h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ffffff;
  transition: color 0.3s;
}
.pricing-item:hover h2, .feature-item:hover h2, .feature-item:hover h3 { color: #FFD700; }
.pricing-item p, .feature-item p { font-size: 1.4rem; color: #d1d1d1; }
.pricing-item ul, .feature-item ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  font-size: 1.4rem;
  color: #d1d1d1;
  margin-bottom: 15px;
  text-align: left;
}
.pricing-item ul li, .feature-item ul li { margin-bottom: 12px; }
.pricing-item ul li:before, .feature-item ul li:before {
  content: "✔️";
  color: #00cc66;
  font-size: 1.5rem;
  margin-right: 10px;
  vertical-align: middle;
}

.btn-primary {
  background-color: #ffc107;
  color: #0f2b50;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s, text-decoration-color 0.3s;
  display: inline-block;
  text-align: center;
  border: none;
}
.pricing-item .btn, .feature-item .btn {
  background-color: #ffc107;
  color: #0f2b50;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.4rem;
  display: block;
  text-align: center;
  margin-top: 20px;
  transition: background-color 0.3s, box-shadow 0.3s, text-decoration-color 0.3s;
}
.pricing-item .btn:hover, .feature-item .btn:hover {
  background-color: #ffdb58;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.pricing-item img, .feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s;
}
.pricing-item:hover img, .feature-item:hover img { transform: scale(1.1); }

/* Feature Grid (3 → 2 → 1) */
.feature-grid {
  display: grid !important;
  gap: 20px !important;
  grid-template-columns: repeat(3, 1fr) !important;
  padding-top: 30px;
  align-items: stretch;
}
.feature-item {
  background-color: #162447;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.pricing-item:hover, .feature-item:hover { background-color: #243b6b; }
.features a, .pricing-section a {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.features a:hover, .pricing-section a:hover { color: #ffdb58; text-decoration: underline; }
.pricing-item .btn-primary, .feature-item .btn-primary {
  background-color: #ffc107;
  color: #0f2b50 !important;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s, text-decoration-color 0.3s;
  display: inline-block;
  text-align: center;
  border: none;
}
.pricing-item .btn-primary:hover, .feature-item .btn-primary:hover, .btn-primary:hover {
  background-color: #ffdb58;
  text-decoration: underline;
}


  
  .footer {
  background-color: #162447;   /* or your preferred color */
  color: #d1d1d1;
  text-align: center;
  padding: 20px 0;
  margin-top: 4rem;            /* optional */
}

.footer a {
  color: #ffc107;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

/* optional: keep footer content width aligned with header */
.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


/* Responsive grid steps
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(2, 1fr) !important; } }
 */
 
/* =========================================
   FINAL MOBILE OVERRIDES (≤ 768px)
   ========================================= */
@media (max-width: 768px) {

  /* ----- Header: logo on top, nav below ----- */
  .header .container {
    max-width: 100%;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

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

  nav.navigation {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  nav.navigation a {
    font-size: 0.9rem;
    padding: 0.35rem 0.55rem;
  }

  nav.navigation .btn {
    padding: 0.4rem 0.8rem;
  }

  /* ----- Hero: stack, fix spacing, kill quotes ----- */
  .hero {
    padding: 2rem 0 2.5rem;
    text-align: left;
  }

  .hero-content {
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .hero .hero-text {
    padding-top: 0 !important;   /* remove extra gap reserved for quotes */
    position: relative;
  }

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

  .hero-text p,
  .hero-text ul li {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-text ul {
    margin-top: 0.5rem;
  }

  .hero-image {
    order: 2;
    text-align: center;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
  }

  /* Completely hide the floating quotes on mobile */
  .floating-quotes {
    display: none !important;
  }

  /* ----- Features: safe single-column layout ----- */
  .feature-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding-top: 1.5rem;
  }

  .feature-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1.25rem !important;
    text-align: left;
  }

  .feature-item h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }

  .feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  

  
  
}
