/* =========================================================
   STONEARROW - STYLE.CSS
   Modern, premium, fully responsive corporate website
   ========================================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Colors */
  --color-dark: #1E1E1E;
  --color-white: #FFFFFF;
  --color-gold: #C9A227;
  --color-gold-dark: #A8861F;
  --color-gold-light: #E5C657;
  --color-gray-light: #F7F7F7;
  --color-gray: #E5E5E5;
  --color-text: #2B2B2B;
  --color-text-muted: #6B6B6B;

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --section-padding: 5rem 0;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 30, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 30, 30, 0.08);
  --shadow-lg: 0 16px 48px rgba(30, 30, 30, 0.12);
  --shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--color-gray-light);
}

.text-gold {
  color: var(--color-gold);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn-ghost:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-gray);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-dark);
  z-index: 1001;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-dark);
  color: var(--color-gold);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.05);
}

.logo-accent {
  color: var(--color-gold);
}

/* Desktop nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.nav-cta::after {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 26px;
  height: 2.5px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative gold shapes */
.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-decor--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15), transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-decor--2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1), transparent 70%);
  bottom: 10%;
  left: -80px;
}

.hero-decor--3 {
  width: 120px;
  height: 120px;
  background: var(--color-gold);
  opacity: 0.08;
  top: 30%;
  left: 45%;
  border-radius: var(--radius-lg);
  transform: rotate(25deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  background: rgba(201, 162, 39, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  border: 2px solid var(--color-gold);
}

.hero-badge-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}

.hero-badge-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  text-align: center;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-content strong {
  color: var(--color-dark);
  font-weight: 600;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  color: var(--color-gold);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: all var(--transition-base);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-icon {
  background: var(--color-gold);
  color: var(--color-white);
  transform: rotate(-5deg) scale(1.05);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--color-dark);
}

.service-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-logo .logo-mark {
  background: var(--color-gold);
  color: var(--color-dark);
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 320px;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateX(3px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-gold-dark);
  transform: translateY(-4px);
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE - TABLET (720px+)
   ========================================================= */
@media (min-width: 720px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 6rem 0;
  }

  .hero {
    padding: calc(var(--header-height) + 4rem) 0 5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   RESPONSIVE - DESKTOP (992px+)
   ========================================================= */
@media (min-width: 992px) {
  :root {
    --section-padding: 7rem 0;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }

  .about-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* =========================================================
   RESPONSIVE - MOBILE NAV (< 820px)
   ========================================================= */
@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85%);
    height: 100vh;
    background: var(--color-white);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--color-gray);
  }

  .nav-link {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.05rem;
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* =========================================================
   RESPONSIVE - SMALL MOBILE (< 480px)
   ========================================================= */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}