/* ==========================================================================
   UAE Accounting — stylesheet
   Palette: deep navy, warm gold accent, off-white canvas
   ========================================================================== */

:root {
  /* Palette sampled from the reference site --------------------------------
     teal   #2d8689  primary brand colour (headings, panels, top bar)
     teal   #008589  deeper teal used for hover/darker fills
     orange #d9642b  accent (active nav, section labels, CTAs)
     Colour values aren't protectable, so these are an exact match.
     ----------------------------------------------------------------------- */
  --teal:      #2d8689;
  --teal-dk:   #008589;
  --teal-900:  #1f6265;
  --teal-050:  #eaf4f4;
  --orange:    #d9642b;
  --orange-dk: #bd5220;

  /* Legacy aliases kept so older rules keep working */
  --navy-900: var(--teal-900);
  --navy-800: var(--teal);
  --navy-700: var(--teal-dk);
  --navy-100: var(--teal-050);
  --gold:     var(--orange);
  --gold-dk:  var(--orange-dk);

  --ink:      #33393d;
  --body:     #5c6467;
  --canvas:   #ffffff;
  --canvas-2: #f7f9f9;
  --line:     #e4e9e9;

  --wrap: 1160px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(31,98,101,.06), 0 6px 18px rgba(31,98,101,.07);
  --shadow-lg: 0 24px 60px rgba(31,98,101,.16);

  /* Reference site uses a geometric sans throughout — Poppins is the
     closest widely-available match. */
  --font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn { border-radius: 3px; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
/* On dark panels the ghost button flips to white */
.contact .btn-ghost, .service-cta .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-block { width: 100%; }

/* ---------- top utility bar ---------- */
.topbar { background: var(--teal); color: #fff; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(31,98,101,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 52px; height: 52px; flex: none;
  border: 2px solid var(--teal); border-radius: 6px;
  color: var(--teal);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  color: var(--teal); font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: .02em;
}
.brand-text em {
  color: var(--teal); font-style: normal; font-size: .58rem;
  text-transform: uppercase; letter-spacing: .28em; font-weight: 500;
}

.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav a {
  color: #55606a; text-decoration: none;
  font-size: .84rem; font-weight: 500; letter-spacing: .06em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--orange); }
.primary-nav a.is-active { color: var(--orange); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--teal); margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
/* Light hero — bright desk photo with teal type over it, as on the
   reference site. The photo sits right, copy sits left, and a white
   wash keeps the text readable across the left half. */
.hero {
  position: relative; overflow: hidden;
  background: #f4f2ef;
  color: var(--ink);
  padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 13vw, 165px);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(255,255,255,.94) 0%,
    rgba(255,255,255,.88) 34%,
    rgba(255,255,255,.55) 56%,
    rgba(255,255,255,.10) 78%,
    rgba(255,255,255,0) 100%);
}
.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 300; color: var(--teal);
  letter-spacing: -.01em; line-height: 1.05; margin-bottom: 12px;
}
.hero-sub {
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  font-weight: 300; color: var(--teal); line-height: 1.25;
  margin-bottom: 26px; max-width: 20ch;
}
.lede { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--body); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- marquee strip ---------- */
.strip { background: var(--teal); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.strip-track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: slide 38s linear infinite; }
.strip-track span {
  color: rgba(255,255,255,.42); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .2em; white-space: nowrap; position: relative;
}
.strip-track span { color: rgba(255,255,255,.72); }
.strip-track span::after { content: "◆"; margin-left: 48px; color: var(--orange); opacity: .9; font-size: .55rem; vertical-align: middle; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: var(--canvas-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.rule { display: block; width: 44px; height: 2px; background: var(--orange); margin-bottom: 16px; }
.rule.light { background: var(--orange); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
/* Reference site sets section labels in small uppercase orange */
.section-head h2, .section-label h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--teal);
  letter-spacing: -.01em; margin-bottom: .35em;
}
.section-head p { font-size: 1.08rem; margin: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 6vw, 72px); }

/* About photo with a gold offset frame behind it */
.about-photo { margin: 26px 0 0; position: relative; }
.about-photo::before {
  content: ""; position: absolute; left: -14px; top: -14px; right: 26px; bottom: 26px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.about-photo img {
  position: relative; z-index: 1; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about-body .big { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--ink); line-height: 1.45; margin-bottom: .9em; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy-100); color: var(--navy-700); font-size: .72rem; font-weight: 700;
}

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.service {
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleY(1); }
.service .num { font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--orange); letter-spacing: .1em; }
.service h3 { font-size: 1.08rem; font-weight: 600; color: var(--teal); margin: 10px 0 8px; }
.service p { margin: 0; font-size: .94rem; }

.service-cta { background: var(--teal); border-color: var(--teal); display: flex; flex-direction: column; justify-content: center; }
.service-cta h3 { color: #fff; }
.service-cta p { color: rgba(255,255,255,.85); margin-bottom: 14px; }
.service-cta a { color: #fff; text-decoration: underline; font-weight: 600; font-size: .95rem; }
.service-cta a:hover { text-decoration: underline; }
.service-cta:hover { transform: translateY(-4px); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 4vw, 44px); }
.why { padding-top: 22px; border-top: 2px solid var(--orange); }
.why h3 { font-size: 1.12rem; color: var(--teal); font-weight: 600; margin-bottom: .5em; }
.why p { margin: 0; font-size: .97rem; }

/* ---------- contact ---------- */
/* Solid teal panel with a faint chevron pattern, as on the reference site */
.contact {
  position: relative;
  background-color: var(--teal);
  background-image:
    repeating-linear-gradient(60deg,  rgba(255,255,255,.045) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,.045) 0 2px, transparent 2px 22px);
  color: #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 72px); align-items: start; }
.contact h2 { color: #fff; }
.contact-copy p { color: rgba(255,255,255,.76); max-width: 46ch; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 84px 1fr; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-list span { color: #ffd9c2; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.contact-list a:hover { border-color: #fff; }
.contact-list p { margin: 0; color: rgba(255,255,255,.85); }

.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label em { font-style: normal; font-weight: 400; color: var(--body); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--canvas-2); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,134,137,.15);
}
.form-note { margin: 14px 0 0; font-size: .82rem; color: var(--body); text-align: center; }

/* Honeypot — hidden from humans, visible to naive bots. Never use
   display:none; some bots skip those fields deliberately. */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Submit feedback */
.form-status {
  margin: 14px 0 0; padding: 0; font-size: .9rem; font-weight: 500;
  border-radius: 10px; text-align: center;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .25s ease, opacity .25s ease, padding .25s ease;
}
.form-status.is-visible { max-height: 140px; opacity: 1; padding: 13px 16px; }
.form-status.success { background: #e8f5ec; color: #1c6b3a; border: 1px solid #bfe3cb; }
.form-status.error   { background: #fdecec; color: #a02525; border: 1px solid #f5c9c9; }

.contact-form button[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.7); padding: clamp(44px, 6vw, 64px) 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-bottom: 34px; }
.footer-brand { display: flex; gap: 16px; max-width: 460px; }
.footer-brand p { margin: 0; font-size: .93rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .93rem; }
.footer-nav a:hover { color: var(--orange); }
.site-footer .brand-mark { border-color: rgba(255,255,255,.5); color: #fff; }
.footer-bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 26px;
}
.footer-bar p { margin: 0; font-size: .84rem; color: rgba(255,255,255,.5); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid .section-label { margin-bottom: 4px; }
  .about-photo { max-width: 460px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 0 clamp(20px, 5vw, 40px);
    max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31,98,101,.10);
  }
  .primary-nav.open { max-height: 340px; padding: 8px clamp(20px, 5vw, 40px) 18px; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .topbar-alt { display: none; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
