/* ==========================================================================
   tareqdesign — Unified Liquid Glass Contact & Legal System
   Shared by contact.php and privacy.php (Warm Obsidian + Warm Paper + Teal)
   100% Harmonized with index.php, portfolio.php, services.php, blog.php & faq.php
   ========================================================================== */

:root {
  --bg: #080a0d;
  --bg-2: #0e1217;
  --ink: #f3f1ec;
  --ink-2: rgba(243, 241, 236, 0.78);
  --ink-3: rgba(243, 241, 236, 0.64);
  --line: rgba(243, 241, 236, 0.10);
  --line-strong: rgba(243, 241, 236, 0.18);
  --line-teal: rgba(35, 181, 164, 0.34);

  --brand: #23b5a4;
  --brand-bright: #4fd1c2;
  --brand-deep: #158074;
  --brand-ink: #041412;
  --amber: #dfb253;
  --danger: #fb7185;
  --success: #34d399;

  --glass-bg: linear-gradient(180deg, rgba(20, 25, 32, 0.68) 0%, rgba(11, 14, 19, 0.60) 100%);
  --glass-rim: linear-gradient(150deg, rgba(243, 241, 236, 0.20), rgba(243, 241, 236, 0.04) 48%, rgba(35, 181, 164, 0.16));
  --glass-shadow: 0 24px 56px -28px rgba(0, 0, 0, 0.74), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --sheen-color: rgba(255, 255, 255, 0.075);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Rethink Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(18px, 4.4vw, 56px);
}

html.tt-light-style-on,
body.tt-light-style-on.ct-page {
  --bg: #f6f5f1;
  --bg-2: #edeae2;
  --ink: #12171d;
  --ink-2: rgba(18, 23, 29, 0.80);
  --ink-3: rgba(18, 23, 29, 0.66);
  --line: rgba(18, 23, 29, 0.10);
  --line-strong: rgba(18, 23, 29, 0.20);
  --line-teal: rgba(15, 118, 110, 0.32);

  --brand: #0f766e;
  --brand-bright: #0d9488;
  --brand-deep: #115e59;
  --brand-ink: #ffffff;
  --danger: #be123c;
  --success: #047857;

  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 245, 241, 0.78) 100%);
  --glass-rim: linear-gradient(150deg, rgba(18, 23, 29, 0.14), rgba(18, 23, 29, 0.03) 50%, rgba(15, 118, 110, 0.18));
  --glass-shadow: 0 22px 50px -28px rgba(18, 23, 29, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --sheen-color: rgba(15, 118, 110, 0.065);
}

body.ct-page,
body.ct-page *,
body.ct-page *::before,
body.ct-page *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

body.ct-page {
  margin: 0;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: clip;
  max-width: 100%;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

html[lang="ar"] body.ct-page {
  font-family: var(--font-ar);
}

:where(body.ct-page a) {
  color: inherit;
  text-decoration: none;
}

:where(body.ct-page button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:where(body.ct-page img) {
  display: block;
  max-width: 100%;
}

body.ct-page :focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

::selection {
  background: var(--brand);
  color: var(--brand-ink);
}

/* ── Ambient Field ── */
.ct-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ct-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
}

.ct-bloom.b1 {
  width: 68vmax;
  height: 68vmax;
  top: -26vmax;
  inset-inline-start: -18vmax;
  background: radial-gradient(circle, rgba(35, 181, 164, 0.08) 0%, transparent 70%);
}

.ct-bloom.b2 {
  width: 56vmax;
  height: 56vmax;
  bottom: -24vmax;
  inset-inline-end: -16vmax;
  background: radial-gradient(circle, rgba(223, 178, 83, 0.05) 0%, rgba(35, 181, 164, 0.025) 45%, transparent 72%);
}

.ct-grain {
  position: fixed;
  inset: 0;
  opacity: 0.038;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.tt-light-style-on .ct-grain {
  opacity: 0.02;
}

/* ── Layout & Glass Primitive ── */
.ct-main {
  position: relative;
  z-index: 2;
}

.ct-wrap {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.ct-wrap-narrow {
  width: min(860px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.ct-glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}

.ct-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.ct-chrome {
  background: linear-gradient(180deg, #f7f5f0 10%, #cfd8d5 56%, #7fb9b1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.tt-light-style-on .ct-chrome {
  background: linear-gradient(180deg, #12171d 12%, #1d5d57 68%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html:not([lang="ar"]) .ct-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* ── Buttons ── */
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
}

.ct-btn-solid {
  background: linear-gradient(180deg, #32c4b3 0%, #20a797 100%);
  color: var(--brand-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 26px -12px rgba(0, 0, 0, 0.65);
}

body.tt-light-style-on .ct-btn-solid {
  background: linear-gradient(180deg, #12877d 0%, #0f766e 100%);
  color: #ffffff !important;
}

.ct-btn-solid:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #3fd0bf 0%, #24b4a3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 30px -10px rgba(35, 181, 164, 0.45);
}

.ct-btn-solid:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ct-btn-glass {
  color: var(--ink) !important;
}

.ct-btn-glass:hover {
  transform: translateY(-2px);
  color: var(--brand) !important;
}

.ct-btn-full {
  width: 100%;
  padding-block: 16px;
}

/* ── Hero Masthead ── */
.ct-hero {
  padding: clamp(32px, 5vw, 56px) 0 clamp(32px, 4vw, 48px);
}

.ct-crumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.ct-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.ct-crumb a:hover {
  color: var(--brand);
}

.ct-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.75);
  flex-shrink: 0;
}

.ct-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.ct-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.ct-hero-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}

html[lang="ar"] .ct-hero-title {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 900;
}

.ct-hero-lead {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.3vw, 18.5px);
  color: var(--ink-2);
  max-width: 56ch;
}

.ct-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ct-metric strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.ct-metric span {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ── Main Contact Bento Grid ── */
.ct-body {
  padding: 8px 0 clamp(68px, 8vw, 110px);
}

.ct-bento {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}

.ct-col-side {
  display: grid;
  gap: 18px;
}

.ct-card {
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.8vw, 34px);
}

.ct-brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px;
}

.ct-brand-logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

body:not(.tt-light-style-on) .ct-logo-dark { display: none !important; }
body:not(.tt-light-style-on) .ct-logo-light { display: block !important; }
body.tt-light-style-on .ct-logo-light { display: none !important; }
body.tt-light-style-on .ct-logo-dark { display: block !important; }

.ct-brand-meta {
  font-size: 12.5px;
  color: var(--ink-3);
}

.ct-brand-meta strong {
  display: block;
  color: var(--brand);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Channel Cards */
.ct-channels {
  display: grid;
  gap: 12px;
}

.ct-channel {
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.ct-channel:hover {
  transform: translateY(-2px);
}

.ct-channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(35, 181, 164, 0.12);
  border: 1px solid var(--line-teal);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ct-channel-body {
  min-width: 0;
  flex: 1;
}

.ct-channel-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.ct-channel-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.25s ease;
}

.ct-channel-val:hover {
  color: var(--brand);
}

.ct-channel-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--brand);
  margin-top: 3px;
  font-weight: 600;
}

.ct-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.ct-copy-btn:hover,
.ct-copy-btn.is-copied {
  color: var(--brand);
  border-color: var(--line-teal);
  background: rgba(35, 181, 164, 0.10);
}

/* Expectations Mini Card */
.ct-expect h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.ct-expect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ct-expect-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.ct-expect-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  background: rgba(35, 181, 164, 0.12);
  border: 1px solid var(--line-teal);
  border-radius: 999px;
  padding: 2px 9px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ct-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ct-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.ct-social-pill:hover {
  border-color: var(--line-teal);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ── Inquiry Form Card ── */
.ct-form-head {
  margin-bottom: 24px;
}

.ct-form-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.ct-form-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
}

.ct-form {
  display: grid;
  gap: 20px;
}

.ct-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ct-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.ct-req {
  color: var(--danger);
}

.ct-opt {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 12px;
}

/* Interactive Service Chips */
.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-chip-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.ct-chip-btn:hover {
  border-color: var(--line-teal);
  color: var(--ink);
}

.ct-chip-btn.is-selected {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

body.tt-light-style-on .ct-chip-btn {
  background: rgba(18, 23, 29, 0.03);
}

body.tt-light-style-on .ct-chip-btn.is-selected {
  color: #ffffff;
}

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 12, 18, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.tt-light-style-on .ct-input,
body.tt-light-style-on .ct-select,
body.tt-light-style-on .ct-textarea {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(18, 23, 29, 0.16);
  color: #12171d;
}

.ct-input::placeholder,
.ct-textarea::placeholder {
  color: var(--ink-3);
}

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(35, 181, 164, 0.20);
}

.ct-textarea {
  resize: vertical;
  min-height: 132px;
}

.ct-char-count {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.ct-feedback {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  border: 1px solid transparent;
}

.ct-feedback[hidden] {
  display: none !important;
}

.ct-feedback.is-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--success);
}

.ct-feedback.is-error {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: var(--danger);
}

/* ── Studio Map Stage ── */
.ct-map-sec {
  padding-bottom: clamp(72px, 9vw, 120px);
}

.ct-map-card {
  border-radius: var(--r-xl);
  padding: 16px;
}

.ct-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 10px 14px;
}

.ct-map-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ct-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.ct-map-link:hover {
  text-decoration: underline;
}

.ct-map-frame {
  width: 100%;
  height: clamp(280px, 34vw, 390px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.ct-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body:not(.tt-light-style-on) .ct-map-frame iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(92%) contrast(92%);
}

/* ── Privacy / Legal Styles ── */
.ct-legal-updated {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.ct-legal-list {
  display: grid;
  gap: 18px;
}

.ct-legal-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: 10px;
}

.ct-legal-list h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--ink);
}

.ct-legal-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
}

.ct-legal-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.ct-legal-foot h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--ink);
}

.ct-legal-foot p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}

.ct-legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .ct-hero-grid,
  .ct-bento {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ct-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ct-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-btn,
  .ct-channel,
  .ct-chip-btn,
  .ct-social-pill {
    transition: none !important;
  }
}
