/* SINGLE SOURCE OF TRUTH: frame, illustration, and navigation on every page. */
:root { --cf-copper:#DE9B72; --cf-bg:#3A3D3E; --cf-gutter:clamp(10px,1vw,18px); --cf-inner-pad:clamp(22px,3.3vw,58px); }
html { min-height:100%; }
body.cf-page { margin:0!important; padding:0!important; background:var(--cf-bg)!important; color:white; min-height:100vh; min-height:100dvh; overflow-x:hidden; }
.cf-house-layer { position:fixed; inset:0; z-index:0; pointer-events:none; background:url('../images/house.png') center center / min(88vw, 132vh) auto no-repeat; }
.cf-interior .cf-house-layer { filter:blur(6px) brightness(.57); transform:scale(1.035); }
/* Decorative border is viewport-fixed; a long page scrolls UNDER it. */
.cf-frame { position:fixed; inset:var(--cf-gutter); z-index:5; pointer-events:none; border:2px solid var(--cf-copper); padding:6px; }
.cf-frame-middle { width:100%; height:100%; border:6px solid var(--cf-copper); padding:6px; }
.cf-frame-inner { width:100%; height:100%; border:2px solid var(--cf-copper); position:relative; }
.cf-corner { position:absolute; width:clamp(42px,5vw,80px); height:auto; display:block; }
.cf-corner.lt { left:-5px; top:-5px; }
.cf-corner.rt { right:-5px; top:-5px; transform:scaleX(-1); }
.cf-corner.rb { right:-5px; bottom:-5px; transform:scale(-1); }
.cf-corner.lb { left:-5px; bottom:-5px; transform:scaleY(-1); }
.cf-ornament { position:absolute; left:50%; width:clamp(150px,27vw,440px); max-width:65%; height:auto; transform:translateX(-50%); }
.cf-ornament.top { top:-3px; }
.cf-ornament.bottom { bottom:-3px; transform:translateX(-50%) scaleY(-1); }
.cf-main { position:relative; z-index:2; min-height:100vh; min-height:100dvh; margin:0 auto; padding:clamp(125px,17vh,180px) max(60px,7vw) 125px; }
.cf-home .cf-main { display:flex; align-items:center; justify-content:center; padding-top:110px; padding-bottom:110px; text-align:center; }
.cf-home .cf-main h1 { font-family:countach,sans-serif; font-size:clamp(25px,3vw,49px); letter-spacing:4px; color:white; }
.cf-home .cf-main .lead { margin-top:35px; font-size:clamp(23px,2.6vw,39px); }
.cf-menu-trigger { position:fixed; z-index:21; right:clamp(35px,4vw,70px); top:clamp(55px,12vh,112px); width:60px; height:60px; border:0; border-radius:0; background:#b98667; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.cf-menu-trigger span,.cf-menu-trigger span::before,.cf-menu-trigger span::after { position:absolute; display:block; width:27px; height:2px; background:white; content:''; transition:transform .2s ease,top .2s ease; }
.cf-menu-trigger span::before { top:-9px; }.cf-menu-trigger span::after { top:9px; }
.cf-menu-trigger[aria-expanded='true'] span { background:transparent; }
.cf-menu-trigger[aria-expanded='true'] span::before { top:0; transform:rotate(45deg); background:white; }
.cf-menu-trigger[aria-expanded='true'] span::after { top:0; transform:rotate(-45deg); background:white; }
.cf-menu { position:fixed; inset:0; z-index:20; background:rgba(37,39,40,.985); display:flex; align-items:center; justify-content:center; visibility:hidden; opacity:0; pointer-events:none; transition:opacity .23s ease,visibility .23s ease; overflow-y:auto; }
.cf-menu.cf-open { visibility:visible; opacity:1; pointer-events:auto; }
.cf-menu ul { list-style:none; padding:80px 25px; margin:0; text-align:center; }
.cf-menu li { margin:22px 0; }
.cf-menu a { font-family:countach,sans-serif; color:white!important; font-size:clamp(22px,4vw,36px); text-decoration:none!important; }
.cf-menu a:hover,.cf-menu a:focus-visible { color:var(--cf-copper)!important; }
.cf-menu-trigger:focus-visible { outline:3px solid white; outline-offset:3px; }
body.cf-menu-open { overflow:hidden!important; }
/* page-specific CONTENT layout only -- never frame dimensions */
.cf-contact .cf-main { padding-top:clamp(145px,18vh,200px); }
.cf-contact #contact { position:static!important; width:100%; }
.cf-contact .section-header { padding:0 0 20px; margin:0 auto 16px; font-size:clamp(36px,5vw,60px); }
.cf-contact .contact-wrapper { max-width:840px; width:100%; }
.cf-contact .send-button { max-width:100%; }
.cf-history .cf-main { padding:clamp(150px,17vh,190px) max(50px,4vw) 115px; }
.cf-history #timeline-embed { width:100%; height:min(640px,65vh); min-height:350px; }
.cf-apply .cf-main { padding-top:clamp(150px,17vh,195px); }
.cf-apply .contact-wrapper { max-width:100%; padding:0; }
.cf-apply .jotform-form { position:static!important; right:auto!important; margin:auto; max-width:100%; }
@media(max-width:767px) {
 :root { --cf-gutter:9px; }
 .cf-house-layer { background-size:125vw auto; }
 .cf-main { padding:145px 36px 100px; }
 .cf-home .cf-main { padding:125px 35px 100px; }
 .cf-menu-trigger { top:53px;right:45px;width:52px;height:52px; }
 .cf-corner { width:40px; }
 .cf-ornament { width:160px; }
 .cf-contact .cf-main { padding:145px 30px 110px; }
 .cf-contact .contact-wrapper { flex-direction:column; padding:5px; gap:25px; }
 .cf-contact .form-horizontal, .cf-contact .direct-contact-container { width:100%; max-width:100%; }
 .cf-contact .direct-contact-container { margin-top:12px; }
 .cf-contact .contact-list { padding:0; margin:0; }
 .cf-contact .contact-text { font-size:14px; letter-spacing:.4px; }
 .cf-contact .place,.cf-contact .gmail { margin-left:18px; }
 .cf-history .cf-main { padding:145px 31px 110px; }
 .cf-apply .cf-main { padding:145px 26px 105px; }
}
@media(prefers-reduced-motion:reduce) { .cf-menu,.cf-menu-trigger span,.cf-menu-trigger span::before,.cf-menu-trigger span::after { transition:none; } }

/* Mobile/responsive refinements (shared by every page) */
.cf-main { width:100%; min-width:0; }
.cf-main .container { max-width:100%; }
.cf-house-layer { background-position:center center; }
.cf-frame { box-sizing:border-box; }
.cf-frame-middle,.cf-frame-inner { box-sizing:border-box; }
.cf-menu { overscroll-behavior:contain; }
.cf-menu-trigger { touch-action:manipulation; }
.cf-menu a { display:inline-block; padding:9px 12px; }
.cf-contact .form-horizontal,.cf-contact .direct-contact-container { min-width:0; }
.cf-contact .form-horizontal { width:100%; }
.cf-contact .form-control,.cf-contact textarea,.cf-contact .send-button { width:100%; max-width:100%; }
.cf-contact .contact-text { overflow-wrap:anywhere; }
.cf-contact .list-item > i { display:flex; align-items:flex-start; gap:18px; font-size:26px; line-height:1.5; }
.cf-contact .list-item .contact-text { display:block; margin:0; line-height:1.65; }
.cf-history #timeline-embed { max-width:100%; }
@media (max-width:767px) {
  :root { --cf-gutter:8px; }
  .cf-frame { padding:4px; }
  .cf-frame-middle { border-width:4px; padding:4px; }
  .cf-frame-inner { border-width:2px; }
  .cf-corner { width:32px; }
  .cf-corner.lt { top:-3px;left:-3px; }
  .cf-corner.rt { top:-3px;right:-3px; }
  .cf-corner.rb { bottom:-3px;right:-3px; }
  .cf-corner.lb { bottom:-3px;left:-3px; }
  .cf-ornament { width:clamp(125px,40vw,180px); }
  .cf-main { padding:125px 34px 95px; }
  .cf-home .cf-main { padding:110px 34px 95px; }
  .cf-home .cf-main h1 { font-size:clamp(24px,6.4vw,38px); letter-spacing:1.7px; line-height:1.2; }
  .cf-home .cf-main .lead { margin-top:18px; font-size:clamp(22px,6vw,33px); }
  .cf-menu-trigger { top:42px;right:36px;width:46px;height:46px; }
  .cf-menu a { font-size:clamp(26px,7vw,34px); }
  .cf-contact .cf-main { padding:125px 35px 100px; }
  .cf-contact .section-header { font-size:clamp(32px,10vw,48px); letter-spacing:3px; }
  .cf-contact .contact-wrapper { padding:0; gap:25px; }
  .cf-contact textarea { min-height:170px; }
  .cf-contact .direct-contact-container { margin-top:0; }
  .cf-contact .list-item { margin-bottom:18px; }
  .cf-contact .list-item > i { font-size:23px; }
  .cf-history .cf-main { padding:125px 26px 95px; }
  .cf-history #timeline-embed { height:60dvh!important; min-height:420px; }
  .cf-apply .cf-main { padding:125px 28px 95px; }
}
@media (max-width:380px) {
  .cf-main { padding-left:29px; padding-right:29px; }
  .cf-contact .cf-main { padding-left:29px; padding-right:29px; }
  .cf-history .cf-main { padding-left:24px; padding-right:24px; }
  .cf-ornament { width:115px; }
  .cf-menu-trigger { top:38px;right:33px;width:43px;height:43px; }
}
@media (max-height:550px) and (orientation:landscape) {
  .cf-main,.cf-contact .cf-main,.cf-history .cf-main,.cf-apply .cf-main { padding-top:100px; }
  .cf-menu-trigger { top:25px; }
  .cf-ornament { width:125px; }
}

/* v5 shared, page-independent illustration sizing. Image keeps intrinsic 1024:704 ratio. */
.cf-house-layer {
  background-image: url('../images/house.png'); /* legacy fallback */
  background-image: url('../images/house.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto;
}
@media (min-width:768px) {
  .cf-house-layer { background-size: min(70vw, 103vh) auto; }
  .cf-interior .cf-house-layer { background-size: min(66vw, 96vh) auto; }
}
@media (max-width:767px) {
  .cf-house-layer,.cf-interior .cf-house-layer { background-size: 108vw auto; }
}
/* Interior pages must blur the artwork but NOT the border, content, or menu. */
.cf-interior .cf-house-layer { filter: blur(6px) brightness(.55); transform:scale(1.015); }
.cf-home .cf-house-layer { filter:none; transform:none; }
/* Contact info: restore readable icon-to-label layout and original type size. */
.cf-contact .contact-list { margin:0; padding:0; }
.cf-contact .list-item { line-height:normal; margin:0 0 23px; }
.cf-contact .list-item > i { display:flex; align-items:center; gap:36px; font-size:27px; line-height:1.35; }
.cf-contact .list-item .contact-text { margin:0; font-size:18px; letter-spacing:1px; line-height:1.5; font-style:normal; }
.cf-contact .direct-contact-container { flex:0 1 390px; }
@media (max-width:767px) {
  .cf-contact .list-item > i { gap:17px; font-size:23px; }
  .cf-contact .list-item .contact-text { font-size:clamp(13px,3.4vw,17px); letter-spacing:.2px; }
  .cf-contact .direct-contact-container { flex:auto; }
}

/* v6: Contact content and backdrop -- the global frame is untouched. */
@media (min-width: 851px) {
  .cf-contact .cf-house-layer {
    background-size: min(78vw, 118vh) auto;
    background-position: 50% 51%;
    filter: blur(5px) brightness(.68);
    transform: none;
  }
  .cf-contact .contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 360px);
    column-gap: 58px;
    max-width: 900px;
    padding: 20px 0;
    align-items: start;
    justify-content: center;
  }
  .cf-contact .form-horizontal { width:100%; margin:0; max-width:none; }
  .cf-contact .direct-contact-container {
    width:100%; max-width:none; min-width:0; margin:0; flex:none;
  }
}
/* Align NAME and EMAIL with the textarea and submit button. */
.cf-contact .form-group .col-sm-12 { padding-left:0; padding-right:0; }
.cf-contact .form-control,
.cf-contact textarea,
.cf-contact .send-button { width:100%; max-width:100%; }
.cf-contact .contact-list { list-style:none; margin:0; padding:0; }
.cf-contact .list-item { margin:0 0 30px; line-height:1.5; }
.cf-contact .list-item > i {
  display:flex; align-items:center; gap:30px;
  font-size:27px; line-height:1.4; color:var(--cf-copper);
}
.cf-contact .list-item .contact-text {
  display:block; margin:0; font-family:countach,sans-serif;
  font-size:18px; line-height:1.5; letter-spacing:1px;
  color:#fff; font-style:normal;
}
.cf-contact .contact-text a { color:#fff; }
.cf-contact .contact-text a:hover { color:var(--cf-copper); }
@media (max-width:850px) {
  .cf-contact .cf-house-layer {
    background-position:center 52%;
    filter:blur(5px) brightness(.62);
  }
  .cf-contact .contact-wrapper { display:flex; flex-direction:column; gap:30px; padding:0; }
  .cf-contact .form-horizontal,
  .cf-contact .direct-contact-container { width:100%; max-width:440px; margin:0 auto; flex:none; }
  .cf-contact .list-item > i { font-size:23px; gap:18px; }
  .cf-contact .list-item .contact-text { font-size:clamp(13px,3.6vw,18px); letter-spacing:.3px; }
}
