/* ─── Photo on Gray Background Only ──────────────── */

/* Make body a positioning context */
body {
  position: relative;
  z-index: 1; /* sit above the photo overlay */
}

/* Overlay the photo across the entire viewport, under the site-container */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("assets/Madera.png") center center / 100% no-repeat;
  opacity: 1.0;
  pointer-events: none;
  z-index: 0; /* beneath the body content (site-container will cover it) */
}

/* Ensure your container—and its constitution bg—sit above the photo */
.site-container {
  margin: 0 auto 2rem auto;
  width: 80%;
  max-width: 800px;
  position: relative;
  background-image: url("assets/constitution.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  background-blend-mode: lighten;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 0;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* << ADD THIS */
  overflow: hidden;
}




/* Dark slate background across full site */
body {
  background-color: #5f6b78;
  background-image: url("assets/paper-fibers.png");
  background-repeat: repeat;
}

/* Main container with Constitution background */
.site-container {
  margin: 0 auto 2rem auto;
  width: 80%;
  max-width: 800px;
  position: relative;
  background-image: url("assets/constitution.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  background-blend-mode: lighten;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

/* Inner padding for readability */
.inner-content {
  padding: 2rem;
  box-sizing: border-box;
}

/* Center everything in the header */
header {
  text-align: center;
}

.logo {
  max-width: 175px;
  display: block;
  margin: 0 auto 0.5rem auto;
}

/* Style for hero title with Copperplate + bumped first letters */
.hero-title {
  color: #5f6b78;
  font-size: 1.5rem;
  font-family: 'Copperplate Bold', 'Copperplate Gothic Bold', Copperplate, serif;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
}

.hero-title .contact-word {
  display: inline-block;
  margin-right: 0.0em;
}

.hero-title .contact-word + .contact-word {
  margin-left: 0em;
}

.hero-title .contact-word::first-letter {
  font-size: 1.2em;  /* tweak to taste */
  margin: 0;
}


/* Tagline styled like contact line with bumped first letters */
.tagline {
  color: #5f6b78;
  font-family: 'Copperplate Bold', 'Copperplate Gothic Bold', Copperplate, serif;
  font-size: 1.0rem;
  text-transform: uppercase;
  font-style: normal;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
  margin-top: 0.25rem;
}

.tagline .contact-word {
  display: inline-block;
  margin-right: 0.0em;
}

.tagline .contact-word + .contact-word {
  margin-left: 0em;
}

.tagline .contact-word::first-letter {
  font-size: 1.2em;
  margin: 0;
}


/* Decorative divider */
.decorative-hr {
  border: 0;
  height: 2px;
  background: #c8102e;
  margin: 2rem 0;
}

/* Contact inline */
.contact-inline {
  display: flex;
  justify-content: center;  
  align-items: center;
  width: 100%;
  gap: 3.5rem;     /* ← tweak this number until it feels right */
  margin-top: 1.5rem;
  letter-spacing: 0.1em;
  font-size: 1.5rem;
  font-weight: bold;
}


.contact-inline a {
  color: #a3493f;
  text-decoration: none;
  margin: 0.5rem;
}

.contact-inline a:hover {
  text-decoration: underline;
}

.qed-phrase {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  text-align: center;
  font-style: italic;
  color: #5f6b78;
  margin-top: 0.9rem;
  }


/* Footer styling */
footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #5f6b78;
}

.footer-cookie-notice {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}
.footer-cookie-notice a {
  color: #a3493f;
  text-decoration: underline;
}


/* FAQ & Experience lists */
.faq-list li,
.exp-list li {
  margin-bottom: 1rem;
  color: #333;
}

/* ─── Unified Modal Styles ─────────────────────────────────────── */
/* Modals are hidden by default; when .open is added they appear */
/* The entire modal container scrolls if content is long */
.modal {
  display: none;
  position: fixed;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  overflow-y: auto;
  z-index: 1001;
}


.modal.open {
  display: block;                /* Show when JS adds .open */
}

.modal-content {
  /* Just padding; scrolling handled by container */
  padding: 1.5rem;
  font-size: 1.125rem; /*font size of modal content*/
}

/* ─── Sepia + Background Images for Each Modal ────────────────────────── */

/* Contact Modal */
#contactModal .modal-content {
  /* first layer: sepia-tone overlay at 60% opacity, second layer: image */
  background-image:
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), /*(rgba(244,236,224,0.7), rgba(244,236,224,0.7))*/
    url("assets/contact-modal-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* ensure text is dark enough against the light image */
  color: #333;
}
#contactModal h2 {
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;
}


/* FAQ Modal */
#faqModal .modal-content {
  background-image:
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),  /*(rgba(244,236,224,0.6), rgba(244,236,224,0.6))*/
    url("assets/faq-modal-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
}

/* Experience Modal */
#expModal .modal-content {
  background-image:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),    /*(rgba(244,236,224,0.9), rgba(244,236,224,0.9))*/
    url("assets/experience-modal-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
}

/* Service Area Modal */
#service-area-modal .modal-content {
  background-image:
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),  /*(rgba(244,236,224,0.7), rgba(244,236,224,0.7))*/
    url("assets/service-area-modal-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
}


/* Form layout: two columns on desktop, one on small screens */
.modal-content form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}

/* Make all inputs span their grid cell */
.modal-content form input,
.modal-content form textarea {
  all: unset;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-size: 1.0rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* On focus, inputs glow slightly */
.modal-content form input:focus,
.modal-content form textarea:focus {
  border-color: #a3493f;
  box-shadow: 0 0 5px rgba(163, 73, 63, 0.5);
  background-color: #fff;
}


/* Let the message box take the full width */
.modal-content form textarea {
  grid-column: 1 / -1;
  min-height: 120px;
}

/* And have the submit button span full width too */
.modal-content form button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;  /* or center if you prefer */
  margin-top: 0.5rem;
}

/* On very small screens, drop back to a single column */
@media (max-width: 600px) {
  .modal-content form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-inline {
    word-break: break-word;
    white-space: normal;
    padding: 0 1rem;
    letter-spacing: 0.02em;  /* reduce space between letters */
    font-size: 1.1rem;
  }
  .qed-phrase {
    font-size: 0.85rem;  /* only on small screens */
  }
}



.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1002;
}

.modal-close-button {
  all: unset;
  display: block;
  margin: 2rem auto 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: bold;
  background-color: #a3493f;
  color: white;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease-in-out;
}

.modal-close-button:hover {
  background-color: #c8102e;
}


.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;                      /* shorthand for top/right/bottom/left: 0 */
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.modal-overlay.open {
  display: block;
}
/* ─── End Unified Modal Styles ──────────────────────────────────── */

/* Four floating buttons at bottom */
.inline-buttons {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 999;
}

.inline-button {
  all: unset; /* <-- reset everything */
  font-family: inherit; /* <-- inherit your site's font */
  background-color: #a3493f;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease-in-out;
}

.inline-button:hover {
  background-color: #c8102e;
}

/* Lift buttons on wide screens */
@media (min-width: 1280px) {
  .inline-buttons {
    bottom: 4rem;
  }
}

/* ─── Desktop: About Modal Layout ───────────────────────── */
.about-modal-row {
  display: flex;
  align-items: flex-start;   /* align photo & text at top */
  gap: 1.5rem;
}
.about-modal-text {
  flex: 1;                   /* text takes remaining space */
}
.about-modal-photo-right {
  margin-left: auto;         /* push photo to the right edge */
}
.about-modal-photo-right img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid #ccc;
}

/* ─── Tablet Override ───────────────────────────────────── */
@media (max-width: 1024px) {
  .inline-buttons {
    bottom: 4rem;
  }
}

/* ─── Mobile Overrides ──────────────────────────────────── */
@media (max-width: 600px) {

  /* photo/text stack vertically */
  .about-modal-row {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .about-modal-photo-right img {
    width: 90px;
    height: 90px;
  }

  /* allow buttons to wrap so About shows */
  .inline-buttons {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
    transform: none;
  }
  .inline-button {
    flex: 1 1 25%;   /* or 48%/31% for 2/3 per row */
    max-width: 25%;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
  }

  /* other mobile tweaks… */
  body::before {
    background: url("assets/Madera.png") center center / cover no-repeat;
  }
  .modal-content form {
    grid-template-columns: 1fr;
  }
  .form-submit-button {
    width: 100%;
  }

  /* Mobile Tagline Overrides */
  .tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
    letter-spacing: 0.02em;
    font-size: 0.7rem;
    text-align: center;
  }
  .tagline .contact-word:nth-child(3) {
    display: none !important;
  }
  .tagline .contact-word:nth-child(4) {
    flex-basis: 100%;
  }

  /* Mobile Contact-Line Overrides */
  .contact-inline a + a::before {
    display: none !important;
  }
  .contact-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
  
  /* Stack & center contact links */
  .contact-inline {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /*sets space between phone line and email line*/
    margin: 1.5rem auto 0;
  }
  .contact-inline a {
    flex: none;
    margin: 0;
    text-align: center;
    display: inline-block;
  }
  .contact-inline a[href^="mailto:"] {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 0.85rem; /* optional */
  }
  
  #expModal .modal-content {
    background-size: contain;     /* show entire image */
    background-position: top center;
    background-repeat: no-repeat;
  }

}

  



