/* =========================================================
   BASE + VARIABLES
========================================================= */
:root {
  --darkbloodorange: #c10000;
  --bloodorange: #fc3d39;
  --black: #000;
  --white: #fff;
}

html, body { overflow-x: hidden; }

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  background: url('entrybg.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* =========================================================
   REUSABLE BUTTONS
========================================================= */
.btn,
.cta-button,
.contact-form button,
.entry-content button {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid var(--black);
  transition: background-color 0.2s, transform 0.05s, border-color 0.2s;
  cursor: pointer;
}

.btn:hover,
.cta-button:hover,
.contact-form button:hover,
.entry-content button:hover {
  background: var(--darkbloodorange);
  border-color: var(--darkbloodorange);
}

.btn:active,
.cta-button:active,
.contact-form button:active,
.entry-content button:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.cta-button:focus-visible,
.contact-form button:focus-visible,
.entry-content button:focus-visible,
.nav a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* =========================================================
   LOADER + CONTENT SHELL
========================================================= */
.loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--bloodorange);
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.content {
  display: block;
  opacity: 0;
  animation: fadeIn 0.6s forwards;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 20px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   ENTRY PAGE (if used)
========================================================= */
.entry-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('entrybg.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 10000;
}

.entry-content {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  color: white;
}

.entry-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.entry-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* =========================================================
   HEADER + NAV
========================================================= */
.header {
  background-color: var(--darkbloodorange);
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header-logo {
  max-width: 100%;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  background-color: var(--black);
  padding: 15px;
}

.nav a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s;
}

.nav a:hover {
  background-color: var(--darkbloodorange);
}

/* =========================================================
   MAIN CONTAINER + BANNER
========================================================= */
.main {
  padding: 40px;
  margin: 0 auto;
  max-width: 1000px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.banner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
}

/* =========================================================
   PAGE TITLES
========================================================= */
.page-title {
  text-align: center;
  margin: 10px 0 22px;
}

.page-title h1,
.page-title h2 {
  margin: 0;
  letter-spacing: 0.2px;
}

.page-subtitle {
  margin: 10px auto 0;
  max-width: 720px;
  opacity: 0.9;
  line-height: 1.6;
}

/* =========================================================
   SERVICES GRID + CARDS
========================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
}

.service {
  background-color: rgba(255, 255, 255, 0.92);
  color: #111;
  padding: 22px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  border-radius: 10px;
  text-align: center;
}

.service h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.25;
  position: relative;
  text-align: center;
}

.service h3::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  background: var(--bloodorange);
  margin: 10px auto 0;
  border-radius: 999px;
}

.service p { line-height: 1.6; }

.service ul,
.service ol {
  text-align: left;
  display: block;
  max-width: 560px;
  margin: 12px auto 0;
  padding-left: 22px;
  line-height: 1.6;
}

.service li { margin-bottom: 8px; }

.service .cta-button {
  display: inline-block;
  margin: 18px auto 0;
}

/* =========================================================
   SECTION BLOCKS (Process / Boundaries / Positioning / Contact)
========================================================= */
.section-block {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 30px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  text-align: center;
}

.section-block section {
  padding: 34px 0;
}

.section-block section + section {
  margin-top: 12px;
}

.section-block h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  position: relative;
  padding-bottom: 14px;
  text-align: center;
}

.section-block h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--bloodorange);
  margin: 14px auto 0;
  border-radius: 999px;
}

.section-block p,
.section-block ul,
.section-block ol {
  text-align: left;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  color: #fff;
}

.section-block ul,
.section-block ol {
  padding-left: 20px;
}

.section-block ul li,
.section-block ol li {
  margin-bottom: 10px;
  color: #fff;
}

.section-block .notice {
  max-width: 760px;
  margin: 12px auto 0;
  text-align: left;
  padding: 12px 14px;
  border-left: 6px solid var(--darkbloodorange);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #fff;
}

/* =========================================================
   CONTACT OVERRIDES (ONLY within #contact block)
   - Center just the blurb paragraph
   - Keep the form/labels left aligned
========================================================= */
#contact > h2 {
  text-align: center;
  margin: 0 0 20px;
}

#contact > p {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   CONTACT FORM
========================================================= */
.contact-form {
  background-color: rgba(255, 255, 255, 0.9);
  color: black;
  padding: 30px 60px 30px 30px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  max-width: 600px;

  /* key: prevents “everything looks centered” side-effects */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-form form {
  width: 100%;
  text-align: left;
}

.contact-form label {
  display: block;
  text-align: left;
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  display: block;
  margin: 10px auto 0; /* keep submit centered */
}

/* =========================================================
   HOME PAGE
========================================================= */
.home-hero {
  text-align: center;
  margin: 56px auto 40px;
}

.home-hero h1 {
  margin: 10px 0 8px;
  font-size: 2rem;
}

.home-hero p {
  margin: 0 auto;
  max-width: 760px;
  opacity: 0.92;
  line-height: 1.65;
}

.home-cta-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-grid {
  margin: 26px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-card--featured { grid-column: auto; }
}

.home-card {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  text-align: center;
}

.home-card h3 {
  margin: 0 0 10px;
  text-align: center;
  padding: 0;
  border: 0;
  position: relative;
}

.home-card h3::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  background: var(--bloodorange);
  margin: 10px auto 0;
  border-radius: 999px;
}

.home-card--featured {
  grid-column: 1 / -1;
  padding: 26px;
}

.home-card ul,
.home-card ol {
  text-align: left;
  display: block;
  max-width: 560px;
  margin: 12px auto 0;
  padding-left: 22px;
}

.home-card ol {
  list-style-position: inside;
  padding-left: 0;
  text-align: center;
}

.home-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.home-card .cta-button {
  display: inline-block;
  margin: 18px auto 0;
}

/* =========================================================
   FOOTER (CONTAINED + CONSISTENT)
========================================================= */
.footer {
  background-color: var(--darkbloodorange);
  color: #fff;
  width: auto;
  box-sizing: border-box;
  margin: 20px;
  padding: 18px 16px;
  text-align: center;
  border-radius: 8px;
  position: static;
}

.footer p {
  margin: 6px auto;
  max-width: 1000px;
}

.footer .notice { opacity: 0.95; }

/* =========================================================
   STRIPE EMBED
========================================================= */
.stripe-embed {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
}

.stripe-embed stripe-pricing-table {
  width: 100%;
}

/* Centre the blurb under Contact Us */
#contact > p {
    text-align: center;
    max-width: 760px;        /* optional: limit the line length */
    margin: 0 auto 1em;      /* centre the block itself */
}

/* Undo inherited centering on the form area */
#contact .contact-form {
    text-align: left;
}

/* Make labels left-aligned on their own line */
#contact .contact-form label {
    display: block;
    text-align: left;
    margin-bottom: 0.5em;    /* spacing between label and input */
}
