/* ── SITES BY MEL — Global Styles ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:   #1B2F4E;
  --navy-dark: #122240;
  --gold:   #C9922B;
  --gold-light: #E8B04A;
  --white:  #ffffff;
  --light:  #F7F5F2;
  --gray:   #6B7280;
  --border: #E5E0D8;
  --shadow: 0 2px 12px rgba(27,47,78,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; }

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; font-weight: 700; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.2s; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,146,43,0.35); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; display: block; }

/* ── NAV ── */
.site-nav {
  background: var(--navy); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; max-width: 1100px; margin: 0 auto; height: 68px; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--white); }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 16px; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #254070 100%);
  color: var(--white); padding: 96px 24px 80px; text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; opacity: 0.88; max-width: 580px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge { display: inline-block; background: rgba(201,146,43,0.18); border: 1px solid rgba(201,146,43,0.4); color: var(--gold-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-header p { color: var(--gray); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.gold-line { width: 52px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(27,47,78,0.14); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--light); display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 0.85rem; }
.card-body { padding: 24px; }
.card-category { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 8px; }
.card-title { font-size: 1.15rem; margin-bottom: 10px; }
.card-desc { font-size: 0.9rem; color: var(--gray); margin-bottom: 18px; }
.card-price { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.card-footer { display: flex; gap: 10px; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.feature { text-align: center; padding: 24px 16px; }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature p { font-size: 0.9rem; color: var(--gray); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--navy);
  transition: border-color 0.2s; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 40px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── TESTIMONIALS / TRUST ── */
.trust-bar { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 1.5rem; font-family: 'Playfair Display', serif; color: var(--navy); }
.trust-item span { font-size: 0.82rem; color: var(--gray); }

/* ── PROCESS ── */
.process-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; counter-reset: steps; }
.process-step { padding: 28px 20px; text-align: center; position: relative; }
.process-step-num { width: 44px; height: 44px; background: var(--gold); color: var(--white); border-radius: 50%; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.87rem; color: var(--gray); }

/* ── TEMPLATE DETAIL ── */
.template-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.template-preview { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.template-preview img { width: 100%; display: block; }
.template-preview-placeholder { background: var(--light); height: 380px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--gray); }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 32px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.price-card .price { font-size: 2rem; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.price-card .price-note { font-size: 0.82rem; color: var(--gray); margin-bottom: 24px; }
.price-includes { list-style: none; margin-bottom: 24px; }
.price-includes li { padding: 6px 0; font-size: 0.9rem; color: var(--gray); }
.price-includes li::before { content: '✓ '; color: var(--gold); font-weight: 700; }

/* ── PAGE HEADER ── */
.page-header { background: var(--navy); color: var(--white); padding: 56px 24px; text-align: center; }
.page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.page-header p { opacity: 0.82; max-width: 500px; margin: 0 auto; }

/* ── ORDER SUCCESS ── */
.success-box { text-align: center; padding: 64px 40px; max-width: 560px; margin: 0 auto; }
.success-icon { font-size: 4rem; margin-bottom: 20px; }
.success-box h1 { font-size: 1.9rem; margin-bottom: 16px; }
.success-box p { color: var(--gray); margin-bottom: 12px; }
.download-link { display: inline-block; background: var(--gold); color: var(--white); padding: 14px 32px; border-radius: 4px; font-weight: 600; margin: 20px 0; font-size: 1rem; }
.download-link:hover { background: var(--gold-light); color: var(--white); }

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.87rem; opacity: 0.7; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; opacity: 0.55; }

/* ── ADMIN ── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--navy); color: var(--white); padding: 0; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar-logo { padding: 24px 20px; font-family: 'Playfair Display', serif; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.admin-sidebar-logo span { color: var(--gold); }
.admin-nav { padding: 12px 0; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: rgba(255,255,255,0.72); font-size: 0.88rem; font-weight: 500; transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav a .nav-icon { font-size: 1rem; width: 18px; text-align: center; }
.admin-nav .nav-badge { margin-left: auto; background: var(--gold); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 100px; }
.admin-main { flex: 1; background: #F0EEF0; min-height: 100vh; overflow-y: auto; }
.admin-topbar { background: var(--white); padding: 16px 32px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-topbar h1 { font-size: 1.25rem; }
.admin-content { padding: 32px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card { background: var(--white); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.stat-card .stat-label { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); }
.admin-table-wrap { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 28px; }
.admin-table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-table-header h2 { font-size: 1rem; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--light); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafaf8; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-red { background: #fee2e2; color: #991b1b; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--light); }
.admin-login-card { background: var(--white); border-radius: 8px; padding: 48px 40px; box-shadow: 0 4px 24px rgba(27,47,78,0.12); width: 100%; max-width: 380px; text-align: center; }
.admin-login-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.admin-login-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 28px; }
.form-inline { display: flex; gap: 8px; }
.form-inline input { flex: 1; }
select.status-select { padding: 5px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.82rem; }

/* ── PRICING TABLE ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.pricing-card { border: 1px solid var(--border); border-radius: 8px; padding: 36px 28px; background: var(--white); box-shadow: var(--shadow); transition: transform 0.2s; }
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured { border-color: var(--gold); position: relative; }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 3px 14px; border-radius: 100px; }
.pricing-name { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 8px; }
.pricing-price { font-size: 2.2rem; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.pricing-price small { font-size: 1rem; color: var(--gray); }
.pricing-desc { color: var(--gray); font-size: 0.88rem; margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.pricing-features li::before { content: '✓ '; color: var(--gold); font-weight: 700; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img { border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; }
.about-placeholder { background: var(--light); height: 380px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gray); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; }
  .template-detail-grid { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar-logo, .admin-nav a span { display: none; }
  .admin-content { padding: 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 56px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: 48px 0; }
}

/* ── PORTFOLIO ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.portfolio-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.portfolio-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(27,47,78,0.14); }
.portfolio-img { width: 100%; height: 220px; overflow: hidden; }
.portfolio-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.portfolio-body { padding: 24px; }
.portfolio-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 8px; }
.portfolio-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.portfolio-body p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; margin-bottom: 14px; }
.portfolio-stack { display: flex; gap: 8px; flex-wrap: wrap; }
.stack-tag { background: var(--light); color: var(--navy); font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border); }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; box-shadow: var(--shadow); }
.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.92rem; color: var(--gray); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testimonial-author span { font-size: 0.8rem; color: var(--gray); }
