/* ============================================================
   G.A. FZE — Digital Excellence, Global Reach
   Light, photo-driven design with premium dark accents.
   ============================================================ */

:root {
  /* Brand palette — UAE-inspired, warm + trust */
  --navy:        #0a2540;
  --navy-deep:   #061a30;
  --gold:        #c8922e;
  --gold-soft:   #e0a94a;
  --red:         #c8102e;   /* falcon red */
  --green:       #2e9e4f;   /* falcon green */

  /* Light theme surfaces */
  --bg:          #ffffff;
  --bg-alt:      #f6f8fb;
  --bg-soft:     #eef2f7;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --text:        #0f1e30;
  --text-soft:   #475569;
  --text-faint:  #7a8aa0;
  --accent:      var(--navy);
  --accent-2:    var(--gold);
  --on-accent:   #ffffff;

  /* Type */
  --font-display: "Clash Display", "Georgia", serif;
  --font-body: "General Sans", system-ui, -apple-system, sans-serif;

  --text-hero: clamp(2.6rem, 6vw, 4.8rem);
  --text-2xl:  clamp(2rem, 4vw, 3rem);
  --text-xl:   clamp(1.4rem, 2.4vw, 1.9rem);
  --text-lg:   clamp(1.1rem, 1.6vw, 1.3rem);
  --text-base: 1.0625rem;
  --text-sm:   0.9375rem;
  --text-xs:   0.8125rem;

  /* Spacing */
  --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem; --space-32: 8rem;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(10,37,64,.06), 0 1px 2px rgba(10,37,64,.04);
  --shadow-md: 0 12px 30px -12px rgba(10,37,64,.18);
  --shadow-lg: 0 30px 60px -20px rgba(10,37,64,.28);
  --container: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--text); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); font-weight: 500; }
p { color: var(--text-soft); }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color:#fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: var(--space-4);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--navy-deep); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--accent);
  margin-top: var(--space-4); font-size: var(--text-sm);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .logo { width: 46px; height: auto; transition: transform .3s var(--ease); }
.brand:hover .logo { transform: scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; color: var(--text); }
.brand-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #5a6b82; font-weight: 600; }
.nav-links { display: flex; gap: var(--space-8); }
.nav-links a { font-size: var(--text-sm); font-weight: 500; color: var(--text-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent-2); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: var(--space-4); }

.menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; background: var(--bg);
  border-bottom: 1px solid var(--border); flex-direction: column; gap: var(--space-2);
  padding: var(--space-6); display: none; z-index: 99; box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: var(--text-lg); font-weight: 500; padding: .5rem 0; }
.mobile-menu .btn { margin-top: var(--space-4); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,18,40,.86) 0%, rgba(6,18,40,.55) 45%, rgba(6,18,40,.15) 100%),
    linear-gradient(0deg, rgba(6,18,40,.5) 0%, rgba(6,18,40,0) 40%);
}
.hero-inner { position: relative; z-index: 1; padding-block: var(--space-32); max-width: 760px; }
.hero-inner .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: var(--text-hero); color: #fff; margin-bottom: var(--space-6); }
.hero-welcome { display: block; font-size: .42em; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.92); margin-bottom: .4rem; }
.hero h1 .accent { display: block; color: var(--gold-soft); }
.hero-sub { font-size: var(--text-lg); color: rgba(255,255,255,.88); max-width: 56ch; margin-bottom: var(--space-8); }
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: var(--space-12); margin-top: var(--space-16); flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; color: #fff; font-weight: 600; }
.hero-stats span { font-size: var(--text-sm); color: rgba(255,255,255,.75); }

/* ============ SECTIONS ============ */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-lead { font-size: var(--text-lg); color: var(--text-soft); }

/* SERVICES */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-8); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--gold) 40%, var(--border)); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-6);
  background: color-mix(in oklab, var(--navy) 8%, transparent); color: var(--navy); }
.service-icon svg { width: 28px; height: 28px; }
.service-icon { /* keep */ }
.service-card h3 { margin-bottom: var(--space-2); }
.service-tag { font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; color: var(--accent-2); margin-bottom: var(--space-3); }
.service-card p { font-size: var(--text-sm); }

/* ABOUT */
.section-about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, var(--space-24)); align-items: center; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about-copy h2 { margin-bottom: var(--space-6); }
.about-copy p + p { margin-top: var(--space-4); }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.why-item { padding-top: var(--space-6); border-top: 2px solid var(--border); }
.why-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent-2); font-weight: 600; }
.why-item h3 { margin: var(--space-3) 0; }
.why-item p { font-size: var(--text-sm); }

/* VALUES */
.section-values { background: var(--navy); color: #fff; }
.section-values .eyebrow { color: var(--gold-soft); }
.section-values h2 { color: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-bottom: var(--space-16); }
.value-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: var(--space-8); }
.value-card h3 { color: #fff; margin-bottom: var(--space-3); }
.value-card p { color: rgba(255,255,255,.78); font-size: var(--text-sm); }
.pull-quote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500;
  color: #fff; max-width: 24ch; margin: 0 auto; text-align: center; line-height: 1.3;
  border-left: 3px solid var(--gold-soft); padding-left: var(--space-8); margin-top: var(--space-8);
}
.pull-quote { border: none; padding-left: 0; }
.pull-quote cite { display: block; margin-top: var(--space-6); font-family: var(--font-body); font-size: var(--text-sm); font-style: normal; color: var(--gold-soft); }

/* CONTACT */
.section-contact { background: var(--bg-soft); text-align: center; }
.contact-inner { max-width: 640px; margin-inline: auto; }
.contact-inner h2 { margin-bottom: var(--space-4); }
.contact-inner .section-lead { margin-bottom: var(--space-8); }
.contact-meta { margin-top: var(--space-8); font-size: var(--text-sm); font-style: normal; color: var(--text-soft); line-height: 1.7; }
.contact-licence { display: inline-block; margin-top: var(--space-2); font-size: var(--text-xs); color: #5a6b82; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding-block: var(--space-16) var(--space-8); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; align-items: flex-start; padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand .logo { width: 56px; height: auto; flex-shrink: 0; transition: transform .3s ease; }
.footer-brand:hover .logo { transform: scale(1.05); }
.footer-brand strong { display: block; font-family: var(--font-display); color: #fff; font-size: 1.1rem; }
.footer-brand span { font-size: var(--text-xs); color: rgba(255,255,255,.6); }
.footer-nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-nav a { font-size: var(--text-sm); color: rgba(255,255,255,.7); }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-contact { display: flex; flex-direction: column; gap: .3rem; font-size: var(--text-sm); }
.footer-address { font-style: normal; margin-top: var(--space-3); font-size: var(--text-xs); color: rgba(255,255,255,.55); line-height: 1.6; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); padding-top: var(--space-8); font-size: var(--text-xs); color: rgba(255,255,255,.5); }
.footer-bottom-meta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom-meta a { color: rgba(255,255,255,.7); }
.footer-bottom-meta a:hover { color: var(--gold-soft); }
.footer-licence { color: rgba(255,255,255,.5); }

/* ============ LEGAL PAGE ============ */
.legal-main { padding-block: calc(var(--space-16) + 60px) var(--space-16); }
.legal-inner { max-width: 760px; margin-inline: auto; }
.legal-inner h1 { margin-bottom: var(--space-2); }
.legal-inner .legal-lead { color: var(--text-soft); margin-bottom: var(--space-12); }
.legal-block { margin-bottom: var(--space-12); }
.legal-block h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.legal-block h3 { font-size: var(--text-base); margin-block: var(--space-4) var(--space-1); }
.legal-block p, .legal-block address { color: var(--text-soft); line-height: 1.8; font-style: normal; margin-bottom: var(--space-3); }
.legal-block ul { color: var(--text-soft); line-height: 1.8; padding-left: 1.2rem; margin-bottom: var(--space-3); }
.legal-block a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--space-8); font-weight: 500; color: var(--gold); }

/* ============ FAQ ============ */
.faq-inner { max-width: 760px; margin-inline: auto; }
.faq-inner h2 { margin-bottom: var(--space-8); }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: var(--space-4) 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); transition: color .25s var(--ease); }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq-item summary .faq-icon::before, .faq-item summary .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold); transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.faq-item summary .faq-icon::before { width: 14px; height: 2px; }
.faq-item summary .faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] summary .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { overflow: hidden; padding-right: calc(22px + var(--space-6)); }
.faq-answer p { color: var(--text-soft); line-height: 1.75; padding-bottom: var(--space-4); margin: 0; }
.faq-answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ============ BANNER ============ */
.banner { position: relative; overflow: hidden; color: #fff; padding-block: clamp(var(--space-16), 10vw, var(--space-24)); }
.banner-bg { position: absolute; inset: 0; z-index: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,40,.92) 0%, rgba(6,18,40,.7) 50%, rgba(6,18,40,.4) 100%); }
.banner-inner { position: relative; z-index: 1; max-width: 640px; }
.banner-inner .eyebrow { color: var(--gold-soft); }
.banner-inner h2 { color: #fff; margin-bottom: var(--space-4); }
.banner-inner p { color: rgba(255,255,255,.85); font-size: var(--text-lg); }

/* ============ TECHNOLOGIES ============ */
.section-tech { background: var(--bg-alt); }
.section-head-center { max-width: 640px; margin-inline: auto; text-align: center; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.tech-badge {
  display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 600; font-size: var(--text-sm); color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.tech-badge svg { width: 26px; height: 26px; color: var(--navy); flex-shrink: 0; transition: color .3s var(--ease), transform .3s var(--ease); }
.tech-badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--gold) 45%, var(--border)); }
.tech-badge:hover svg { color: var(--gold); transform: scale(1.12); }

/* ============ CONTACT FORM ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, var(--space-24)); align-items: start; text-align: left; }
.contact-intro h2 { margin-bottom: var(--space-4); }
.contact-intro .section-lead { margin-bottom: var(--space-6); }
.contact-email-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--navy); font-size: var(--text-base); }
.contact-email-link svg { width: 20px; height: 20px; color: var(--gold); }
.contact-email-link:hover { color: var(--gold); }
.contact-meta { margin-top: var(--space-8); font-size: var(--text-sm); font-style: normal; color: var(--text-soft); line-height: 1.7; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, var(--space-8)); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.field .optional { font-weight: 400; color: var(--text-faint); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: var(--text-sm); color: var(--text);
  padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-alt);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 18%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); }
.form-note { font-size: var(--text-sm); min-height: 1.2em; margin: 0; }
.form-note.error { color: var(--red); }
.form-note.success { color: var(--green); }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .menu-btn { display: inline-flex; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero-inner { padding-block: clamp(var(--space-16), 14vh, var(--space-24)); }
  .hero-stats { gap: var(--space-6) var(--space-8); margin-top: var(--space-12); }
  .section { padding-block: var(--space-16); }
  .footer-inner { flex-direction: column; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; }
  .pull-quote { padding-left: 0; font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .hero-stats { gap: var(--space-6); }
  .hero-stats li { flex: 1 1 40%; }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .service-card { padding: var(--space-6); }
  .mobile-menu .btn { width: 100%; }
}
