/* =========================================================
   0) RESET + BASE
   ========================================================= */
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:#ffffff;
  line-height:1.65;
  background-color:#0b0b0c;
}
body.static{
  position:relative;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

.page-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:0;
  pointer-events:none;
}

main{ position:relative; z-index:1; min-height:100vh; }
.container{ max-width:1100px; margin:0 auto; padding:16px; }
.card{ background:transparent; border:0; padding:16px; }

h1{ margin:0 0 20px; font-size:2.5em; line-height:1.1; color:#ddbf9b; }
h2{ margin:0 0 14px; color:#ddbf9b; }
p{ margin:0 0 10px; }

a{ color:#ddbf9b; text-decoration:none; transition:color .25s ease; }
a:hover{ color:#f5f5f7; }

/* =========================================================
   1) FLOATING NAV UI
   ========================================================= */
.float-layer{
  position:fixed;
  inset:0;
  z-index:3000;
  pointer-events:none;
}

.logo-float{
  position:absolute;
  left:16px;
  bottom:16px;
  display:flex;
  align-items:center;
  gap:8px;
  pointer-events:auto;
}
.logo-pill{
  display:inline-flex;
  align-items:center;
  background:rgba(15,15,20,.65);
  padding:9px 12px;
  height:46px;
}
.logo-pill img{ width:28px; height:28px; display:block; }

.hamburger-menu{
  display:none;
  background:rgba(15,15,20,.65);
  border:0;
  height:46px;
  width:46px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.hamburger-menu span{
  display:block;
  width:24px;
  height:2px;
  background:#ddbf9b;
  position:relative;
}
.hamburger-menu span:before,
.hamburger-menu span:after{
  content:'';
  position:absolute;
  left:0;
  width:24px;
  height:2px;
  background:#ddbf9b;
}
.hamburger-menu span:before{ top:-8px; }
.hamburger-menu span:after{ bottom:-8px; }

.mobile-nav{
  position:fixed;
  bottom:76px;
  left:16px;
  background:rgba(15,15,20,.95);
  padding:10px;
  display:none;
  flex-direction:column;
  gap:8px;
  min-width:180px;
  pointer-events:auto;
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  display:block;
  background:rgba(255,255,255,.1);
  color:#ddbf9b;
  padding:10px 14px;
  text-align:center;
}
.mobile-nav a:hover{ background:rgba(255,255,255,.2); }

.bottom-nav{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:16px;
  pointer-events:auto;
  white-space:nowrap;
}
.bottom-nav a{
  display:inline-block;
  background:rgba(15,15,20,.65);
  color:#ddbf9b;
  padding:10px 14px;
  margin-right:8px;
}
.bottom-nav a:last-child{ margin-right:0; }
.bottom-nav a:hover{ background:rgba(0,0,0,.75); }

/* Top-right popup control */
.drop-ctrl{
  position:fixed;
  right:16px;
  top:16px;
  z-index:3001;
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.drop-label{
  display:none;
  background:rgba(15,15,20,.75);
  color:#ddbf9b;
  padding:6px 10px;
  border-radius:6px;
}
.drop-ctrl:hover .drop-label{ display:inline-block; }
.drop-btn{
  width:44px;
  height:44px;
  border:0;
  cursor:pointer;
  border-radius:6px;
  background:rgba(15,15,20,.65);
  color:#ddbf9b;
  font-size:20px;
}
.drop-btn:hover{ background:rgba(0,0,0,.75); }
.icon-up{ display:none; }
body.modal-open .icon-up{ display:inline; }
body.modal-open .icon-down{ display:none; }

/* =========================================================
   2) GLOBAL MODAL
   ========================================================= */
.modal-overlay{
  position:fixed;
  inset:0;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  visibility:hidden;
  opacity:0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.modal-overlay.open{
  visibility:visible;
  opacity:1;
  transition: opacity .25s ease, visibility 0s linear 0s;
}
.modal-veil{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.85);
  backdrop-filter: blur(3px);
}
.modal-container{
  position:relative;
  width:1100px;
  max-width:92vw;
  max-height:90vh;
  background:#1a1a1f;
  opacity:808%;
  border-radius:10px;
  box-shadow:0 20px 40px rgba(0,0,0,.5);
  overflow:hidden;
}
.modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border:0;
  border-radius:8px;
  background:rgba(0,0,0,.35);
  color:#ddbf9b;
  font-size:24px;
  cursor:pointer;
  z-index:2;
}
.modal-close:hover{ background:rgba(0,0,0,.6); color:#f5f5f7; }

.modal-content{
  padding:22px;
  color:#f0f0f4;
  overflow:auto;
  max-height:90vh;
}

/* =========================================================
   3) INDEX MODAL (3 TABS)
   Matches: story.jpg, cert.jpg, soft.jpg
   ========================================================= */
.modal-title{
  margin:0 0 12px;
  font-size:34px;
  line-height:1.1;
  color:#ddbf9b;
}

.modal-top-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 18px;
}
.modal-top-tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(15,15,20,.55);
  color:#ddbf9b;
  padding:10px 14px;
  border-radius:6px;
  cursor:pointer;
  font-size:14px;
}
.modal-top-tab:hover{ background:rgba(0,0,0,.55); }
.modal-top-tab.active{
  border-color:#ddbf9b;
  box-shadow:0 0 0 2px rgba(221,191,155,.14) inset;
  color:#f5ddbf;
}

/* Keep content height stable when switching tabs */
.modal-panels{
  min-height:420px;
}
.modal-panel{ display:none; }
.modal-panel.active{ display:block; }

/* Story layout */
.story-layout{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:22px;
  align-items:start;
}
.story-media img{
  width:100%;
  height:auto;
  border-radius:8px;
  display:block;
}
.story-copy h3{
  margin:0 0 10px;
  font-size:22px;
  color:#ddbf9b;
}
.story-actions{
  display: block;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(15,15,20,.55);
  color:#ddbf9b;
}
.pill:hover{ background:rgba(0,0,0,.55); color:#f5f5f7; }

/* Certifications */
.certifications-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
.cert-card{
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.10);
  padding:14px;
  border-radius:8px;
}
.cert-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.cert-head img{ width:72px; height:auto; display:block; }
.cert-head h4{ margin:0; font-size:16px; color:#ddbf9b; font-stretch: semi-condensed;}
.cert-card p{ color:#ccc; font-size:13px; line-height:1.5; }

/* Tools */
.tools-lead{
  margin:0 0 16px;
  color:#fff;
  opacity:.92;
}
.tools-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:12px;
}
.tool{
  text-align:center;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  padding:12px;
  border-radius:8px;
}
.tool-icon{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
}
.tool-icon img{ max-width:100%; max-height:78px; }
.tool-name{ font-size:12px; color:#fff; margin-bottom:8px; }
.tool-bar{
  height:5px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
  border-radius:999px;
}
.tool-bar span{
  display:block;
  height:5px;
  width:70%;
  background: linear-gradient(to right, #e7d6c1, #ddbf9b);
}

/* =========================================================
   4) SIMPLE PAGE MODAL (ALL NON-INDEX PAGES)
   ========================================================= */
.simple-modal{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:22px;
  align-items:start;
}
.simple-modal img{
  width:100%;
  height:auto;
  border-radius:8px;
  display:block;
}
.simple-modal h3{
  margin:0 0 10px;
  font-size:1.5em;
  line-height: 1.2em;
  color:#ddbf9b;
}


/* =========================================================
   4) INDEX PAGE (HERO COPY)
   ========================================================= */
.hero-lead{ font-size:1.5em; font-weight:700; line-height:1.2; margin-bottom:10px; }
.hero-headline{ font-size:4.5em; font-weight:800; line-height:0.96; color:#ddbf9b; margin-bottom:10px; }
.hero-sub{ font-size:1.2em; font-weight:700; line-height:1.3; margin-bottom:10px; }
.hero-sub .highlight{ font-size:1.5em; font-weight:800; line-height:1.25; color:#ddbf9b; }
.hero-cta{ font-size:20px; font-weight:700; line-height:1.5;}
@media (max-width:700px){
.hero-lead{ margin-bottom:10px; }
.hero-headline{ font-size:2.5em; line-height:1.1;}
.hero-sub{padding-bottom: 10px;}
}

/* =========================================================
   5) RATES PAGE
   ========================================================= */
.services-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  margin:30px 0;
  align-items:stretch;
}
.service-category{
  background:rgba(0,0,0,.55);
  padding:15px;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
  display:flex;
  flex-direction:column;
  min-height:340px;
}
.service-category h2{
  font-size:22px;
  margin:6px 0;
  padding-bottom:8px;
  border-bottom:2px solid #ddbf9b;
  text-align:left;
}

.service-item{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;
  margin-bottom:4px;
  border-bottom:1px solid #666;
  cursor:default;
}
.service-item:last-child{ border-bottom:none; }

.service-line{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  white-space:nowrap;
  font-size:14px;
}
.caret{
  flex:0 0 auto;
  color:#ddbf9b;
  font-size:12px;
  opacity:.95;
  display:none;
  transition:transform .25s ease;
}
.service-item.has-details .caret{ display:inline-block; }

.service-name{
  font-weight:500;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
}
.service-price{
  color:#fff;
  font-weight:bold;
  flex:0 0 auto;
  font-size:14px;
}

.item-details{
  display:none;
  width:100%;
  padding:5px 0 0;
  color:#ddd;
  font-size:13px;
  line-height:1.55;
  white-space:normal;
  padding-left:18px;
}
.service-item.open .item-details{ display:block; }
.service-item.open .caret{ transform:rotate(180deg); }

.terms-toggle{ margin-top:40px; background:rgba(0,0,0,.5); border-radius:8px; overflow:hidden; }
.terms-toggle-header{
  padding:20px 25px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid rgba(221,191,155,.55);
}
.terms-toggle-header h2{ margin:0; font-size:24px; }
.terms-toggle-content{ max-height:0; overflow:hidden; transition:max-height .45s ease; }
.terms-toggle-content-inner{ padding:0 25px; }
.terms-toggle.open .terms-toggle-content{ max-height:2000px; }
.terms-toggle-icon{ font-size:20px; color:#ddbf9b; transition:transform .45s ease; }
.terms-toggle.open .terms-toggle-icon{ transform:rotate(180deg); }

/* =========================================================
   6) RESPONSIVE
   ========================================================= */
@media (max-width: 1000px){
  .tools-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .certifications-grid{ grid-template-columns:1fr; }
  .story-layout{ grid-template-columns:1fr; }
  .simple-modal{ grid-template-columns:1fr; }
  .tools-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .bottom-nav{ display:none; }
  .hamburger-menu{ display:flex; }
  h1{ font-size:1.75em; }
  .drop-ctrl{ right:12px; top:12px; }
  .services-container{ grid-template-columns:1fr; gap:20px; }
  .tool{ padding:10px; }
  .modal-panels{ min-height: 0; }
}


/* =========================================================
   7) EXPERIENCE PAGE (FROM experience.php)
   ========================================================= */
p{margin:0 0 10px;line-height:1.65}
ul{margin:10px 0 0;padding-left:18px}
.experience-item{text-align: center;
  transition: transform 0.3s ease;}
.experience-item:hover{transform: translateY(-3px);}
.exp-filters > div{background: rgba(15,15,20,.65);
  border:1px solid rgba(255,255,255,.12);
  padding:6px 10px;
  cursor:pointer;
  user-select:none;}
.exp-filters p{margin:0;
  font-size:13px;
  color:#ddbf9b;
  text-transform:capitalize;}
.icon-up{display:none}
.icon-down{display:inline}
.experience-grid{grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;}

/* =========================================================
   8) PORTFOLIO PAGE (FROM portfolio.php)
   ========================================================= */
.slides{display:flex;
  width:100%;
  height:100%;
  transition:transform 0.55s ease;}
.slide{min-width:100%;
  height:100%;
  position:relative;
  flex-shrink:0;
  background:#000;}
.prev{left:12px}
.next{right:12px}
.icon-up{display:none}
.icon-down{display:inline}

/* =========================================================
   9) REFERENCES PAGE (FROM references.php)
   ========================================================= */
.slides{display:flex;
            width:100%;
            height:100%;
            transition:transform 0.55s ease;}
.slide{min-width:100%;
            height:100%;
            position:relative;
            flex-shrink:0;
            background:transparent; /* transparent so background image is visible (desktop) */
            overflow:hidden; /* desktop: no vertical scroll */}
.prev{left:12px}
.next{right:12px}
.icon-up{display:none}
.icon-down{display:inline}

/* =========================================================
   10) JOB TEMPLATE PAGES (FROM affordablerealestate.php)
   ========================================================= */
.slides{display:flex;
  width:100%;
  height:100%;
  transition:transform .55s ease;
  transform:translate3d(0,0,0);
  will-change:transform}
.slide{flex:0 0 100%;
  height:100%;
  position:relative;
  flex-shrink:0}
.slide>img{position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;}
.prev{left:12px}
.next{right:12px}
.copy-col{max-width:var(--copy-width);}
.icon-up{display:none}
.icon-down{display:inline}


/* Video styling for mobile slides */
.carousel .slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Style video controls for better visibility */
.carousel .slide video::-webkit-media-controls {
  background: rgba(0, 0, 0, 0.3);
}

.carousel .slide video::-webkit-media-controls-panel {
  border-radius: 0;
}

/* Ensure videos play nicely on mobile */
@media (max-width: 700px) {
  .carousel .slide video {
    max-height: 100vh;
    object-fit: contain;
  }
}


/* =========================================================
   DCG: DESKTOP VIDEO GALLERY (dcg.php slide 4)
   ========================================================= */
.dcg-video-slide{
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}
.dcg-video-overlay{
  position:absolute;
  inset:0;
  padding:22px;
}

/* 2 rows x 5 columns */
.dcg-video-grid{
  height:100%;
  overflow:hidden;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  grid-template-rows:repeat(2, minmax(0, 1fr));
  gap:30px;
  align-content:stretch;
}
.dcg-video-cell{
  background:rgba(0,0,0,.35);
  overflow:hidden;
}
.dcg-video-cell video{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000;
  display:block;
}

/* Responsive fallbacks */
@media (max-width: 1100px){
  .dcg-video-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    grid-template-rows:auto;
    overflow:auto;
  }
}
@media (max-width: 700px){
  .dcg-video-grid{
    grid-template-columns:1fr;
    grid-template-rows:auto;
    overflow:auto;
  }
}

/* =========================================================
   11) experience page
   ========================================================= */
a {
  color: #ddbf9b;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #f5f5f7;
  text-decoration: none;
}

/* Experience Grid Layout */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin: 10px 0;
}
.experience-item {
  text-align: center;
  transition: transform 0.3s ease;
}
.experience-item:hover {
  transform: translateY(-3px);
}
.experience-item a {
  display: block;
  text-decoration: none;
}
.experience-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0;
  padding: 20px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  min-height: 70px;
}
.experience-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}
.experience-name {
  font-size: 12px;
  color: #ccc;
  margin: 0;
  line-height: 1.3;
}

/* Compact layout */
.intro-compact {
  margin-bottom: 30px;
}
.intro-compact p {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

/* Filter controls */
.exp-filters {
  display:flex;
  gap:10px;
  margin:1px 0 1px;
}
.exp-filters > div {
  background: rgba(15,15,20,.65);
  border:1px solid rgba(255,255,255,.12);
  padding:6px 10px;
  cursor:pointer;
  user-select:none;
}
.exp-filters > div[aria-pressed="true"]{
  border-color:#ddbf9b;
  box-shadow:0 0 0 2px rgba(221,191,155,.15) inset;
}
.exp-filters p{
  margin:0;
  font-size:13px;
  color:#ddbf9b;
  text-transform:capitalize;
}

/* wrapper (no scroll) */
.grid-wrap{}

/* Helper */
.is-hidden{
  display:none !important;
}

/* ===== Overlay ===== */
.overlay{
  position:fixed;top:0;left:0;right:0;height:100vh;z-index:1000;pointer-events:none;
  --copy-width: 620px;
}
.overlay.open{pointer-events:auto}
.overlay .veil{position:absolute;inset:0;background:rgba(0,0,0,.75);opacity:0;transition:opacity .3s}

/* PANEL: content pinned to top with 50px padding */
.overlay .panel{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:100vh;
  display:flex;
  align-items:flex-start;       /* keep content at the top */
  justify-content:center;
  opacity:0;
  transform:translateY(-100%);
  transition:transform .45s ease,opacity .3s ease;
  padding-top:50px;             /* 50px from top for all dropdown content */
  box-sizing:border-box;
}
.overlay.open .veil{opacity:1}
.overlay.open .panel{opacity:1;transform:translateY(0)}
.overlay-body{
  width:960px;
  max-width:92vw;
  color:#f5f5f7;
  /* Enable vertical scrolling */
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Layout inside overlay */
.overlay-layout{display:block}
@media (min-width:701px){
  .overlay-layout{display:flex;align-items:flex-start;gap:20px}
  .overlay-media{flex:0 0 auto;align-self:flex-start}
  .overlay-copy{
    flex:0 1 auto;
    width:var(--copy-width);
    max-width:calc(92vw - 20px);
  }
}
@media (max-width:700px){
  .overlay-media{margin-bottom:14px}
  .overlay-copy{width:100%}
}

/* generic overlay images */
.overlay img{
  max-width:100%;
  display:block;
}
.overlay h2{margin:0 0 8px;font-size:28px;color:#ddbf9b}

/* make contact.png fit nicely on all screens */
.contact-overlay-img{
  width:100%;
  height:auto;
  max-width:100%;
  max-height:85vh;
  object-fit:contain;
}

/* ===== Floating UI ===== */
.float-layer{position:fixed;inset:0;z-index:2000;pointer-events:none}
.logo-float{position:absolute;left:16px;bottom:16px;pointer-events:auto;display:flex;align-items:center;gap:8px;z-index:2002}
.logo-pill{display:inline-flex;background:rgba(15,15,20,.65);color:#fff;padding:9px 12px;cursor:pointer;height:46px;align-items:center}
.logo-pill img{width:28px;height:28px;}

/* Hamburger (mobile trigger) */
.hamburger-menu{display:none;background:rgba(15,15,20,.65);color:#ddbf9b;padding:0;cursor:pointer;height:46px;width:46px;border:none;align-items:center;justify-content:center;margin-left:8px}
.hamburger-menu span{display:block;width:24px;height:2px;background:#ddbf9b;position:relative;transition:all .3s}
.hamburger-menu span:before,.hamburger-menu span:after{content:'';position:absolute;width:24px;height:2px;background:#ddbf9b;left:0;transition:all .3s}
.hamburger-menu span:before{top:-8px}
.hamburger-menu span:after{bottom:-8px}
.hamburger-menu.open span{background:transparent}
.hamburger-menu.open span:before{top:0;transform:rotate(45deg)}
.hamburger-menu.open span:after{bottom:0;transform:rotate(-45deg)}

/* Mobile navigation */
.mobile-nav{position:fixed;bottom:76px;left:16px;background:rgba(15,15,20,.95);border-radius:4px;padding:10px;
 z-index:2003;display:none;flex-direction:column;gap:8px;min-width:160px;pointer-events:auto}
.mobile-nav.open{display:flex}
.mobile-nav a{display:block;background:rgba(255,255,255,.1);color:#ddbf9b;padding:10px 14px;border-radius:3px;text-decoration:none;text-align:center}
.mobile-nav a:hover{background:rgba(255,255,255,.2)}

/* Desktop navigation */
.bottom-nav{position:absolute;left:50%;transform:translateX(-50%);bottom:16px;pointer-events:auto;z-index:2001}
.bottom-nav a{display:inline-block;background:rgba(15,15,20,.65);color:#ddbf9b;padding:10px 14px;margin-right:8px;text-decoration:none}
.bottom-nav a:last-child{margin-right:0}
.bottom-nav a:hover{background:rgba(0,0,0,.8)}

/* ===== Single moving arrow ===== */
.drop-ctrl{position:fixed;right:16px;top:16px;transform:translateY(0);transition:transform .45s ease;z-index:3000;pointer-events:auto;display:flex;align-items:center;gap:8px}
body.overlay-open .drop-ctrl{transform:translateY(calc(100vh - 76px))}
.drop-label{display:none;background:rgba(15,15,20,.75);color:#ddbf9b;padding:6px 10px}
body:not(.overlay-open) .drop-ctrl:hover .drop-label{display:inline-block}
.drop-btn{width:44px;height:44px;line-height:44px;text-align:center;background:rgba(15,15,20,.65);color:#ddbf9b;border:0;font-size:22px;cursor:pointer}
.drop-btn:hover{background:rgba(0,0,0,.82)}
.icon-up{display:none}.icon-down{display:inline}
body.overlay-open .icon-up{display:inline}
body.overlay-open .icon-down{display:none}

/* Responsive */
@media (max-width:700px){
  .bottom-nav{display:none}
  .hamburger-menu{display:flex}
  .experience-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  .experience-image {
    padding: 10px;
    min-height: 70px;
  }
  .experience-image img {
    max-height: 70px;
  }
  h1 {
    font-size: 28px;
  }
  /* Adjust overlay body height for mobile */
  .overlay-body{
    max-height: calc(100vh - 80px);
    padding-bottom: 20px;
  }
}
@media (min-width:701px){
  .mobile-nav{display:none !important}
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  line-height: 1.65;
  background-color: #0b0b0c;
}
body.static {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.page-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; min-height: 100vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card { background: transparent; border: none; padding: 16px; }

h1 { margin: 0 0 20px; font-size: 2.5em; line-height: 1.1em; color: #ddbf9b; }
p { margin: 0 0 10px; }

a { color: #ddbf9b; text-decoration: none; transition: color .25s ease; }
a:hover { color: #f5f5f7; }

/* =========================================================
   GLOBAL MODAL
   ========================================================= */
.modal-overlay{
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.modal-overlay.open{
  visibility: visible;
  opacity: 1;
  transition: opacity .25s ease, visibility 0s linear 0s;
}
.modal-veil{
  position:absolute; inset:0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(3px);
}
.modal-container{
  position: relative;
  width: 980px;
  max-width: 92vw;
  max-height: 90vh;
  background: #1a1a1f;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}
.modal-content{
  padding: 26px;
  color: #f0f0f4;
}
.modal-inner{
  display: grid;
  grid-template-columns: 1fr 190px; /* main + right tabs */
  gap: 18px;
  height: calc(90vh - 52px);
  max-height: 760px;
}
.modal-main{
  overflow: auto;
  padding-right: 10px;
}

/* Right-side vertical tabs */
.modal-tabs{
  border-left: 1px solid rgba(221,191,155,0.22);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,15,20,.55);
  color: #ddbf9b;
  text-align: left;
  padding: 12px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
}
.modal-tab:hover{ background: rgba(0,0,0,.55); }
.modal-tab.active{
  border-color: #ddbf9b;
  box-shadow: 0 0 0 2px rgba(221,191,155,.14) inset;
  color: #f5ddbf;
}

/* Modal content helpers */
.modal-title{ margin: 0 0 10px; font-size: 28px; color: #ddbf9b; }
.modal-lead{ color: #fff; opacity: .9; margin-bottom: 14px; }

.modal-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,15,20,.55);
  color: #ddbf9b;
  cursor: pointer;
}
.pill:hover{ background: rgba(0,0,0,.55); color: #f5f5f7; }

/* Inner tabs inside “My Story” modal page */
.inner-tabs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.inner-tab{
  border: 0;
  background: rgba(15,15,20,.55);
  color: #ddbf9b;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
}
.inner-tab.active{
  border-color: #ddbf9b;
  color: #f5ddbf;
}
.inner-panel{ display:none; }
.inner-panel.active{ display:block; }

/* About layout */
.about-layout{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  flex-wrap: wrap;
}
.about-media{ flex: 0 0 280px; }
.about-img{ width: 100%; height:auto; border-radius: 6px; display:block; }
.about-copy{ flex: 1 1 320px; }
.about-copy h3{ margin: 0 0 10px; color:#ddbf9b; font-size: 22px; }

/* Certifications */
.certifications-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cert-card{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px;
}
.cert-head{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-bottom: 10px;
}
.cert-head img{ width: 72px; height:auto; display:block; }
.cert-head h4{ margin: 0; font-size: 16px; }
.cert-card p{ color: #ccc; font-size: 13px; line-height: 1.5; }

/* Tools */
.tools-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.tool{
  text-align:center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,.10);
  padding: 12px;
}
.tool-icon{
  height: 82px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 8px;
}
.tool-icon img{ max-width: 100%; max-height: 78px; }
.tool-name{ font-size: 12px; color:#fff; margin-bottom: 6px; }
.bar{ height: 5px; background:#777; overflow:hidden; }
.bar span{
  display:block;
  height: 5px;
  background: linear-gradient(to right, #e7d6c1, #ddbf9b);
}



/* =========================================================
   FLOATING NAV UI
   ========================================================= */
.float-layer{
  position: fixed; inset: 0;
  z-index: 3000;
  pointer-events: none;
}
.logo-float{
  position:absolute; left:16px; bottom:16px;
  display:flex; align-items:center; gap:8px;
  pointer-events:auto;
}
.logo-pill{
  display:inline-flex;
  align-items:center;
  background: rgba(15,15,20,.65);
  padding: 9px 12px;
  height: 46px;
}
.logo-pill img{ width: 28px; height: 28px; }

.hamburger-menu{
  display:none;
  background: rgba(15,15,20,.65);
  border:0;
  height: 46px;
  width: 46px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.hamburger-menu span{
  display:block; width:24px; height:2px;
  background:#ddbf9b;
  position:relative;
}
.hamburger-menu span:before,
.hamburger-menu span:after{
  content:'';
  position:absolute; left:0;
  width:24px; height:2px;
  background:#ddbf9b;
}
.hamburger-menu span:before{ top:-8px; }
.hamburger-menu span:after{ bottom:-8px; }

.mobile-nav{
  position: fixed;
  bottom: 76px;
  left: 16px;
  background: rgba(15,15,20,.95);
  padding: 10px;
  display:none;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  pointer-events:auto;
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  display:block;
  background: rgba(255,255,255,.1);
  color:#ddbf9b;
  padding: 10px 14px;
  text-align:center;
}
.mobile-nav a:hover{ background: rgba(255,255,255,.2); }

.bottom-nav{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom:16px;
  pointer-events:auto;
  white-space: nowrap;
}
.bottom-nav a{
  display:inline-block;
  background: rgba(15,15,20,.65);
  color:#ddbf9b;
  padding: 10px 14px;
  margin-right: 8px;
}
.bottom-nav a:last-child{ margin-right:0; }
.bottom-nav a:hover{ background: rgba(0,0,0,.75); }

/* Down icon */
.drop-ctrl{
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 3000;
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.drop-label{
  display:none;
  background: rgba(15,15,20,.75);
  color:#ddbf9b;
  padding: 6px 10px;
  border-radius: 6px;
}
.drop-ctrl:hover .drop-label{ display:inline-block; }
.drop-btn{
  width: 44px; height: 44px;
  border:0;
  cursor:pointer;
  border-radius: 6px;
  background: rgba(15,15,20,.65);
  color:#ddbf9b;
  font-size: 20px;
}
.drop-btn:hover{ background: rgba(0,0,0,.75); }
.icon-up{ display:none; }
body.modal-open .icon-up{ display:inline; }
body.modal-open .icon-down{ display:none; }



/* =========================================================
   Rates 
   ========================================================= */

/* ===== Global Link Styles (Added hover effects for ALL links) ===== */
a {
  color: #ddbf9b;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #f5f5f7;
  text-decoration: none;
}

.card{background:transparent;border:0;padding:16px}

/* Services Layout */
.services-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  margin:30px 0;
  align-items:stretch;
}
.service-category{
  background:rgba(0,0,0,0.55);
  padding:15px;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  display:flex;
  flex-direction:column;
  min-height:340px;
}
.service-category h2{
  font-size:22px;
  margin:6px 0;
  padding-bottom:8px;
  border-bottom:2px solid #ddbf9b;
  text-align:left;
}

/* Service row with collapsible details */
.service-item{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;
  margin-bottom:4px;
  border-bottom:1px solid #666666;
  cursor:default;
}
.service-item:last-child{border-bottom:none}
.service-line{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  white-space:nowrap;
  font-size:14px;
}
.caret{
  flex:0 0 auto;
  color:#ddbf9b;
  font-size:12px;
  opacity:.95;
  display:none;
  transition:transform .25s ease;
}
.service-item.has-details .caret{display:inline-block}
.service-name{
  font-weight:500;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
}
.service-price{
  color:#ffffff;
  font-weight:bold;
  flex:0 0 auto;
  font-size:14px;
}

/* details block spans full width */
.item-details{
  display:none;
  width:100%;
  padding:5px 0 0px;
  color:#dddddd;
  font-size:13px;
  line-height:1.55;
  white-space:normal;
  padding-left:18px;
}
.service-item.open .item-details{display:block}
.service-item.open .caret{transform:rotate(180deg)}

/* Expand/Collapse Box for Terms */
.terms-toggle{margin-top:40px;background:rgba(0,0,0,0.5);border-radius:8px;overflow:hidden}
.terms-toggle-header{padding:20px 25px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #DDBF98}
.terms-toggle-header h2{margin:0;font-size:24px}
.terms-toggle-content{max-height:0;overflow:hidden;transition:max-height 0.45s ease}
.terms-toggle-content-inner{padding:0 25px}
.terms-toggle.open .terms-toggle-content{max-height:2000px}
.terms-toggle-icon{font-size:20px;color:#ddbf9b;transition:transform 0.45s ease}
.terms-toggle.open .terms-toggle-icon{transform:rotate(180deg)}

/* ===== Overlay (match other pages, top-aligned with padding) ===== */
.overlay{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:100vh;
  z-index:1000;
  pointer-events:none;
  --copy-width:620px;
  display:none;              /* hide until opened */
}
.overlay.open{
  display:block;
  pointer-events:auto;
}
.overlay .veil{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);
  opacity:0;
  transition:opacity .3s;
}
.overlay .panel{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:100vh;
  display:flex;
  align-items:flex-start;    /* content pinned toward top */
  justify-content:center;
  opacity:0;
  transform:translateY(-100%);
  transition:transform .45s ease,opacity .3s ease;
  padding-top:50px;          /* 50px from top, like other pages */
  box-sizing:border-box;
}
.overlay.open .veil{opacity:1}
.overlay.open .panel{opacity:1;transform:translateY(0)}
.overlay-body{
  width:960px;
  max-width:92vw;
  color:#f5f5f7;
  /* Enable vertical scrolling */
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.overlay-layout{display:block}
@media (min-width:701px){
  .overlay-layout{display:flex;align-items:flex-start;gap:20px}
  .overlay-media{flex:0 0 auto;align-self:flex-start}
  .overlay-copy{flex:0 1 auto;width:var(--copy-width);max-width:calc(92vw - 20px)}
}
@media (max-width:700px){
  .overlay-media{margin-bottom:14px}
  .overlay-copy{width:100%}
  /* Adjust overlay body height for mobile */
  .overlay-body{
    max-height: calc(100vh - 80px);
    padding-bottom: 20px;
  }
}
.overlay img{max-width:100%;display:block}
.overlay h2{margin:0 0 8px;font-size:28px;color:#ddbf9b}

/* make contact.png fit nicely on desktop & mobile */
.contact-overlay-img{
  width:100%;
  height:auto;
  max-width:100%;
  max-height:85vh;
  object-fit:contain;
}

/* ===== Floating UI ===== */
.float-layer{position:fixed;inset:0;z-index:2000;pointer-events:none}
.logo-float{position:absolute;left:16px;bottom:16px;pointer-events:auto;display:flex;align-items:center;gap:8px;z-index:2002}
.logo-pill{display:inline-flex;background:rgba(15,15,20,.65);color:#fff;padding:9px 12px;cursor:pointer;height:46px;align-items:center}
.logo-pill img{width:28px;height:28px}

/* Hamburger (mobile trigger) */
.hamburger-menu{display:none;background:rgba(15,15,20,.65);color:#ddbf9b;padding:0;cursor:pointer;height:46px;width:46px;border:none;align-items:center;justify-content:center;margin-left:8px}
.hamburger-menu span{display:block;width:24px;height:2px;background:#ddbf9b;position:relative;transition:all .3s}
.hamburger-menu span:before,.hamburger-menu span:after{content:'';position:absolute;width:24px;height:2px;background:#ddbf9b;left:0;transition:all .3s}
.hamburger-menu span:before{top:-8px}
.hamburger-menu span:after{bottom:-8px}
.hamburger-menu.open span{background:transparent}
.hamburger-menu.open span:before{top:0;transform:rotate(45deg)}
.hamburger-menu.open span:after{bottom:0;transform:rotate(-45deg)}

/* Mobile navigation */
.mobile-nav{position:fixed;bottom:76px;left:16px;background:rgba(15,15,20,.95);border-radius:4px;padding:10px;z-index:2003;display:none;flex-direction:column;gap:8px;min-width:160px;pointer-events:auto}
.mobile-nav.open{display:flex}
.mobile-nav a{display:block;background:rgba(255,255,255,.1);color:#ddbf9b;padding:10px 14px;border-radius:3px;text-decoration:none;text-align:center}
.mobile-nav a:hover{background:rgba(255,255,255,.2)}

/* Desktop navigation */
.bottom-nav{position:absolute;left:50%;transform:translateX(-50%);bottom:16px;pointer-events:auto;z-index:2001}
.bottom-nav a{display:inline-block;background:rgba(15,15,20,.65);color:#ddbf9b;padding:10px 14px;margin-right:8px;text-decoration:none}
.bottom-nav a:last-child{margin-right:0}
.bottom-nav a:hover{background:rgba(0,0,0,.8)}

/* ===== Single moving arrow control ===== */
.drop-ctrl{position:fixed;right:16px;top:16px;transform:translateY(0);transition:transform .45s ease;z-index:3000;pointer-events:auto;display:flex;align-items:center;gap:8px}
body.overlay-open .drop-ctrl{transform:translateY(calc(100vh - 76px))}
.drop-label{display:none;background:rgba(15,15,20,.75);color:#ddbf9b;padding:6px 10px}
body:not(.overlay-open) .drop-ctrl:hover .drop-label{display:inline-block}
.drop-btn{width:44px;height:44px;line-height:44px;text-align:center;background:rgba(15,15,20,.65);color:#ddbf9b;border:0;font-size:22px;cursor:pointer}
.drop-btn:hover{background:rgba(0,0,0,.82)}
.icon-up{display:none}.icon-down{display:inline}
body.overlay-open .icon-up{display:inline}body.overlay-open .icon-down{display:none}

/* Responsive */
@media (max-width:700px){
  .bottom-nav{display:none}
  .hamburger-menu{display:flex}
  .services-container{grid-template-columns:1fr;gap:20px}
  .service-category{padding:15px}
  .service-category h2{margin:8px 0;padding-bottom:6px}
  .service-item{padding:5px 0;margin-bottom:3px}
  .item-details{padding-left:18px;}
}
@media (min-width:701px){
  .mobile-nav{display:none !important}
}






/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .certifications-grid{ grid-template-columns: 1fr; }
  .modal-inner{ grid-template-columns: 1fr 160px; }
}
@media (max-width: 700px){
  .bottom-nav{ display:none; }
  .hamburger-menu{ display:flex; }
  .drop-ctrl{ right:12px; top:12px; }
  h1{ font-size: 1.75em; }

  .modal-inner{
    grid-template-columns: 1fr; /* stack */
    height: auto;
    max-height: none;
  }
  .modal-tabs{
    border-left: 0;
    border-top: 1px solid rgba(221,191,155,0.22);
    padding-left: 0;
    padding-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .modal-tab{ flex: 1 1 45%; }
}


/* =========================================================
   PORTFOLIO SLIDESHOW (portfolio.php)
   ========================================================= */
body.slideshow{
  background:#0e0f12;
  overflow:hidden;
}

/* Fullscreen carousel */
.carousel{
  position:relative;
  width:100vw;
  height:100vh;
  overflow:hidden;
  z-index:1;
  background:#000;
}
.carousel .slides{
  display:flex;
  width:100%;
  height:100%;
  transition:transform 0.55s ease;
  will-change:transform;
}
.carousel .slide{
  min-width:100%;
  height:100%;
  position:relative;
  flex-shrink:0;
  background:#000;
}


/* Prev/Next */
.nav-btn{
  position:absolute;
  top:50%;
  margin-top:-22px;
  background:rgba(0,0,0,.55);
  color:#ddbf9b;
  border:0;
  padding:10px 18px;
  cursor:pointer;
  font-size:24px;
  z-index:5000;
}
.nav-btn.prev{left:12px}
.nav-btn.next{right:12px}
.nav-btn:hover{background:rgba(0,0,0,.75)}

@media (max-width:700px){
  /* Avoid heavy cropping on tall phones */
  .carousel .slide > img{object-fit:contain;}
}

/* =========================================================
   REFERENCES SLIDESHOW (references.php)
   Goal:
   - Caption centered, pinned to top (padding-top: 25px)
   - Person illustration centered, pinned to bottom
   ========================================================= */

body.slideshow.references{
  background:#000 url('../images/references/referencesbkgd.jpg') center/cover no-repeat fixed;
  overflow:hidden;
}

/* Reuse the global fullscreen carousel, but keep it transparent so the background shows */
body.slideshow.references .carousel{
  background:transparent;
}

/* Each slide is a fullscreen stage */
body.slideshow.references .carousel .slide{
  position:relative;
  height:100%;
  background:transparent;
  overflow:hidden;
}

/* Caption: top, centered column, left-aligned text */
body.slideshow.references .slide-caption{
  position:absolute;
  top:0;
  left:0;
  right:0;
  padding:25px 20px 0;
  z-index:10;
}

body.slideshow.references .caption-inner{
  width:min(760px, calc(100vw - 40px));
  margin:0 auto;
  color:#fff;
  font-size:1.0em;
  font-weight:600;
  line-height:1.2em;
  text-align:left;
  text-shadow:0 2px 4px rgba(0,0,0,.75);
}

.vip{
	color:#ddbf9b;
}

/* LinkedIn icon sits under the name line, like the mock */
body.slideshow.references .linkedin-icon{
  display:inline-block;
  vertical-align:middle;
  margin-top:8px;
}

/* Person image: bottom center */
body.slideshow.references .person-img{
position:absolute;
  inset:auto;          /* cancels inset:0 */
  top:auto;            /* cancels top:0 */
  right:auto;          /* cancels right:0 */

  left:50%;
  bottom:0;
  transform:translateX(-50%);

  width:auto;
  height:auto;
  max-width:min(980px, 92vw);
  max-height:52vh;

  object-fit:contain;
  object-position:bottom;
  display:block;
  pointer-events:none;
  z-index:5;
}

/* Keep nav buttons above everything */
body.slideshow.references .nav-btn{ z-index:5000; }

/* Mobile tuning */
@media (max-width:700px){
  body.slideshow.references{
    background:#000;
  }
  body.slideshow.references .caption-inner{
    width:calc(100vw - 32px);
    font-size:16px;
    line-height:1.4;
  }
  body.slideshow.references .slide-caption{
    padding:25px 16px 0;
  }
  body.slideshow.references .person-img{
    max-height:50vh;
    max-width:92vw;
  }
}

/* Mobile: stack caption then image (image AFTER copy) */
@media (max-width: 700px){

  /* let the slide become a normal vertical layout */
  body.slideshow.references .carousel .slide{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    padding-top:25px;
  }

  /* caption becomes part of flow */
  body.slideshow.references .slide-caption{
    position:static;
    width:100%;
    padding:0 16px;
    margin:0;
  }

  body.slideshow.references .caption-inner{
    width:100%;
    margin:0 auto;
  }

  /* image becomes part of flow, AFTER caption */
  body.slideshow.references .person-img{
    position:static;
    inset:auto;
    transform:none;
    max-width:92vw;
    max-height:50vh;
    margin:18px auto 0;
    display:block;
  }
}


/* =========================================================
   11) CONTACT PAGE (FIXED SPACING)
   Goal:
   - Remove vertical centering gap
   - Reduce space under H1 by ~75px
========================================================= */
.contact-page{ color:#fff; }

/* tighten the title block spacing ONLY on contact page */
.contact-page .container{ padding-top:0; padding-bottom:0; }
.contact-page .card{ padding: 6px 16px 0; }              /* was 16px all around */
.contact-page h1{ margin: 25px 0 6px; }                     /* was 20px bottom */

/* remove the “centered in the viewport” layout that created the big gap */
.contact-page .contact-wrap{
  min-height:auto;                                       /* was calc(100vh - 140px) */
  display:block;                                         /* was grid + place-items:center */
  padding: 20px 18px 28px;                                  /* no top padding */
  margin-top: 0;                                         /* keeps it tight */
  position:relative;
  z-index:1;
}

.contact-page .contact-panel{
  width: min(800px, 92vw);
  margin: 0 auto;                                        /* centered horizontally */
  background: rgba(10,10,12,0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.contact-page .contact-quote{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  font-size: 15px;
}

.contact-page .contact-lead{
  margin: 0 0 22px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.5;
}

/* Alerts */
.contact-page .contact-alert{
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
}
.contact-page .contact-alert.success{
  background: rgba(223,192,154,0.10);
  border-color: rgba(223,192,154,0.35);
}
.contact-page .contact-alert.error{
  background: rgba(255,80,80,0.10);
  border-color: rgba(255,80,80,0.35);
}
.contact-page .contact-alert ul{ margin: 10px 0 0; padding-left: 18px; }

/* Form */
.contact-page .contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-page .field label{
  display:block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.78);
  margin: 0 0 8px;
}

.contact-page .field input,
.contact-page .field textarea{
  width: 100%;
  border-radius: 6px;
  border: 1px solid #343538;
  background: rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.92);
  padding: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.contact-page .field textarea{
  resize: vertical;
  min-height: 100px;
}

.contact-page .field input:focus,
.contact-page .field textarea:focus{
  border-color: #dfc09a;
  box-shadow: 0 0 0 2px rgba(223,192,154,0.14) inset;
  color: #dfc09a;
}

/* Button */
.contact-page .contact-actions{ margin-top: 14px; }

.contact-page .contact-submit{
  border: 1px solid #dfc09a;
  background: #dfc09a;
  color: #1a1a1f;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.contact-page .contact-submit:hover{
  background: #343538;
  color: #dfc09a;
  border-color: #343538;
}

/* Honeypot */
.contact-page .hp{
  position:absolute;
  left:-9999px;
  top:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* =========================================================
   12) RESPONSIVE
========================================================= */
@media (max-width: 1000px){
  .tools-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  .certifications-grid{ grid-template-columns:1fr; }
  .story-layout{ grid-template-columns:1fr; }
  .simple-modal{ grid-template-columns:1fr; }
  .tools-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px){
  .bottom-nav{ display:none; }
  .hamburger-menu{ display:flex; }
  h1{ font-size:1.75em; }
  .drop-ctrl{ right:12px; top:12px; }
  .services-container{ grid-template-columns:1fr; gap:20px; }
  .tool{ padding:10px; }
  .modal-panels{ min-height: 0; }

  /* Contact page */
  .contact-page .contact-panel{ padding: 22px; }
  .contact-page .contact-grid{ grid-template-columns: 1fr; }
}