/* ============================================================
   ASHLAR AGENCY — STYLES
   Order: Variables → Reset → Base → Layout → Components →
          Sections → Animations → Responsive
============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Colors */
  --color-bg-primary:      #14080E;
  --color-bg-secondary:    #1A1214;
  --color-bg-card:         #1E1318;
  --color-bg-card-hover:   #221620;

  --color-accent:          #E0A458;
  --color-accent-hover:    #C8934D;
  --color-accent-subtle:   rgba(224, 164, 88, 0.1);
  --color-accent-glow:     rgba(224, 164, 88, 0.2);

  --color-teal:            #0D5047;
  --color-teal-hover:      #0A3F39;

  --color-text-primary:    #FFFDF5;
  --color-text-secondary:  #A89F9F;
  --color-text-muted:      #6B6363;

  --color-border:          #2A2025;
  --color-border-light:    #3A3035;

  /* Shadows */
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-card-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-btn:     0 2px 12px rgba(224, 164, 88, 0.25);
  --shadow-btn-lg:  0 4px 24px rgba(224, 164, 88, 0.35);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: 100px;
  --section-py-sm: 60px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Layout */
  --container-max: 1200px;
  --container-px: 24px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Header */
  --header-h: 72px;
}


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

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

body {
  font-family: var(--font);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

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

input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ============================================================
   3. LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--alt {
  background-color: var(--color-bg-secondary);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-top: 12px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}


/* ============================================================
   4. COMPONENTS — Labels
============================================================ */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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


/* ============================================================
   5. COMPONENTS — Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  background: var(--color-accent-subtle);
  transform: translateY(-1px);
}

.btn--sm {
  font-size: 13px;
  padding: 10px 20px;
}

.btn--lg {
  font-size: 15px;
  padding: 16px 32px;
}

.btn--full {
  width: 100%;
}


/* ============================================================
   6. HEADER
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(20, 8, 14, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header__nav {
  flex: 1;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--color-text-primary);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: 4px 2px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--color-text-secondary);
}

.lang-btn--active {
  color: var(--color-accent);
}

.lang-sep {
  color: var(--color-border-light);
  font-size: 11px;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition);
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.is-open .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   7. MOBILE MENU
============================================================ */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 40px var(--container-px);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__link {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
  letter-spacing: -0.01em;
}

.mobile-menu__link:hover {
  color: var(--color-text-primary);
}

.mobile-menu__list li:last-child {
  margin-top: 24px;
}


/* ============================================================
   8. HERO
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
  isolation: isolate;
}

/* Video background */
.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 14, 0.78);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(255, 253, 245, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 5%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 620px;
}

.hero__headline {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-text-primary);
  margin-top: 16px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Hero Visual Card */
.hero__visual {
  display: none;
}

.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-lg);
  max-width: 420px;
  width: 100%;
}

.hero__card-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 8, 14, 0.05) 0%,
    rgba(20, 8, 14, 0.45) 60%,
    rgba(20, 8, 14, 0.92) 100%
  );
}

.hero__card-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 8, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: pulse-green 2.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15); }
}


/* ============================================================
   9. SERVICES
============================================================ */
.services {
  background: var(--color-bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

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

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.service-card__tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--color-accent);
  margin-top: 16px;
  line-height: 1.4;
}


/* ============================================================
   10. WHY ASHLAR
============================================================ */
.why-ashlar {
  background: var(--color-bg-primary);
}

.why-ashlar__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.why-ashlar__content {
  max-width: 600px;
}

.why-ashlar__body {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-top: 16px;
}

.why-ashlar__body + .why-ashlar__body {
  margin-top: 12px;
}

/* Pillars */
.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border-left: 2px solid var(--color-border);
  padding-left: 24px;
}

.pillar-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.pillar-card:last-child {
  border-bottom: none;
}

.pillar-card__marker {
  position: absolute;
  left: -31px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--color-bg-primary), 0 0 0 5px rgba(224, 164, 88, 0.25);
}

.pillar-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pillar-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Visual */
.why-ashlar__visual {
  display: none;
}

.why-ashlar__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-lg);
}

.why-ashlar__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.why-ashlar__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 8, 14, 0.1) 0%,
    rgba(20, 8, 14, 0.5) 60%,
    rgba(20, 8, 14, 0.9) 100%
  );
}

.why-ashlar__quote {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
  list-style: none;
}

.why-ashlar__quote p::before {
  display: none;
}


/* ============================================================
   11. RESULTS
============================================================ */
.results {
  background: var(--color-bg-secondary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.metric-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-card);
}

.metric-card__number {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  line-height: 1;
}

.metric-card__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-top: 10px;
  line-height: 1.4;
}

.metric-card__context {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  letter-spacing: 0.02em;
}

/* Trust Bar */
.trust-bar {
  margin-top: 64px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-card);
  position: relative;
  overflow: hidden;
}

.trust-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.trust-bar__text {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}


/* ============================================================
   12. CREDENTIALS
============================================================ */
.credentials {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.credentials__bg-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.credentials__bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.credentials__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 14, 0.88);
}

.credentials__inner {
  position: relative;
}

.creds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cred-card {
  background: rgba(30, 19, 24, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.cred-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.cred-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cred-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.cred-card__issuer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cred-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.cred-card__meta {
  font-size: 13px;
  color: var(--color-text-muted);
}


/* ============================================================
   13. CONTACT
============================================================ */
.contact {
  background: var(--color-bg-primary);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}

.contact__header {
  max-width: 560px;
}

.contact__form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* Form Elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.12);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input.has-error {
  border-color: #ef4444;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6363' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
  color: var(--color-text-primary);
}

.form-select option {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .form-input {
  border-color: #ef4444;
}

.contact__form .btn--full {
  margin-top: 24px;
  font-size: 15px;
  padding: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 16px;
  color: #4ade80;
  font-size: 14px;
  font-weight: 500;
}

.form-success[hidden] {
  display: none;
}


/* ============================================================
   14. FOOTER
============================================================ */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__nav-link {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color var(--transition);
  font-weight: 500;
}

.footer__nav-link:hover {
  color: var(--color-text-secondary);
}

.footer__divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
}

.footer__locations {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.footer__badge {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer__copy {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}


/* ============================================================
   15. SCROLL REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   16. RESPONSIVE — Tablet (768px+)
============================================================ */
@media (min-width: 768px) {
  :root {
    --container-px: 40px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Results */
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Credentials */
  .creds-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
}


/* ============================================================
   17. RESPONSIVE — Desktop (1024px+)
============================================================ */
@media (min-width: 1024px) {
  :root {
    --section-py: 120px;
  }

  /* Header */
  .hamburger {
    display: none;
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 55% 45%;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 100px;
  }

  .hero__visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  /* Services — 3+2 layout */
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }

  .service-card:nth-child(-n+3) {
    grid-column: span 2;
  }

  .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  /* Why Ashlar */
  .why-ashlar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .why-ashlar__visual {
    display: block;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}


/* ============================================================
   18. WORDPRESS COMPATIBILITY
============================================================ */

/* Admin bar offset — WP adds a 32px bar on top when logged in */
body.admin-bar .header {
  top: 32px;
}

body.admin-bar .hero {
  padding-top: calc(var(--header-h) + 32px);
}

body.admin-bar .mobile-menu {
  top: calc(var(--header-h) + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
  body.admin-bar .hero {
    padding-top: calc(var(--header-h) + 46px);
  }
  body.admin-bar .mobile-menu {
    top: calc(var(--header-h) + 46px);
  }
}

/* Prevent WP default styles from overriding our components */
.ashlar-site .wp-block-image img {
  height: auto;
}

.ashlar-site a {
  text-decoration: none;
  color: inherit;
}

/* Contact Form 7 integration — match our form styling */
.ashlar-site .wpcf7-form .wpcf7-text,
.ashlar-site .wpcf7-form .wpcf7-email,
.ashlar-site .wpcf7-form .wpcf7-textarea,
.ashlar-site .wpcf7-form .wpcf7-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.ashlar-site .wpcf7-form .wpcf7-text:focus,
.ashlar-site .wpcf7-form .wpcf7-email:focus,
.ashlar-site .wpcf7-form .wpcf7-textarea:focus,
.ashlar-site .wpcf7-form .wpcf7-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.12);
}

.ashlar-site .wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  padding: 16px;
  margin-top: 24px;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.ashlar-site .wpcf7-form .wpcf7-submit:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

.ashlar-site .wpcf7-form .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}

.ashlar-site .wpcf7-form .wpcf7-response-output {
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 14px;
}

/* WPForms alternative integration */
.ashlar-site .wpforms-container .wpforms-field input,
.ashlar-site .wpforms-container .wpforms-field select,
.ashlar-site .wpforms-container .wpforms-field textarea {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font);
  padding: 14px 16px;
}


/* ============================================================
   19. RESPONSIVE — Mobile nav
============================================================ */
@media (max-width: 767px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Ensure btn in header is hidden on very small screens */
  .header__right .btn--sm {
    display: none;
  }

  /* Hero */
  .hero__headline {
    font-size: clamp(32px, 8vw, 44px);
  }

  .hero__subtitle {
    font-size: 16px;
  }

  /* Section headers */
  .section__header {
    margin-bottom: 40px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Results */
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Credentials */
  .creds-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact__form {
    padding: 28px 20px;
  }

  .section__title {
    font-size: clamp(24px, 6vw, 32px);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .header__right .btn--sm {
    display: inline-flex;
  }
}
