/* ===== RAIT Technology – Global Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Raleway+Dots&display=swap');

:root {
  --blue: #29ABE2;
  --blue-dark: #1a8cbf;
  --blue-light: #e8f6fd;
  --gray-dark: #404041;
  --gray-mid: #6b6b6c;
  --gray-light: #f4f4f4;
  --gray-border: #e0e0e0;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --font: 'Raleway', sans-serif;
  --font-condensed: 'Raleway', sans-serif;
  --max-w: 1140px;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.6; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 88px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0 1.25rem; height: 88px; line-height: 88px;
  font-size: 14px; font-weight: 500; color: var(--gray-dark);
  letter-spacing: 0.03em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--gray-border);
  color: var(--gray-mid); font-family: var(--font); font-size: 12px;
  font-weight: 600; letter-spacing: 0.06em; padding: 4px 10px;
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-nav {
  background: var(--blue); color: var(--white);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 22px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-nav:hover { background: var(--blue-dark); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-dark); transition: all 0.3s; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 2000; padding: 1.5rem 2rem;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-border); }
.mobile-close { background: none; border: 1px solid var(--gray-border); color: var(--gray-dark); width: 36px; height: 36px; border-radius: var(--radius); cursor: pointer; font-size: 18px; }
.mobile-nav { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--gray-border); }
.mobile-nav a { display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 600; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.mobile-nav a:hover { color: var(--blue); }
.mobile-lang { display: flex; gap: 8px; margin-top: 1.5rem; }

/* ===== PAGE WRAPPER ===== */
.page-wrap { padding-top: 88px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; background: var(--blue); color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius); border: 2px solid var(--blue);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.btn-outline {
  display: inline-block; background: transparent; color: var(--blue);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius); border: 2px solid var(--blue);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-outline-white {
  display: inline-block; background: transparent; color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius); border: 2px solid var(--white);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-outline-white:hover { background: var(--white); color: var(--blue); }

/* ===== SECTION HELPERS ===== */
.section { padding: 80px 2rem; }
.section-gray { background: var(--gray-light); }
.section-blue { background: var(--blue); color: var(--white); }
.section-dark { background: var(--gray-dark); color: var(--white); }
.container { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-label-white { color: rgba(255,255,255,0.7); }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--gray-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

.text-white h1, .text-white h2, .text-white h3, .section-blue h1, .section-blue h2, .section-blue h3 { color: var(--white); }

/* ===== HERO ===== */
.hero {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-border);
  padding: 80px 2rem;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--blue); }
.hero-sub { font-size: 1.05rem; color: var(--text-light); max-width: 480px; margin-bottom: 2rem; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image-placeholder {
  width: 100%; aspect-ratio: 4/3; background: var(--white);
  border: 1px solid var(--gray-border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-mid); font-size: 14px; text-align: center; padding: 2rem;
}

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: 6px; padding: 2rem; transition: all 0.25s;
  border-top: 3px solid transparent;
}
.service-card:hover { border-top-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--gray-dark); }
.service-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; font-weight: 300; }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--blue); padding: 40px 2rem; }
.stats-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 2rem; }
.stat-number { font-family: var(--font-condensed); font-size: 3rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 6px; letter-spacing: 0.04em; font-weight: 300; }

/* ===== CTA STRIP ===== */
.cta-strip { padding: 60px 2rem; }
.cta-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; }
.section-blue .cta-inner h2 { color: var(--white); }

/* ===== ABOUT CARD ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.profile-photo {
  width: 100%; aspect-ratio: 3/4; background: var(--gray-light);
  border-radius: 6px; border: 1px solid var(--gray-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-mid); font-size: 14px; text-align: center;
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-placeholder { padding: 2rem; }
.about-text p { color: var(--text-light); font-weight: 300; margin-bottom: 1.25rem; line-height: 1.75; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.expertise-tag {
  background: var(--blue-light); color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 14px; border-radius: 100px;
}

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.25rem; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--gray-mid); letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 400;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.tally-embed { width: 100%; min-height: 500px; border: none; }

/* ===== CONTACT INFO ===== */
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-detail-icon { width: 40px; height: 40px; background: var(--blue-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-mid); margin-bottom: 2px; }
.contact-detail-value { font-size: 14px; color: var(--text); }
.contact-detail-value a { color: var(--text); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--blue); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: var(--gray-dark); color: var(--white); padding: 60px 2rem; }
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; font-weight: 300; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 1rem; letter-spacing: 0.04em; }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--white); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--gray-border); margin: 0; }

/* ===== FOOTER ===== */
footer { background: var(--gray-dark); color: var(--white); }
.footer-main { padding: 60px 2rem; max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 300; margin-top: 1rem; max-width: 300px; line-height: 1.7; }
.footer-logo svg .st0 { fill: var(--white) !important; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 2rem; }
.footer-bottom-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom-inner p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== SERVICES PARALLAX ===== */
.service-block { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block-image {
  overflow: hidden; position: relative;
}
.service-block-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
  transform: scale(1.08);
}
.service-block:hover .service-block-image img { transform: scale(1.0); }
.service-block-content {
  padding: 4rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.service-block.gray .service-block-content { background: var(--gray-light); }
.service-block-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-block-content p { color: var(--text-light); font-weight: 300; line-height: 1.75; margin-bottom: 1.5rem; }

/* ===== ABOUT PHOTO FIX ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.profile-photo { width: 100%; background: var(--gray-light); border-radius: 6px; border: 1px solid var(--gray-border); overflow: hidden; }
.profile-photo img { width: 100%; height: auto; display: block; object-fit: contain; }

/* ===== EMAIL OBFUSCATION ===== */
.email-obfuscated { cursor: pointer; color: var(--text); border-bottom: 1px dashed var(--gray-border); }
.email-obfuscated:hover { color: var(--blue); }


.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--gray-border); padding-bottom: 0.5rem; }
.legal-content h3 { font-size: 1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p { color: var(--text-light); font-weight: 300; margin-bottom: 0.75rem; }
.legal-content ul { color: var(--text-light); font-weight: 300; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal-content ul li { margin-bottom: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 1.5rem; }
  .hero { padding: 60px 1.5rem; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
