/* ================================================================
   Gravity Professional Services — style.css
   Brand Palette:
     Slate       #2A2F36
     Warm White  #FDFCFB
     Soft Grey   #E8EAEC
     Copper      #B46E3A
     Charcoal    #1C1F23
     Sage        #7F8A82
   ================================================================ */

/* ── 1. Custom Properties ──────────────────────────────────── */
:root {
  --slate:       #2A2F36;
  --warm-white:  #FDFCFB;
  --soft-grey:   #E8EAEC;
  --copper:      #B46E3A;
  --charcoal:    #1C1F23;
  --sage:        #7F8A82;

  --copper-light: #C98048;
  --copper-dim:   #8A5228;
  --slate-light:  #3A4149;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 2px 16px rgba(28, 31, 35, 0.08), 0 1px 4px rgba(28, 31, 35, 0.05);
  --shadow-card-hover: 0 8px 40px rgba(28, 31, 35, 0.14), 0 2px 8px rgba(28, 31, 35, 0.07);
  --max-width: 1160px;

/* new, to ensure nothing gets added in the nav bar space
  --header-height: 68px;  */
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--slate);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ── 3. Utility Classes ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-10); }
}

@media (min-width: 1200px) {
  .container { padding-inline: var(--space-12); }
}

.section {
  padding-block: var(--space-24);
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-32); }
}

.section--alt {
  background-color: var(--soft-grey);
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}

.section-heading em {
  color: var(--copper);
}

/* ── 4. Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--copper);
  color: var(--warm-white);
  border: 1.5px solid var(--copper);
}

.btn--primary:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180, 110, 58, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid rgba(253, 252, 251, 0.4);
}

.btn--ghost:hover {
  background: rgba(253, 252, 251, 0.08);
  border-color: rgba(253, 252, 251, 0.7);
}

.btn--nav {
  background: var(--copper);
  color: var(--warm-white);
  border: 1.5px solid var(--copper);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn--nav:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
}

/* ── 5. Navigation ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header--scrolled {
  background: rgba(28, 31, 35, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--copper);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--warm-white);
  line-height: 1;
  flex-shrink: 0;
}

.nav__logo-text em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--copper);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links a {
  color: rgba(253, 252, 251, 0.8);
  font-size: var(--text-sm);
  font-weight: 400;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__links a:not(.btn):hover {
  color: var(--warm-white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--warm-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: var(--space-4) 0 var(--space-6);
  }

  .nav__links--open { display: flex; }

  .nav__links a {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  .nav__links .btn--nav {
    margin: var(--space-3) var(--space-6) 0;
    justify-content: center;
  }
}


/* ── 6. Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;

  /* new, to fix the nav bar, hero section spacing  */
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  /* end of new section */

  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(253, 252, 251, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 252, 251, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

/* Copper gradient accent — top right */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(180, 110, 58, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Sage gradient accent — bottom left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(127, 138, 130, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  /* padding-top: calc(68px + var(--space-16)); */
  padding-top: var(--space-8);
  padding-bottom: var(--space-48);
  max-width: 820px;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 8vw, var(--text-7xl));
  font-weight: 600;
  line-height: 1.05;
  color: var(--warm-white);
  margin-bottom: var(--space-8);
  letter-spacing: -0.01em;
}

.hero__headline em {
  color: var(--copper);
  font-style: italic;
}

.hero__sub {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  color: rgba(253, 252, 251, 0.65);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(253, 252, 251, 0.3);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(253, 252, 251, 0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.1); }
}

/* new section to fix nav bar and hero section spacing  */
.hero__logo {
  position: absolute;
  top: 1.75rem;          /* distance from top of hero */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;  /* so clicks go through to hero CTAs if overlapping */
  padding-top: var(--space-48);
}

.hero__logo img {
  display: block;
  width: min(90vw, 960px);  /* responsive, but large */
  height: auto;
}
/* end of new section */


/* ── 6.5. New addition to Hero section───────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(to bottom, #1C1F23 0%, #2A2F36 100%);
  color: var(--warm-white);
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo placement */
.hero__logo {
  position: absolute;
  top: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero__logo img {
  height: 68px; /* adjust if needed */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}


/* ── 7. About ────────────────────────────────────────────────── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

@media (min-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-24);
    align-items: start;
  }
}

.about__left {
  position: sticky;
  top: calc(68px + var(--space-8));
}

.about__accent-bar {
  width: 48px;
  height: 3px;
  background: var(--copper);
  margin-top: var(--space-8);
  border-radius: 2px;
}

.about__lead {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: var(--space-6);
}

.about__right p {
  color: var(--slate);
  margin-bottom: var(--space-5);
  line-height: 1.8;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--soft-grey);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: 600;
  color: var(--copper);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  line-height: 1.4;
}

/* ── 8. Services ─────────────────────────────────────────────── */
.services__header {
  max-width: 680px;
  margin-bottom: var(--space-16);
}

.services__intro {
  margin-top: var(--space-6);
  color: var(--slate-light, #555);
  font-size: var(--text-lg);
  line-height: 1.75;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.service-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8) var(--space-10);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(42, 47, 54, 0.06);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper) 0%, var(--sage) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--soft-grey);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  margin-bottom: var(--space-6);
  transition: background var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(180, 110, 58, 0.1);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.service-card__body {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: var(--space-6);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-card__list li {
  font-size: var(--text-sm);
  color: var(--sage);
  font-weight: 500;
  padding-left: var(--space-4);
  position: relative;
}

.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 400;
}

/* ── 9. Contact ──────────────────────────────────────────────── */
.contact {
  background: var(--charcoal);
}

.contact .section-label {
  color: var(--copper);
}

.contact .section-heading {
  color: var(--warm-white);
}

.contact .section-heading em {
  color: var(--copper);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }
}

.contact__body {
  color: rgba(253, 252, 251, 0.65);
  font-size: var(--text-base);
  line-height: 1.8;
  margin-top: var(--space-6);
}

.contact-card {
  background: rgba(253, 252, 251, 0.04);
  border: 1px solid rgba(253, 252, 251, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-10) var(--space-8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-4);
}

.contact-card__email {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: 600;
  color: var(--warm-white);
  word-break: break-all;
  transition: color var(--transition);
  margin-bottom: var(--space-8);
}

.contact-card__email:hover {
  color: var(--copper);
}

.contact-card__divider {
  height: 1px;
  background: rgba(253, 252, 251, 0.08);
  margin-bottom: var(--space-8);
}

.contact-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(253, 252, 251, 0.55);
  line-height: 1.5;
}

.contact-detail__icon {
  flex-shrink: 0;
  color: var(--copper);
  margin-top: 1px;
}

/* ── 10. Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(253, 252, 251, 0.06);
  padding-block: var(--space-10);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253, 252, 251, 0.8);
  transition: color var(--transition);
}

.footer__logo:hover { color: var(--warm-white); }

.footer__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--copper);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--warm-white);
  line-height: 1;
}

.footer__logo em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--copper);
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--sage);
  letter-spacing: 0.08em;
}

.footer__nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: var(--text-sm);
  color: rgba(253, 252, 251, 0.45);
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--warm-white); }

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(253, 252, 251, 0.25);
}

/* ── 11. Scroll-reveal Animations ───────────────────────────── */
.about__left,
.about__right,
.service-card,
.contact__left,
.contact__right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__right   { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.contact__right { transition-delay: 0.15s; }

.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── 12. Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .about__left,
  .about__right,
  .service-card,
  .contact__left,
  .contact__right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 13. Focus Styles ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── 14. Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(180, 110, 58, 0.25);
  color: var(--charcoal);
}

/* ── 15. Scrollbar (Webkit) ─────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb {
  background: var(--slate);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* ── 16. Logo Image ─────────────────────────────────────────── */
.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer__logo:hover .footer__logo-img {
  opacity: 1;
}

