/* =========================================================
   WORTHY RESOLUTION — Carrd-style CSS (FULL)
========================================================= */

:root{
  --bg: #faf7f2;          /* warm off-white */
  --text: #2a2f36;        /* charcoal */
  --muted: #6b7280;       /* soft gray */
  --blue: #2432a6;        /* deep Carrd-ish blue */
  --green: #2f8a57;       /* section title green */
  --line: rgba(0,0,0,.10);
}

/* ----------------- Base reset ----------------- */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.75;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }

/* ----------------- HERO ----------------- */
.hero{
  min-height: 92vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 60px 0 80px;
}

.hero-inner{
  width: min(1180px, 92vw);
  text-align:center;
}

.hero-top{
  display:flex;
  justify-content:flex-start;
  margin-bottom: 20px;
}

.brand-logo{
  width: 170px;
  height: auto;
}

.hero-title{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(46px, 5.5vw, 86px);
  color: #6b6f75;
  margin: 10px 0 14px;
}

.hero-title-accent{
  font-style: italic;
  color: var(--blue);
  margin-left: 10px;
}

.hero-copy{
  max-width: 980px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ----------------- Buttons (Carrd style) ----------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
  margin-top: 16px;
  user-select:none;
}

.btn-primary{
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 22px rgba(36, 50, 166, .18);
}

.btn-secondary{
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 34px rgba(0,0,0,.06);
}

.chev{
  font-size: 18px;
  transform: translateY(-1px);
}

/* ----------------- Typography ----------------- */
.h2{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(34px, 3.4vw, 54px);
  margin: 0 0 10px;
}
.blue{ color: var(--blue); }

.kicker{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 46px);
  color: var(--green);
  margin: 0 0 12px;
}

.kicker-commitment{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--green);
  margin: 0 0 12px;
}

.subhead{
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 34px);
  color: var(--blue);
  margin: 0 0 16px;
}
.centered{
  color: rgba(0,0,0,.55);
  font-size: 15.5px;
  margin: 0 0 18px;
}

/* Carrd-like dotted/diagonal divider */
.divider{
  margin: 16px auto 18px;
  width: 240px;
  height: 10px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,.10) 0 02px,
      transparent 2px 10px
    );
  border-radius: 999px;
  opacity: .0;
}

/* =========================================================
   SPLIT SECTIONS — matches screenshots
   - Full-width sections
   - 50/50 columns
   - Own section: full-bleed image
   - Path sections: framed image w white mat + shadow
========================================================= */

.split{
  border-top: 0px solid rgba(0,0,0,.04);
  background: var(--bg);
  display: flex;
  align-items: center;
}

.split-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;     /* 🔑 key: top-align both columns */
  min-height: 560px;
  width: 100%;
}


/* reverse (for Path B) */
.split--reverse .split-image{ grid-column: 2; }
.split--reverse .split-content{ grid-column: 1; }

/* NON-FRAMED (Own section) full-bleed image */
.split-image{
  position: relative;
  overflow: hidden;
  min-height: 560px;   /* ensures the image has height */
  background: #eee;
}

/* Make ANY image inside split-image fill */
.split-image img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Text side ---------- */
.split-content{
  display: flex;
  align-items: flex-start;   /* top-align text stack */
  justify-content: center;
  padding: 80px 6vw 80px;
  text-align: center;
}


.content-inner{
  width: 100%;
  max-width: 520px; /* Carrd text measure */
}

/* =========================================================
   FRAMED IMAGE STYLE (for Path A/B/C)
   - White mat border
   - Soft shadow
   - Correct vertical alignment with text
========================================================= */
.split-image.framed{
  position: relative;
  overflow: visible;
  background: var(--bg);
  display: flex;
  align-items: flex-start;   /* top-align frame */
  justify-content: center;
  padding: 80px 4vw 80px;
}


/* Disable the full-bleed absolute behavior for framed images */
.split-image.framed > img{ display:none; }

.photo-frame{
  background:#fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0,0,0,.12);
  width: min(560px, 100%);
  margin-top: 0px;                /* aligns visually with headings */
}

.photo-frame img{
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 6px;
  display:block;
  filter: none;
}

/* Prevent framed images from inheriting the absolute-fill rule */
.split-image.framed .photo-frame img{
  position: static;
  inset: auto;
  height: auto;
}


/* =========================================================
   COMMITMENT / DISCLAIMER / FOOTER
========================================================= */
.commitment{
  padding: 96px 0 72px;
  border-top: 1px solid rgba(0,0,0,.04);
  background: var(--bg);
}

.narrow{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align:center;
}

.kicker-muted{
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 18px;
}

.disclaimer{
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(0,0,0,.45);
  font-size: 11px;
  line-height: 1.7;
  text-align:center;
}

.footer{
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(0,0,0,.45);
  font-size: 13px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items:center;
}

.back-top{
  color: rgba(0,0,0,.55);
}

/* =========================================================
   MOBILE stacks like Carrd (image then text)
========================================================= */
@media (max-width: 768px) {
.split-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    justify-content: center;
  }

/* 2. Force the container to be edge-to-edge and flexible height */
  .split-image {
    width: auto !important;
    height: 460px !important; /* Removes the 320px restriction */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden;
  }

  /* 3. Make the image fill the container entirely */
  .split-image img.media, 
  .split-image > img {
    position: relative !important; /* Fixes the 'floating' issue */
    width: auto !important;        /* Fills width */
    height: 460px !important;       /* Fills height naturally */
    display: block !important;
    object-fit: cover !important;  /* Ensures it fills the div without gaps */
    inset: auto !important;
  }

  /* 4. Remove padding at the top of the section to prevent white gaps */
  #own.section {
    padding-top: 0 !important;
  }

  
  /* 5. Center the text and remove the gap below the photo */
.split-content {
    padding: 20px 20px !important;
    text-align: center;
    margin-bottom: 80px;
  }

  /* 6. Fix Path B (the reverse one) to stack correctly */
  .split--reverse .split-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  /* 7. Center the Logo */
  .hero-top {
    display: flex !important;
    justify-content: center !important;
  }

  .brand-logo {
    width: 200px !important;
    margin: 0 auto 20px !important;
  }
  
  .photo-frame {
    max-width: 90%; /* Scales down on phones but stays square */
    margin-bottom: 20px;
    margin-top: 80px;
  }
  
  .split-image.framed {
    height: auto !important; /* Overrides previous fixed mobile heights */
    display: flex;
    justify-content: center;
  }
  
  /* Targets the reversed section specifically for mobile */
  .split--reverse .split-grid {
    display: flex !important;
    flex-direction: column-reverse !important; /* Flips the text and image stack */
    gap: 0 !important;
  }

/* Center the Content in Path B */
  .split--reverse .split-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 40px 20px !important;
  }

  /* Standardizing the Path B square frame to match the others */
  .split--reverse .photo-frame {
    width: 100%;
    height: 520px;
    margin: 10 auto 30px auto; /* Adds spacing between the photo and the text below it */
    background: #fff;
    margin-top: 80px;
  }
  
  /* Ensure the image fills the frame properly */
  .split--reverse .photo-frame img.media {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Fills the square without distortion */
  }

  /* Center the Kicker and Subhead */
  .split--reverse .kicker, 
  .split--reverse .subhead {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}

/* Force pure white section background */
.section-white{
  background: #ffffff;
}

/* Ensure split sections respect it */
.section-white .split-image,
.section-white .split-content{
  background: #ffffff;
}

/* Hidden by default */

.modal {
  display: none; 
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  /* Use flex to center the content perfectly */
  display: none; 
  align-items: center;
  justify-content: center;
}

/* When the modal is open, we change display to flex */
.modal.is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  z-index: 10000; /* Higher than the background */
  pointer-events: auto; /* Ensures it accepts clicks */
  background: #fff;
  width: min(500px, 90%);
  padding: 30px;
  border-radius: 12px;
}

.close-btn{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  color: rgba(0,0,0,.55);
}

/* Stacking the form fields */
#contactModal form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Spaces the fields out */
  margin-top: 20px;
}

/* Styling the inputs to look modern */
#contactModal input, 
#contactModal textarea {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
  cursor: text; /* Force the text cursor so you know it's active */
}

/* Styling the textarea height */
#contactModal textarea {
  height: 100px;
  resize: vertical;
}

/* Matching your specific Navy Blue to the Submit Button */
#contactModal .btn-primary {
  background-color: #1e2f97; 
  color: white;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
}

#contactModal .btn-primary:hover {
  background-color: #152272;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Centering the Title */
#modalTitle {
  color: #2e7d32; /* Matches your site's green */
  font-family: serif; 
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.btn-white {
  background-color: #ffffff;
  color: #1e2f97; 
  border: 1px solid #e0e0e0;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.btn-white:hover {
  background-color: #fcfcfc;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

#submitBtn {
  width: 100%; /* Makes it full width like the inputs for a balanced look */
  padding: 15px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-top: 10px;
}

#thanksWrapper h2 {
  margin-top: 0;
  font-family: serif;
}

#thanksWrapper p {
  font-size: 1.1rem;
  color: #333;
}

/* --- MOBILE RESPONSIVENESS FIX --- */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;          /* Use almost the whole screen width */
    padding: 20px 15px;   /* Slightly tighter padding */
    margin: 10px auto;
    border-radius: 8px;   /* Slightly softer corners for mobile */
  }

  #modalTitle {
    font-size: 1.25rem;   /* Scale down the title so it doesn't wrap weirdly */
    margin-bottom: 15px;
  }

  input, textarea, #mainSubmitBtn {
    font-size: 16px !important; /* Forces 16px to prevent iOS from "auto-zooming" on click */
    padding: 14px;              /* Larger touch target for thumbs */
  }

  .close-btn {
    top: 5px;
    right: 12px;
    font-size: 28px;
  }
}