/* ============================
   More Aces – Global Styles
   File: /css/moreaces.css
   ============================ */

/* --- CSS Variables (Brand Palette) --- */
:root {
  --ma-bg: #f6f1ea;             /* warm, off-white background */
  --ma-surface: #ffffff;        /* card / content background */
  --ma-surface-alt: #f0e3d2;    /* subtle alt surface */
  --ma-primary: #c86323;        /* cinnamon accent */
  --ma-primary-dark: #8f4315;   /* deeper cinnamon */
  --ma-text: #241611;           /* main text */
  --ma-muted: #776155;          /* secondary text */
  --ma-border: #e1d2c4;         /* soft border */
  --ma-link: #b34819;           /* link color */
  --ma-link-hover: #e26a28;     /* hover color */
  --ma-radius-lg: 16px;
  --ma-radius-sm: 8px;
  --ma-shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.08);
}

/* --- Global Resets --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ma-bg);
  color: var(--ma-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Make the main content sit in a centered column.
   This will catch most static-export layouts: */
body > div,
main,
#main,
.content,
.wrapper,
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

/* If your generator uses <header> / <footer>, this helps too: */
header,
footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* --- Top Notice Bar (line at very top) --- */
body > p:first-of-type {
  background: #2b1a13;
  color: #f8efe6;
  margin: 0;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ma-primary-dark);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--ma-primary-dark);
  border-left: 4px solid var(--ma-primary);
  padding-left: 0.6rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--ma-primary);
}

p {
  margin: 0.5rem 0 0.9rem;
  font-size: 1rem;
}

strong {
  font-weight: 600;
}

/* --- Links --- */
a {
  color: var(--ma-link);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus {
  color: var(--ma-link-hover);
  text-decoration: underline;
}

/* --- Lists --- */
ul,
ol {
  margin: 0.4rem 0 1.1rem 1.4rem;
  padding-left: 1.1rem;
}

li {
  margin: 0.2rem 0;
}

/* --- “Card” Styling for Major Sections --- */
/* This will wrap common sections like “Simple Pricing”, “Subscribe”, “FAQ”
   and make them look like neat cards even without classes. */

body > div > h2,
main > h2,
.content > h2,
.wrapper > h2 {
  margin-top: 2.2rem;
}

body > div > h2 + *,
main > h2 + *,
.content > h2 + *,
.wrapper > h2 + * {
  background-color: var(--ma-surface);
  border-radius: var(--ma-radius-lg);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--ma-shadow-soft);
  border: 1px solid var(--ma-border);
  margin-top: 0.6rem;
}

/* --- Pricing Headings / Subheadings --- */
h2 + h3 {
  margin-top: 1.2rem;
}

h3 + p {
  margin-top: 0.3rem;
}

/* --- Buttons & CTAs --- */
/* This will catch native inputs and any anchors that you later give .btn classes */

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.btn,
a.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--ma-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
a.btn:hover,
a.button:hover {
  background: var(--ma-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

/* Secondary button style (add class="btn-secondary" to anchors/buttons if desired) */
.btn-secondary {
  background: transparent;
  color: var(--ma-primary-dark);
  border: 1px solid var(--ma-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--ma-primary);
  color: #fff;
}

/* Stack CTAs nicely when grouped */
.cta-group {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- FAQ Styling (your existing FAQ section) --- */
#FAQ,
section#FAQ,
section#faq {
  margin-top: 2.5rem;
}

#FAQ h2,
section#faq h2 {
  border-left-color: var(--ma-primary-dark);
}

#FAQ h3,
section#faq h3 {
  margin-top: 1.3rem;
  font-size: 1.05rem;
  text-transform: none;
}

#FAQ p,
section#faq p {
  margin-top: 0.3rem;
}

/* --- Comparison Table (DEET vs More Aces) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.8rem;
  background-color: var(--ma-surface);
  border-radius: var(--ma-radius-lg);
  overflow: hidden;
  box-shadow: var(--ma-shadow-soft);
}

th,
td {
  border: 1px solid var(--ma-border);
  padding: 0.7rem 0.6rem;
  font-size: 0.95rem;
}

th {
  background-color: var(--ma-surface-alt);
  text-align: left;
  font-weight: 600;
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ma-radius-lg);
  display: block;
  margin: 1rem auto;
}

/* Optional: make testimonial image slightly larger */
img[alt*="Testimonial"],
img[alt*="Player"] {
  box-shadow: var(--ma-shadow-soft);
}

/* --- Footer / Bottom Nav Links --- */
footer,
body > div:last-of-type {
  font-size: 0.9rem;
  color: var(--ma-muted);
  border-top: 1px solid var(--ma-border);
  padding-top: 1rem;
  margin-top: 2.5rem;
}

footer a,
body > div:last-of-type a {
  margin-right: 0.75rem;
  font-weight: 500;
}

/* --- Forms (email / text signup) --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.7rem;
  margin: 0.25rem 0 0.8rem;
  border-radius: var(--ma-radius-sm);
  border: 1px solid var(--ma-border);
  font-size: 0.96rem;
  font-family: inherit;
  background-color: #fff;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ma-muted);
}

/* --- Mobile Tweaks --- */
@media (max-width: 640px) {
  body > div,
  main,
  #main,
  .content,
  .wrapper,
  .page,
  header,
  footer {
    padding: 1.5rem 1.1rem 2.5rem;
  }

  h1 {
    text-align: left;
  }

  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  table {
    font-size: 0.9rem;
  }
}
.site-footer {
  border-top: 1px solid #ddd;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.footer-nav {
  text-align: center;
}

.footer-nav nav a {
  margin: 0 0.75rem;
  text-decoration: none;
  opacity: 0.85;
}

.footer-nav nav a:hover,
.footer-nav nav a:focus {
  text-decoration: underline;
  opacity: 1;
}
