/* Invest Place -- Design System: Light, professional, virtual office. Mobile-first */

:root {
  --color-bg: #FFFFFF;
  --color-surface: #F7F8FA;
  --color-surface-light: #EEF0F3;
  --color-accent: #C96A10;
  --color-accent-hover: #B55E0E;
  --color-accent-dark: #A3540D;
  --color-text: #1A1A1A;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-border: rgba(0,0,0,0.1);
  --color-border-hover: rgba(0,0,0,0.2);
  --color-topbar-bg: #1A1A1A;
  --color-topbar-text: #B0B0B0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1000px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-main); font-size: 16px; line-height: 1.7; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); font-weight: 700; line-height: 1.25; color: var(--color-text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--color-text-secondary); }
.lead { font-size: 1.15rem; color: var(--color-text-secondary); line-height: 1.8; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--alt { background: var(--color-surface); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header p { max-width: 600px; margin: 0.5rem auto 0; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Topbar -- stays dark */
.topbar { background: var(--color-topbar-bg); border-bottom: none; font-size: 0.8rem; padding: 0.4rem 0; }
.topbar__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; color: var(--color-topbar-text); }
.lang-switcher { display: flex; gap: 0.5rem; }
.lang-switcher a { color: var(--color-topbar-text); font-weight: 500; font-size: 0.8rem; padding: 0.15rem 0.4rem; border-radius: 3px; transition: all var(--transition); text-decoration: none; }
.lang-switcher a:hover { color: #fff; }
.lang-switcher a.active { color: var(--color-accent); background: rgba(232, 122, 30, 0.15); }

/* Header & Nav */
.header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; max-width: var(--max-width); margin: 0 auto; }
.header__logo { font-size: 1.4rem; font-weight: 800; color: var(--color-text); letter-spacing: -0.5px; text-decoration: none; }
.header__logo span { color: var(--color-accent); }
.nav { display: none; }
.nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); padding: 1rem; gap: 0; }
.nav a { display: block; padding: 0.75rem 1rem; color: var(--color-text-secondary); font-size: 0.95rem; font-weight: 500; border-radius: var(--radius); text-decoration: none; }
.nav a:hover { background: var(--color-surface); color: var(--color-text); }
.nav__cta { background: var(--color-accent) !important; color: #fff !important; font-weight: 600 !important; text-align: center; margin-top: 0.5rem; border-radius: var(--radius) !important; }
.nav__cta:hover { background: var(--color-accent-hover) !important; }
@media (min-width: 992px) {
  .nav { display: flex; align-items: center; gap: 0.25rem; }
  .nav a { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
  .nav__cta { margin-top: 0; margin-left: 0.5rem; padding: 0.5rem 1.25rem !important; }
  .hamburger { display: none; }
}
.hamburger { background: none; border: none; cursor: pointer; padding: 0.5rem; display: flex; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text-secondary); border-radius: 2px; transition: all var(--transition); }

/* Hero */
.hero { padding: 4rem 0 3rem; position: relative; overflow: hidden; }
.hero__content { max-width: 600px; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--color-accent); }
.hero .lead { margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
  .hero { padding: 5rem 0 4rem; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
}
.hero__image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* Trust Bar */
.trust-bar { background: var(--color-topbar-bg); padding: 1rem 0; text-align: center; }
.trust-bar__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; }
.trust-bar__item { color: var(--color-topbar-text); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.trust-bar__number { color: var(--color-accent); font-size: 1.3rem; font-weight: 800; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none !important; transition: all var(--transition); cursor: pointer; border: none; font-family: var(--font-main); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--color-text); border: 1px solid var(--color-border-hover); }
.btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--phone { font-size: 1.2rem; letter-spacing: 0.5px; }

/* Cards */
.card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; transition: all var(--transition); }
.card:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon { width: 48px; height: 48px; background: rgba(232, 122, 30, 0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--color-accent); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; margin-bottom: 0; color: var(--color-text-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; position: relative; }
.step__number { width: 56px; height: 56px; border-radius: 50%; background: rgba(232, 122, 30, 0.15); color: var(--color-accent); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.9rem; color: var(--color-text-muted); }

/* Pricing Banner */
.pricing-banner { background: var(--color-topbar-bg); border-radius: var(--radius-lg); padding: 2.5rem 2rem; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .pricing-banner { grid-template-columns: auto 1fr auto; padding: 3rem; } }
.pricing-banner__price { text-align: center; }
@media (min-width: 768px) { .pricing-banner__price { text-align: left; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 2rem; } }
[dir="rtl"] .pricing-banner__price { border-right: none; padding-right: 0; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 2rem; text-align: right; }
.pricing-banner__amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--color-accent); line-height: 1.1; }
.pricing-banner__period { font-size: 0.9rem; color: var(--color-topbar-text); margin-top: 0.25rem; }
.pricing-banner__features { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 480px) { .pricing-banner__features { grid-template-columns: 1fr 1fr; } }
.pricing-banner__features li { display: flex; align-items: center; gap: 0.6rem; color: #ddd; font-size: 0.95rem; }
.pricing-banner__features li svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.pricing-banner__cta { text-align: center; }
.pricing-banner__cta .btn--primary { background: var(--color-accent); font-size: 1.1rem; white-space: nowrap; }
.pricing-banner__cta .btn--primary:hover { background: var(--color-accent-hover); }
.pricing-banner__subtitle { font-size: 0.8rem; color: var(--color-topbar-text); margin-top: 0.5rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__caption { text-align: center; margin-top: 0.5rem; font-size: 0.85rem; color: var(--color-text-muted); }

/* Audience */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 768px) { .audience { grid-template-columns: repeat(5, 1fr); } }
.audience__item { text-align: center; padding: 1.5rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: all var(--transition); }
.audience__item:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.audience__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.audience__icon img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.audience__item h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.audience__item p { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0; }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question { width: 100%; background: none; border: none; color: var(--color-text); font-family: var(--font-main); font-size: 1rem; font-weight: 600; text-align: left; padding: 1.25rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__question::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--color-accent); flex-shrink: 0; transition: transform var(--transition); }
.faq__item.open .faq__question::after { content: '-'; }
.faq__answer { display: none; padding-bottom: 1.25rem; }
.faq__item.open .faq__answer { display: block; }
.faq__answer p { font-size: 0.95rem; color: var(--color-text-secondary); margin-bottom: 0; }

/* Blog cards */
.blog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; transition: all var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.blog-card__tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-accent); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--color-text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--color-accent); }
.blog-card p { font-size: 0.9rem; color: var(--color-text-muted); flex-grow: 1; }
.blog-card__link { font-size: 0.9rem; font-weight: 600; color: var(--color-accent); }

/* Blog page */
.blog-list { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
.article { max-width: 700px; margin: 0 auto; }
.article h1 { margin-bottom: 1.5rem; }
.article h2 { margin-top: 2rem; font-size: 1.4rem; }
.article h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.article p { color: var(--color-text-secondary); line-height: 1.8; }
.article ul, .article ol { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.article li { margin-bottom: 0.5rem; color: var(--color-text-secondary); line-height: 1.7; }
.article ol { list-style: decimal; }
.article__meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.article__back { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.9rem; color: var(--color-text-muted); }
.article__back:hover { color: var(--color-accent); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact__info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon { width: 40px; height: 40px; background: rgba(232, 122, 30, 0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); }
.contact__icon svg { width: 20px; height: 20px; }
.contact__text h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.contact__text p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0; }
.contact__text a { color: var(--color-accent); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 250px; background: var(--color-surface); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.contact__map iframe { width: 100%; height: 100%; min-height: 300px; border: none; }

/* Footer */
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 2.5rem 0 1.5rem; font-size: 0.85rem; color: var(--color-text-muted); }
.footer__inner { display: flex; flex-direction: column; gap: 1.5rem; }
.footer__brand { font-size: 1.2rem; font-weight: 800; color: var(--color-text); }
.footer__brand span { color: var(--color-accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer__links a { color: var(--color-text-muted); font-size: 0.85rem; text-decoration: none; }
.footer__links a:hover { color: var(--color-accent); }
.footer__bottom { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); font-size: 0.8rem; }
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Legal pages */
.legal { max-width: 700px; margin: 0 auto; padding: 2rem 0; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.legal p, .legal li { color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.8; }
.legal ul, .legal ol { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 0.4rem; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-bg); border-top: 1px solid var(--color-border); padding: 1.25rem 1rem; z-index: 1000; display: none; box-shadow: 0 -4px 20px rgba(0,0,0,0.12); max-height: 40vh; overflow-y: auto; }
@media (max-width: 767px) { .cookie-banner { padding: 0.75rem; } .cookie-banner p { font-size: 0.78rem; } .cookie-banner__actions button { padding: 0.4rem 0.75rem; font-size: 0.8rem; } }
.cookie-banner.show { display: block; }
.cookie-banner__inner { max-width: var(--max-width); margin: 0 auto; }
.cookie-banner__top { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 768px) { .cookie-banner__top { flex-direction: row; justify-content: space-between; align-items: center; } }
.cookie-banner p { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 0; line-height: 1.5; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner__actions button { padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-main); transition: all var(--transition); }
.cookie-btn-accept { background: var(--color-accent); color: #fff; }
.cookie-btn-accept:hover { background: var(--color-accent-hover); }
.cookie-btn-reject { background: var(--color-surface); color: var(--color-text-secondary); border: 1px solid var(--color-border) !important; }
.cookie-btn-reject:hover { border-color: var(--color-border-hover) !important; }
.cookie-btn-settings { background: none; color: var(--color-accent); text-decoration: underline; padding: 0.5rem 0.25rem !important; font-weight: 500; }
.cookie-btn-settings:hover { color: var(--color-accent-hover); }
/* Settings panel */
.cookie-settings { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.cookie-settings.open { display: block; }
.cookie-category { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); }
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category__info h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.cookie-category__info p { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0; }
/* Toggle switch */
.cookie-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider { position: absolute; cursor: pointer; inset: 0; background: var(--color-border); border-radius: 24px; transition: 0.3s; }
.cookie-toggle__slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--color-accent); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle__slider { opacity: 0.6; cursor: not-allowed; }
.cookie-btn-save { background: var(--color-accent); color: #fff; margin-top: 0.75rem; }

/* RTL Support (Arabic) */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .topbar__inner { flex-direction: row-reverse; }
[dir="rtl"] .header__inner { flex-direction: row-reverse; }
[dir="rtl"] .nav.open { text-align: right; }
[dir="rtl"] .nav a { text-align: right; }
[dir="rtl"] .hero__cta { justify-content: flex-end; }
[dir="rtl"] .faq__question { text-align: right; flex-direction: row-reverse; }
[dir="rtl"] .contact__item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .footer__links { justify-content: flex-end; }
[dir="rtl"] .btn--phone { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .contact__text a[href^="tel:"] { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .legal ul, [dir="rtl"] .legal ol, [dir="rtl"] .article ul, [dir="rtl"] .article ol { padding-left: 0; padding-right: 1.5rem; }
@media (min-width: 992px) { [dir="rtl"] .nav__cta { margin-left: 0; margin-right: 0.5rem; } }

/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
