/* ============================================================
   AIWB — PREVIEW WEBSITE STYLES
   Styles the generated website preview inside .aiwb-preview-website
   ============================================================ */

/* ── Preview Reset ────────────────────────────────────────── */
.aiwb-pw {
  --pw-primary:   #0066ff;
  --pw-secondary: #00d4ff;
  --pw-bg:        #ffffff;
  --pw-surface:   #f5f7fc;
  --pw-text:      #111827;
  --pw-text-sub:  #6b7280;
  --pw-border:    rgba(0,0,0,0.08);
  --pw-nav-bg:    rgba(255,255,255,0.95);
  --pw-font-h:    'Syne', sans-serif;
  --pw-font-b:    'DM Sans', sans-serif;
  --pw-radius:    10px;

  font-family:    var(--pw-font-b);
  font-size:      14px;
  line-height:    1.6;
  color:          var(--pw-text);
  background:     var(--pw-bg);
  overflow-x:     hidden;
}

/* ── DARK MODE ────────────────────────────────────────────── */
.aiwb-pw.pw-dark {
  --pw-bg:        #08090f;
  --pw-surface:   #111420;
  --pw-text:      #e8edf7;
  --pw-text-sub:  #6b7a9a;
  --pw-border:    rgba(255,255,255,0.07);
  --pw-nav-bg:    rgba(8,9,15,0.95);
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.pw-nav {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         0 40px;
  height:          64px;
  background:      var(--pw-nav-bg);
  backdrop-filter: blur(12px);
  border-bottom:   1px solid var(--pw-border);
  position:        sticky;
  top:             0;
  z-index:         100;
}

.pw-logo {
  font-family:   var(--pw-font-h);
  font-size:     20px;
  font-weight:   800;
  color:         var(--pw-primary);
  letter-spacing:-0.01em;
}

.pw-nav-links {
  display:     flex;
  gap:         28px;
  list-style:  none;
  margin:      0;
  padding:     0;
}

.pw-nav-links li a {
  color:           var(--pw-text-sub);
  text-decoration: none;
  font-size:       13px;
  font-weight:     500;
  transition:      color 0.2s;
}

.pw-nav-links li a:hover { color: var(--pw-primary); }

.pw-nav-cta {
  padding:       9px 18px;
  border-radius: 8px;
  background:    var(--pw-primary);
  color:         #fff !important;
  font-size:     13px !important;
  font-weight:   600 !important;
  text-decoration: none;
  transition:    all 0.2s;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.pw-hero {
  position:    relative;
  min-height:  480px;
  display:     flex;
  align-items: center;
  overflow:    hidden;
}

.pw-hero-img {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.pw-hero-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(105deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 100%);
}

.pw-hero-content {
  position:  relative;
  z-index:   2;
  padding:   60px 40px;
  max-width: 560px;
}

.pw-hero-badge {
  display:         inline-block;
  padding:         5px 12px;
  border-radius:   100px;
  background:      rgba(255,255,255,0.12);
  border:          1px solid rgba(255,255,255,0.2);
  font-size:       11px;
  font-weight:     600;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  color:           rgba(255,255,255,0.9);
  margin-bottom:   20px;
}

.pw-hero h1 {
  font-family:   var(--pw-font-h);
  font-size:     clamp(28px, 4vw, 44px);
  font-weight:   800;
  line-height:   1.1;
  color:         #ffffff;
  margin:        0 0 16px;
  letter-spacing:-0.02em;
}

.pw-hero-sub {
  font-size:   15px;
  color:       rgba(255,255,255,0.75);
  margin:      0 0 32px;
  line-height: 1.6;
  font-weight: 300;
}

.pw-hero-btns {
  display:   flex;
  gap:       12px;
  flex-wrap: wrap;
}

.pw-btn-primary {
  padding:         12px 24px;
  border-radius:   9px;
  background:      var(--pw-primary);
  color:           #fff;
  font-size:       14px;
  font-weight:     600;
  text-decoration: none;
  border:          none;
  cursor:          pointer;
  transition:      all 0.2s;
  display:         inline-block;
}

.pw-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.pw-btn-outline {
  padding:         12px 24px;
  border-radius:   9px;
  background:      rgba(255,255,255,0.1);
  color:           #fff;
  font-size:       14px;
  font-weight:     600;
  text-decoration: none;
  border:          1px solid rgba(255,255,255,0.25);
  cursor:          pointer;
  transition:      all 0.2s;
  display:         inline-block;
}

.pw-btn-outline:hover { background: rgba(255,255,255,0.18); }

/* ── STATS BAR ────────────────────────────────────────────── */
.pw-stats {
  display:    flex;
  background: var(--pw-surface);
  border-top: 1px solid var(--pw-border);
  border-bottom: 1px solid var(--pw-border);
}

.pw-stat {
  flex:        1;
  padding:     24px;
  text-align:  center;
  border-right: 1px solid var(--pw-border);
}

.pw-stat:last-child { border-right: none; }

.pw-stat-num {
  font-family:   var(--pw-font-h);
  font-size:     28px;
  font-weight:   800;
  color:         var(--pw-primary);
  display:       block;
}

.pw-stat-lbl {
  font-size:  12px;
  color:      var(--pw-text-sub);
  font-weight:500;
  margin-top: 2px;
}

/* ── SERVICES SECTION ─────────────────────────────────────── */
.pw-services {
  padding: 64px 40px;
}

.pw-section-header {
  text-align:    center;
  margin-bottom: 48px;
}

.pw-section-tag {
  display:       inline-block;
  font-size:     11px;
  font-weight:   700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:         var(--pw-primary);
  margin-bottom: 12px;
}

.pw-section-header h2 {
  font-family:   var(--pw-font-h);
  font-size:     clamp(22px, 3vw, 36px);
  font-weight:   800;
  color:         var(--pw-text);
  margin:        0 0 14px;
  letter-spacing:-0.02em;
}

.pw-section-header p {
  color:     var(--pw-text-sub);
  font-size: 15px;
  margin:    0;
}

.pw-cards {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   20px;
}

.pw-card {
  background:    var(--pw-surface);
  border:        1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  overflow:      hidden;
  transition:    all 0.25s;
}

.pw-card:hover {
  transform:  translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--pw-primary);
}

.pw-card-img {
  width:      100%;
  height:     160px;
  object-fit: cover;
  display:    block;
  transition: transform 0.4s;
}

.pw-card:hover .pw-card-img { transform: scale(1.04); }

.pw-card-body {
  padding: 20px;
}

.pw-card-icon {
  width:         36px;
  height:        36px;
  border-radius: 8px;
  background:    rgba(var(--pw-primary-rgb, 0,102,255),0.1);
  display:       flex;
  align-items:   center;
  justify-content:center;
  margin-bottom: 12px;
  color:         var(--pw-primary);
}

.pw-card-icon svg { width: 18px; height: 18px; }

.pw-card-body h3 {
  font-family:   var(--pw-font-h);
  font-size:     17px;
  font-weight:   700;
  color:         var(--pw-text);
  margin:        0 0 8px;
}

.pw-card-body p {
  font-size:  13px;
  color:      var(--pw-text-sub);
  margin:     0;
  line-height:1.6;
}

/* ── ABOUT SECTION ────────────────────────────────────────── */
.pw-about {
  display:   grid;
  grid-template-columns: 1fr 1fr;
  min-height:320px;
}

.pw-about-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.pw-about-content {
  padding:     60px 40px;
  background:  var(--pw-surface);
  display:     flex;
  flex-direction: column;
  justify-content: center;
  gap:         16px;
}

.pw-about-content h2 {
  font-family:   var(--pw-font-h);
  font-size:     clamp(22px, 3vw, 34px);
  font-weight:   800;
  color:         var(--pw-text);
  margin:        0;
  letter-spacing:-0.02em;
  line-height:   1.15;
}

.pw-about-content p {
  color:      var(--pw-text-sub);
  font-size:  14px;
  line-height:1.7;
  margin:     0;
}

.pw-about-checks {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  margin-top:     8px;
}

.pw-check-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-size:   13px;
  font-weight: 500;
  color:       var(--pw-text);
}

.pw-check-dot {
  width:         20px;
  height:        20px;
  border-radius: 50%;
  background:    var(--pw-primary);
  display:       flex;
  align-items:   center;
  justify-content:center;
  flex-shrink:   0;
}

.pw-check-dot svg { width: 10px; height: 10px; color: #fff; }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.pw-testimonials {
  padding:    64px 40px;
  background: var(--pw-surface);
}

.pw-testi-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   20px;
  margin-top:            40px;
}

.pw-testi-card {
  background:    var(--pw-bg);
  border:        1px solid var(--pw-border);
  border-radius: var(--pw-radius);
  padding:       28px;
}

.pw-stars {
  display:     flex;
  gap:         3px;
  margin-bottom: 16px;
}

.pw-star {
  width:  14px;
  height: 14px;
  color:  #f59e0b;
}

.pw-testi-text {
  font-size:   14px;
  color:       var(--pw-text-sub);
  line-height: 1.7;
  margin:      0 0 20px;
  font-style:  italic;
}

.pw-testi-author {
  display:     flex;
  align-items: center;
  gap:         12px;
}

.pw-testi-avatar {
  width:         40px;
  height:        40px;
  border-radius: 50%;
  background:    linear-gradient(135deg, var(--pw-primary), var(--pw-secondary));
  display:       flex;
  align-items:   center;
  justify-content:center;
  font-family:   var(--pw-font-h);
  font-size:     14px;
  font-weight:   700;
  color:         #fff;
  flex-shrink:   0;
}

.pw-testi-name {
  font-size:   14px;
  font-weight: 600;
  color:       var(--pw-text);
  line-height: 1.3;
}

.pw-testi-role {
  font-size: 12px;
  color:     var(--pw-text-sub);
}

/* ── CONTACT SECTION ──────────────────────────────────────── */
.pw-contact {
  padding: 64px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap:     60px;
  align-items: center;
}

.pw-contact-info h2 {
  font-family:   var(--pw-font-h);
  font-size:     clamp(22px, 3vw, 34px);
  font-weight:   800;
  color:         var(--pw-text);
  margin:        0 0 16px;
  letter-spacing:-0.02em;
  line-height:   1.15;
}

.pw-contact-info p {
  color:      var(--pw-text-sub);
  font-size:  14px;
  line-height:1.7;
  margin:     0 0 28px;
}

.pw-contact-items {
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

.pw-contact-item {
  display:     flex;
  align-items: center;
  gap:         12px;
  font-size:   14px;
  color:       var(--pw-text-sub);
}

.pw-contact-item-icon {
  width:         36px;
  height:        36px;
  border-radius: 8px;
  background:    rgba(var(--pw-primary-rgb,0,102,255),0.1);
  display:       flex;
  align-items:   center;
  justify-content:center;
  flex-shrink:   0;
  color:         var(--pw-primary);
}

.pw-contact-item-icon svg { width: 16px; height: 16px; }

.pw-contact-form {
  display:        flex;
  flex-direction: column;
  gap:            14px;
  background:     var(--pw-surface);
  padding:        32px;
  border-radius:  var(--pw-radius);
  border:         1px solid var(--pw-border);
}

.pw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pw-form-group {
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.pw-form-group label {
  font-size:   12px;
  font-weight: 600;
  color:       var(--pw-text-sub);
  letter-spacing: 0.05em;
}

.pw-form-group input,
.pw-form-group textarea {
  padding:       10px 14px;
  border-radius: 8px;
  border:        1px solid var(--pw-border);
  background:    var(--pw-bg);
  color:         var(--pw-text);
  font-family:   var(--pw-font-b);
  font-size:     13px;
  outline:       none;
  transition:    border-color 0.2s;
}

.pw-form-group input:focus,
.pw-form-group textarea:focus {
  border-color: var(--pw-primary);
}

.pw-form-group textarea { resize: vertical; min-height: 80px; }

.pw-form-submit {
  padding:       13px;
  border-radius: 9px;
  background:    var(--pw-primary);
  color:         #fff;
  border:        none;
  font-family:   var(--pw-font-h);
  font-size:     14px;
  font-weight:   700;
  cursor:        pointer;
  transition:    all 0.2s;
}

.pw-form-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── FOOTER ───────────────────────────────────────────────── */
.pw-footer {
  background:    var(--pw-surface);
  border-top:    1px solid var(--pw-border);
  padding:       40px;
}

.pw-footer-top {
  display:               grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap:                   40px;
  margin-bottom:         40px;
}

.pw-footer-brand { }

.pw-footer-logo {
  font-family:   var(--pw-font-h);
  font-size:     20px;
  font-weight:   800;
  color:         var(--pw-primary);
  margin-bottom: 12px;
}

.pw-footer-desc {
  font-size:   13px;
  color:       var(--pw-text-sub);
  line-height: 1.6;
  margin:      0;
}

.pw-footer-col h4 {
  font-family:   var(--pw-font-h);
  font-size:     13px;
  font-weight:   700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:         var(--pw-text);
  margin:        0 0 16px;
}

.pw-footer-col ul {
  list-style:  none;
  margin:      0;
  padding:     0;
  display:     flex;
  flex-direction:column;
  gap:         10px;
}

.pw-footer-col ul li a {
  font-size:       13px;
  color:           var(--pw-text-sub);
  text-decoration: none;
  transition:      color 0.2s;
}

.pw-footer-col ul li a:hover { color: var(--pw-primary); }

.pw-footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding-top:     24px;
  border-top:      1px solid var(--pw-border);
}

.pw-footer-copy {
  font-size: 12px;
  color:     var(--pw-text-sub);
}

.pw-footer-links {
  display: flex;
  gap:     20px;
}

.pw-footer-links a {
  font-size:       12px;
  color:           var(--pw-text-sub);
  text-decoration: none;
  transition:      color 0.2s;
}

.pw-footer-links a:hover { color: var(--pw-primary); }

/* ── FAQ SECTION ──────────────────────────────────────────── */
.pw-faq {
  padding: 64px 40px;
}

.pw-faq-list {
  max-width:      700px;
  margin:         40px auto 0;
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.pw-faq-item {
  border:         1px solid var(--pw-border);
  border-radius:  var(--pw-radius);
  overflow:       hidden;
}

.pw-faq-q {
  padding:       18px 24px;
  font-size:     15px;
  font-weight:   600;
  color:         var(--pw-text);
  cursor:        pointer;
  display:       flex;
  justify-content:space-between;
  align-items:   center;
  background:    var(--pw-surface);
}

.pw-faq-a {
  padding:    0 24px 18px;
  font-size:  13px;
  color:      var(--pw-text-sub);
  line-height:1.7;
  background: var(--pw-surface);
}

/* ── GALLERY SECTION ──────────────────────────────────────── */
.pw-gallery {
  padding: 64px 40px;
  background: var(--pw-surface);
}

.pw-gallery-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   12px;
  margin-top:            40px;
}

.pw-gallery-item {
  border-radius:var(--pw-radius);
  overflow:     hidden;
  aspect-ratio: 4/3;
}

.pw-gallery-item img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform 0.4s;
  display:    block;
}

.pw-gallery-item:hover img { transform: scale(1.06); }

/* ── GLASSMORPHISM VARIANT ────────────────────────────────── */
.aiwb-pw.pw-glass .pw-card {
  background:      rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border:          1px solid rgba(255,255,255,0.1);
}

.aiwb-pw.pw-glass .pw-nav {
  background:      rgba(8,9,15,0.6);
  backdrop-filter: blur(20px);
  border-bottom:   1px solid rgba(255,255,255,0.08);
}

.aiwb-pw.pw-glass .pw-testi-card {
  background:      rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}

/* ── LUXURY STYLE ─────────────────────────────────────────── */
.aiwb-pw.pw-luxury .pw-hero h1 {
  font-style: italic;
  letter-spacing: -0.03em;
}

.aiwb-pw.pw-luxury .pw-btn-primary {
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

/* ── BOLD STYLE ───────────────────────────────────────────── */
.aiwb-pw.pw-bold .pw-hero {
  min-height: 560px;
}

.aiwb-pw.pw-bold .pw-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.0;
}

/* ── MINIMAL STYLE ────────────────────────────────────────── */
.aiwb-pw.pw-minimal .pw-hero-overlay {
  background: linear-gradient(105deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.aiwb-pw.pw-minimal .pw-card {
  border: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
