/*
Theme Name: 369 Media
Theme URI: https://369media.com
Author: 369 Media
Author URI: https://369media.com
Description: Custom dark theme for 369 Media social media agency — multilingual inquiry page with EN/FR/AR support, service selection, contact form, and WhatsApp integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 369-media
Tags: dark, custom, responsive, one-page, rtl-language-support
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg:           #0a0a0a;
  --bg-card:      #1a1a1a;
  --bg-card-hover:#222222;
  --accent:       #e8354a;
  --accent-hover: #c92a3d;
  --accent-light: rgba(232,53,74,0.12);
  --accent-border:rgba(232,53,74,0.35);
  --text-white:   #ffffff;
  --text-gray:    #aaaaaa;
  --text-muted:   #555555;
  --border:       rgba(255,255,255,0.08);
  --input-bg:     #111111;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-pill:  50px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-white);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 20px 0;
}

.lang-btn {
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-gray);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  transition: border-color .18s, color .18s, background .18s;
}
.lang-btn:hover {
  border-color: rgba(232,53,74,.4);
  color: var(--text-white);
}
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lang-sep {
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 60px 20px 50px;
  max-width: 750px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--accent); }

.hero p {
  color: var(--text-gray);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-header h2 span { color: var(--accent); }
.section-header p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232,53,74,.3);
  transform: translateY(-2px);
}
.service-card.selected {
  border-color: var(--accent);
  background: rgba(232,53,74,.07);
}
.service-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 22px;
  text-align: center;
}

.service-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.service-info p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white);
}
label .req {
  color: var(--accent);
  margin-left: 2px;
}

input,
select,
textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
  padding: 11px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder,
textarea::placeholder { color: var(--text-muted); }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,53,74,.1);
}
select option { background: #1a1a1a; color: #fff; }
textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   PLATFORM TAGS
   ============================================================ */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.platform-tag {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-gray);
  background: var(--input-bg);
  transition: border-color .15s, color .15s, background .15s;
  -webkit-user-select: none;
  user-select: none;
}
.platform-tag:hover {
  border-color: rgba(232,53,74,.4);
  color: #fff;
}
.platform-tag.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   SELECTED SERVICES BOX
   ============================================================ */
.selected-box {
  background: rgba(232,53,74,.07);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent);
  min-height: 42px;
  line-height: 1.7;
}
.selected-box.empty {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--input-bg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 26px;
  font-family: inherit;
  letter-spacing: .3px;
  transition: background .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn:hover  { background: var(--accent-hover); }
.submit-btn:active { transform: scale(.99); }
.submit-btn:disabled { opacity: .7; cursor: not-allowed; }

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid #25d366;
  color: #25d366;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  font-family: inherit;
  text-decoration: none;
  transition: background .2s;
}
.whatsapp-btn:hover { background: rgba(37,211,102,.08); }
.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  fill: #25d366;
  flex-shrink: 0;
}

/* ============================================================
   THANK YOU STATE
   ============================================================ */
.thank-you {
  text-align: center;
  padding: 48px 20px;
  display: none;
}
.thank-you.show { display: block; }

.ty-icon {
  width: 64px;
  height: 64px;
  background: rgba(37,211,102,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.ty-icon svg {
  width: 32px;
  height: 32px;
  stroke: #25d366;
  fill: none;
  stroke-width: 2.5;
}
.thank-you h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.thank-you p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

.reset-btn {
  margin-top: 22px;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, color .2s;
}
.reset-btn:hover { border-color: #777; color: #fff; }

/* ============================================================
   VALIDATION
   ============================================================ */
.error-msg {
  font-size: 12px;
  color: var(--accent);
  margin-top: 3px;
  display: none;
}
input.invalid,
select.invalid,
textarea.invalid { border-color: var(--accent); }

.note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}
.site-footer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   GENERIC PAGE / POST CONTENT
   ============================================================ */
.page-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
.page-content-wrap h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.page-content-wrap .entry-content {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.8;
}
.page-content-wrap .entry-content p   { margin-bottom: 16px; }
.page-content-wrap .entry-content h2,
.page-content-wrap .entry-content h3  { color: var(--text-white); margin: 24px 0 12px; }
.page-content-wrap .entry-content a   { color: var(--accent); }
.page-content-wrap .entry-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.page-content-wrap .post-card-meta    { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   ARCHIVE / BLOG
   ============================================================ */
.archive-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}
.archive-wrap h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 40px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.post-card:hover {
  border-color: rgba(232,53,74,.3);
  transform: translateY(-2px);
}
.post-card a { text-decoration: none; color: inherit; }
.post-card-body  { padding: 20px; }
.post-card-body h2 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.post-card-body p  { font-size: 13px; color: var(--text-gray); line-height: 1.5; }
.post-card-meta    { font-size: 11px; color: var(--text-muted); margin-top: 12px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-wrap {
  text-align: center;
  padding: 100px 20px;
}
.error-404-wrap h1 {
  font-size: clamp(60px, 15vw, 120px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.error-404-wrap h2 {
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 16px;
}
.error-404-wrap p {
  color: var(--text-gray);
  margin-bottom: 30px;
}

.btn-home {
  display: inline-block;
  padding: 13px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s;
}
.btn-home:hover { background: var(--accent-hover); }

/* ── HONEYPOT (anti-spam) – never visible to real users ── */
.hp-field {
  display:    none !important;
  visibility: hidden !important;
  position:   absolute;
  left:       -9999px;
}

/* ============================================================
   RTL – Arabic
   ============================================================ */
body.rtl { direction: rtl; }
body.rtl label .req      { margin-left: 0; margin-right: 2px; }
body.rtl .service-card.selected::after { right: auto; left: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .form-grid        { grid-template-columns: 1fr; }
  .form-group.full  { grid-column: 1; }
  .services-grid    { grid-template-columns: 1fr; }
  .hero             { padding: 40px 16px 36px; }
  .section          { padding: 36px 16px; }
  .form-section     { padding: 36px 16px 60px; }
}
@media (max-width: 380px) {
  .lang-btn     { padding: 6px 14px; font-size: 12px; }
  .platform-tag { font-size: 11px; padding: 5px 10px; }
}
