/*
Theme Name: Nova Corporate Services
Theme URI: https://www.novacorporateservices.com
Author: Nova Corporate Services
Description: Bespoke one-page WordPress theme for Nova Corporate Services, a boutique business-setup and corporate-services firm in Dubai, UAE. Built from the Nova brand guidelines — white, beige, blue and black palette with a Playfair Display / Lora serif pairing.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nova-corporate
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
  --cream-lightest: #f8f2e6;
  --cream-light: #f2e9d8;
  --cream: #ede1c9;
  --cream-dark: #e4d5b8;
  --black: #17130f;
  --black-2: #0d0a08;
  --blue: #3e505c;
  --blue-light: #7d93a1;
  --text-dark: #221d16;
  --text-muted: #6f6553;
  --text-muted-2: #857a67;
  --on-dark: #f3ecdd;
  --on-dark-muted: #b4a992;
  --border-light: #d8c9a6;
  --border-dark: #3a3226;
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
  --container: 1120px;
}

/* ==========================================================================
   1. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--cream-lightest);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--text-dark); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; cursor: pointer; }

.nova-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}
.nova-section { padding: 96px 0; }
.nova-section--tight { padding: 72px 0; }
@media (max-width: 782px) {
  .nova-section { padding: 64px 0; }
  .nova-container { padding: 0 32px; }
}

/* Fixed (non-fluid) heading sizes on phones. iOS Safari can compute `vw`
   against a wider "ideal" viewport than what's actually visible while its
   chrome (address bar / tab strip) is animating, which makes clamp()'s
   vw term overshoot right after load. Fixed px sizes below the 600px
   breakpoint sidestep that instead of relying on viewport units. */
@media (max-width: 600px) {
  .hero__logo { font-size: 40px; }
  .hero__heading { font-size: 30px; line-height: 1.28; padding-top: 28px; }
  .section-heading { font-size: 26px; }
  .cta h2 { font-size: 26px; }

  /* Body copy: same words, smaller and tighter so paragraphs read as
     paragraphs on a phone instead of desktop-sized text stretched
     across a narrow column. Copy text is unchanged — sizing only. */
  body { font-size: 15px; line-height: 1.55; }
  .hero__sub { font-size: 16px; }
  .section-lede { font-size: 15.5px; }
  .about__copy p { font-size: 15px; }
  .nova-card p { font-size: 14.5px; }
  .service-item h3 { font-size: 18px; }
  .process-step p { font-size: 14.5px; }
  .leadership p { font-size: 15px; }
  .cta p { font-size: 16px; }
  .quote-box blockquote { font-size: 17px; }
  .footer-bottom-row .site-logo__word { font-size: 17px; }
}
@media (max-width: 380px) {
  .hero__logo { font-size: 34px; }
  .hero__heading { font-size: 26px; }
  .section-heading { font-size: 23px; }
  .cta h2 { font-size: 23px; }

  body { font-size: 14px; }
  .hero__sub { font-size: 15px; }
  .section-lede { font-size: 14.5px; }
  .about__copy p { font-size: 14px; }
  .quote-box blockquote { font-size: 16px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--blue);
}
.section-heading {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 760px;
}
.section-lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 0;
}
.on-dark .section-heading,
.on-dark h2, .on-dark h3 { color: var(--on-dark); }
.on-dark .section-lede,
.on-dark p { color: var(--on-dark-muted); }

.nova-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.nova-btn:hover { background: var(--text-dark); color: var(--cream-lightest); }
.nova-btn--blue { border-color: var(--blue); color: var(--blue); }
.nova-btn--blue:hover { background: var(--blue); color: var(--black); border-color: var(--blue); }
.nova-btn--solid { background: var(--blue); border-color: var(--blue); color: var(--black); }
.nova-btn--solid:hover { background: var(--blue-light); border-color: var(--blue-light); }
.nova-btn--on-dark { border-color: var(--on-dark-muted); color: var(--on-dark); }
.nova-btn--on-dark:hover { background: var(--on-dark); color: var(--black); }

/* ==========================================================================
   2. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-light);
  border-bottom: 1px solid var(--border-light);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}
.site-logo { display: flex; flex-direction: column; line-height: 1; }
.site-logo a { display: flex; flex-direction: column; }
.site-logo img { max-height: 42px; width: auto; }
.site-logo__word {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}
.site-logo__tag {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted-2);
  margin-top: 3px;
}
.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav ul { display: flex; gap: 34px; }
.primary-nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dark);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.primary-nav a:hover { color: var(--blue); border-color: var(--blue); }
.header-cta { flex-shrink: 0; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--text-dark);
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-light);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 24px 28px;
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 4px; width: 100%; }
  .primary-nav.is-open ul li a { display: block; padding: 10px 0; }
  .menu-toggle { display: inline-block; padding: 12px 16px; }
  .header-cta { display: none; }
}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--cream-lightest) 0%, var(--cream) 100%);
  position: relative;
}
.hero__inner { padding-top: 90px; padding-bottom: 70px; }
.hero__logo {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 58px);
  letter-spacing: 0.02em;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.hero__logo-tag {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted-2);
  margin-bottom: 48px;
}
.hero__heading {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.18;
  max-width: 900px;
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
  margin-bottom: 28px;
}
.hero__heading em {
  font-style: italic;
  color: var(--blue);
}
.hero__sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 44px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__strip {
  background: var(--black);
  color: var(--on-dark-muted);
}
.hero__strip .nova-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__strip strong { color: var(--on-dark); font-weight: 600; }

/* ==========================================================================
   4. About / Who We Are
   ========================================================================== */
.about { background: var(--cream-light); }
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }
.about__copy p { color: var(--text-muted); font-size: 17px; }
.about__langs { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.lang-pill {
  border: 1px solid var(--border-light);
  background: var(--cream-lightest);
  padding: 10px 22px;
  font-size: 14px;
  color: var(--text-dark);
}
.quote-box {
  background: var(--black);
  border: 1px solid var(--border-dark);
  padding: 44px 40px;
  position: relative;
}
@media (max-width: 600px) {
  .quote-box { padding: 30px 24px; }
  .quote-box blockquote { font-size: 18px; }
}
.quote-box__mark {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--blue);
  border: 1px solid var(--border-dark);
  width: 100%;
  padding: 4px 16px 20px;
  margin-bottom: 24px;
  line-height: 1;
}
.quote-box blockquote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.55;
  color: var(--on-dark);
}
.quote-box cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* ==========================================================================
   5. Why Choose Us
   ========================================================================== */
.why-choose { background: var(--cream-dark); }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-light); border: 1px solid var(--border-light); margin-top: 48px; }
@media (max-width: 700px) { .cards-grid { grid-template-columns: 1fr; } }
.nova-card { background: var(--cream-lightest); padding: 40px 36px; }
@media (max-width: 600px) {
  .nova-card { padding: 28px 24px; }
  .nova-card__num { width: 38px; height: 38px; margin-bottom: 16px; }
  .nova-card h3 { font-size: 19px; }
}
.nova-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  font-family: var(--font-display);
  color: var(--text-muted-2);
  font-size: 14px;
  margin-bottom: 22px;
}
.nova-card h3 { font-size: 21px; margin-bottom: 12px; }
.nova-card p { color: var(--text-muted); font-size: 15.5px; }

/* ==========================================================================
   6. Services
   ========================================================================== */
.services { background: var(--cream-light); }
.services__head { margin-bottom: 8px; }
.services-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}
@media (max-width: 700px) { .services-list { grid-template-columns: 1fr; } }
.service-item {
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 36px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .service-item { padding: 24px 24px; min-height: 0; }
  .service-item__num { padding-bottom: 10px; margin-bottom: 14px; }
  .service-item h3 { font-size: 19px; }
}
.service-item__num {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 22px;
  width: 100%;
}
.service-item h3 { font-size: 22px; font-weight: 500; }

/* ==========================================================================
   7. How We Work (dark)
   ========================================================================== */
.process {
  background: radial-gradient(120% 100% at 15% 0%, #1b242b 0%, var(--black) 55%);
  color: var(--on-dark-muted);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 60px;
  margin-top: 56px;
}
@media (max-width: 700px) { .process-grid { grid-template-columns: 1fr; } }
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue-light);
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 22px;
}
.process-step h3 { font-size: 23px; color: var(--on-dark); margin-bottom: 10px; }
.process-step p { color: var(--on-dark-muted); font-size: 15.5px; max-width: 380px; }

/* ==========================================================================
   8. Leadership
   ========================================================================== */
.leadership { background: var(--cream-light); }
.leadership__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 800px) { .leadership__grid { grid-template-columns: 1fr; gap: 20px; } }
.leadership p { color: var(--text-muted); font-size: 17px; }

/* ==========================================================================
   9. CTA (dark)
   ========================================================================== */
.cta {
  background: radial-gradient(90% 140% at 50% 10%, #1d2830 0%, var(--black) 60%);
  text-align: center;
}
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::before { display: none; }
.cta__inner { max-width: 680px; margin: 0 auto; }
.cta h2 { color: var(--on-dark); font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.cta p { color: var(--on-dark-muted); font-size: 18px; margin-bottom: 36px; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer__contact {
  background: var(--black);
  padding: 30px 0;
}
.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
}
.footer-contact-row a,
.footer-contact-row span {
  font-size: 15px;
  color: var(--on-dark);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-dark);
}
.site-footer__bottom {
  background: var(--black-2);
  padding: 26px 0;
  border-top: 1px solid var(--border-dark);
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom-row .site-logo__word { color: var(--on-dark); font-size: 19px; }
.footer-bottom-row .site-logo__tag { color: var(--on-dark-muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--on-dark-muted); }
.footer-links a:hover { color: var(--blue-light); }
.footer-copy { font-size: 13px; color: var(--on-dark-muted); }
@media (max-width: 700px) {
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   11. WP core defaults (kept minimal for any non-front-page content)
   ========================================================================== */
.wp-page-content { background: var(--cream-lightest); }
.wp-page-content .nova-container { padding-top: 80px; padding-bottom: 80px; }
.wp-page-content h1 { font-size: 40px; margin-bottom: 24px; }
.wp-page-content article + article { margin-top: 48px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
