/*
Theme Name: Quick License Hub – CF7 Popup Pro
Author: Quick License Hub
Version: 1.0.0
Description: Custom theme with tabs and Contact Form 7 popups for license & printing services.
*/

:root{
  --qlh-blue:#3f9fd6;
  --qlh-blue-2:#2e86bf;
  --qlh-charcoal:#3f3f3f;
  --qlh-ink:#111827;
  --qlh-bg:#f1f3f5;
  --qlh-card:#0b0f14;
  --qlh-border:rgba(255,255,255,.12);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --shadow:0 18px 60px rgba(0,0,0,.18);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--qlh-bg);
  color:#1f2937;
}

a{ color:inherit; }
.container{ width:min(1180px, 92vw); margin:0 auto; }

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand img{ height:54px; width:auto; display:block; }
.brand .name{ display:none; font-weight:900; letter-spacing:.2px; }

.nav{
  display:flex;
  align-items:center;
  gap:24px;
}
.nav a{
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  color:#1f2937;
  opacity:.86;
  padding:10px 8px;
  border-radius: 999px;
}
.nav a:hover{ opacity:1; background: rgba(63,159,214,.10); color: var(--qlh-blue-2); }

.mobile-toggle{
  display:none;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding:10px 12px;
  border-radius: 12px;
  font-weight:900;
  cursor:pointer;
}
.mobile-panel{
  display:none;
  padding: 0 0 14px 0;
}
.mobile-panel a{
  display:block;
  padding:12px 12px;
  text-decoration:none;
  font-weight:900;
  border-radius: 14px;
}
.mobile-panel a:hover{ background: rgba(63,159,214,.10); color: var(--qlh-blue-2); }

.section{ padding: 70px 0; }

.license-shell{
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px;
  overflow:hidden;
}
.grid-2{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 26px;
  align-items:start;
}

.license-card{
  background: linear-gradient(180deg, rgba(63,159,214,.98), rgba(46,134,191,.98));
  border-radius: var(--radius-xl);
  padding: 30px;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.license-card:before{
  content:"";
  position:absolute;
  inset:-40% -30%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 55%);
  transform: rotate(-12deg);
}
.license-card > *{ position:relative; z-index:1; }

.kicker{
  font-size:12px;
  letter-spacing:.22em;
  font-weight:900;
  opacity:.9;
  text-transform:uppercase;
  margin-bottom:8px;
}
.license-card h2{
  margin:0 0 14px 0;
  font-size:46px;
  line-height:1.02;
  letter-spacing:-.02em;
}
.tabs{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 14px;
}
.tab-btn{
  width:100%;
  text-align:left;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  padding:12px 14px;
  border-radius: 14px;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}
.tab-btn:hover{ background: rgba(255,255,255,.14); }
.tab-btn.active{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.28);
}

.tab-panels{ margin-top:14px; }
.tab-panel{
  display:none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  font-size:13px;
  line-height:1.55;
}
.tab-panel.active{ display:block; }

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:900;
  font-size:12px;
  border: 1px solid rgba(255,255,255,.20);
}
.btn.light{ background: rgba(255,255,255,.10); color:#fff; }
.btn.light:hover{ background: rgba(255,255,255,.16); }
.btn.dark{ background: rgba(0,0,0,.24); color:#fff; border-color: rgba(255,255,255,.18); }
.btn.dark:hover{ background: rgba(0,0,0,.32); }

.license-right{
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.licence-disc{
  background:#fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 330px;
}
.licence-disc img{ width:min(380px, 100%); height:auto; display:block; }

.quote-box{
  background: #0b0f14;
  color:#fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px;
}
.quote-box h3{
  margin:0 0 10px 0;
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.quote-box p{ margin:0; font-size:13px; color: rgba(255,255,255,.78); line-height:1.55; }

.printing-band{
  background: var(--qlh-charcoal);
  color:#fff;
  padding: 80px 0;
}
.printing-title{
  margin:0 0 16px 0;
  font-size: 66px;
  letter-spacing: .02em;
  font-weight: 300;
}
.print-hero{
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.print-hero img{ width:100%; height:auto; display:block; }

.print-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}
.print-card{
  background: #000;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
}
.print-card img{ width:100%; height: 240px; object-fit:cover; display:block; }
.print-card .body{ padding: 16px 16px 18px; }
.print-card h3{ margin:0 0 8px; font-size:15px; font-weight:900; }
.print-card p{ margin:0; font-size:13px; color: rgba(255,255,255,.78); line-height:1.5; }

.about-band{
  background: #bdbdbd;
  padding: 80px 0;
}
.section-title{
  margin:0 0 14px 0;
  font-size: 74px;
  letter-spacing:.02em;
  font-weight: 900;
  color: var(--qlh-blue);
}
.about-copy{
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
  max-width: 980px;
}

.contact-band{
  background: #fff;
  padding: 80px 0;
}
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items:start;
}
.contact-meta{
  font-size: 18px;
  line-height: 1.9;
  color:#4b5563;
}
.contact-meta a{ color: var(--qlh-blue-2); text-decoration:none; font-weight:900; }
.contact-meta a:hover{ text-decoration:underline; }
.social{
  margin-top: 18px;
  display:flex;
  gap:10px;
}
.icon{
  width:44px;
  height:44px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.30);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  color:#111;
}
.icon:hover{ border-color: var(--qlh-blue-2); color: var(--qlh-blue-2); }

.contact-form-blue{
  background: var(--qlh-blue);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  color:#fff;
}
.field label{
  display:block;
  font-weight:900;
  margin: 0 0 8px 0;
  font-size: 13px;
}
.input, .textarea{
  width:100%;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 12px;
  color:#fff;
  outline:none;
  font-size: 14px;
}
.textarea{ min-height: 140px; resize: vertical; }
.input:focus, .textarea:focus{ border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.16); }
.submit{
  margin-top: 10px;
  width:100%;
  border:0;
  background: rgba(255,255,255,.55);
  color:#0b0f14;
  font-weight: 900;
  padding: 14px;
  border-radius: 14px;
  cursor:pointer;
}
.submit:hover{ background:#fff; }
.small{ margin-top:10px; font-size: 12px; opacity:.85; }

.site-footer{
  padding: 26px 0;
  background: #fff;
  border-top:1px solid rgba(0,0,0,.06);
  color:#6b7280;
  font-size: 13px;
}

/* Modal (Contact Form 7 Popups) – Modern Slide Drawer */
body.modal-open{ overflow:hidden; }

/* Backdrop */
.modal{
  position:fixed;
  inset:0;
  display:block;
  pointer-events:none;
  z-index:9999;
}
.modal .backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,12,14,.58);
  opacity:0;
  transition: opacity .22s ease;
}

/* Drawer */
.modal-dialog{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width:min(720px, 92vw);
  background:#fff;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  transform: translateX(110%);
  transition: transform .28s ease;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Open state */
.modal.open{ pointer-events:auto; }
.modal.open .backdrop{ opacity:1; }
.modal.open .modal-dialog{ transform: translateX(0); }

.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 16px 18px;
  color:#fff;
  background: linear-gradient(135deg, var(--qlh-blue), var(--qlh-blue-2));
}
.modal-head h3{
  margin:0;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .02em;
}
.modal-close{
  width:40px; height:40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color:#fff;
  font-size: 18px;
  font-weight: 1000;
  cursor:pointer;
}
.modal-body{
  padding: 18px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

/* CF7 wrapper switching */
.modal-body .cf7-wrap{ display:none; }
.modal-body .cf7-wrap.active{ display:block; }

/* Fallback message */
.modal-body .cf7-missing{
  border:1px solid rgba(0,0,0,.08);
  background:#f9fafb;
  border-radius: 16px;
  padding: 14px;
  color:#374151;
  font-size: 13px;
  line-height: 1.6;
}

/* Make CF7 forms look modern inside drawer */
.modal-body form{
  font-family: inherit;
}
.modal-body input[type="text"],
.modal-body input[type="tel"],
.modal-body input[type="email"],
.modal-body input[type="number"],
.modal-body input[type="date"],
.modal-body select,
.modal-body textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  padding: 12px 12px;
  font-size: 14px;
  outline:none;
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}
.modal-body textarea{ min-height: 140px; resize: vertical; }
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus{
  border-color: rgba(46,134,191,.55);
  box-shadow: 0 0 0 4px rgba(63,159,214,.18);
}

.modal-body label{
  display:block;
  font-weight: 900;
  color:#111827;
  margin: 0 0 8px 0;
  font-size: 13px;
}
.modal-body .wpcf7-form-control-wrap{ display:block; margin-bottom: 14px; }

.modal-body input[type="submit"],
.modal-body button,
.modal-body .wpcf7-submit{
  width:100%;
  border:0;
  border-radius: 14px;
  padding: 14px 14px;
  font-weight: 1000;
  cursor:pointer;
  color:#fff;
  background: linear-gradient(135deg, var(--qlh-blue), var(--qlh-blue-2));
  box-shadow: 0 16px 34px rgba(46,134,191,.24);
}
.modal-body input[type="submit"]:hover,
.modal-body .wpcf7-submit:hover{
  filter: brightness(1.03);
}

/* CF7 response messages */
.modal-body .wpcf7-response-output{
  margin: 16px 0 0 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background:#f9fafb;
  padding: 12px 14px;
}
.modal-body .wpcf7-not-valid-tip{
  font-size: 12px;
  margin-top: 6px;
}

/* Mobile: bottom sheet */
@media (max-width: 720px){
  .modal-dialog{
    top:auto;
    bottom:0;
    right:0;
    left:0;
    width:100%;
    height: 88vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(105%);
  }
  .modal.open .modal-dialog{ transform: translateY(0); }
  .modal-head{
    position:relative;
  }
  .modal-head:before{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    transform: translateX(-50%);
    width: 64px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
  }
}
