/**
 * Dallas Web Pro — Layout
 * Navigation, hero, trust bar, all homepage sections, footer.
 */

/* ─── NAVIGATION ────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--dw-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 48px;
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.08);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--dw-dark);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo-text {
  font-family: var(--dw-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--dw-text);
}

.site-logo-text span {
  color: var(--dw-amber);
}

.site-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-logo-img--footer {
  height: 60px;
  filter: brightness(0) invert(1);  /* renders white on the dark footer */
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.primary-nav > li > a {
  font-family: var(--dw-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dw-text-lt);
  transition: color 0.2s;
}

.primary-nav > li > a:hover {
  color: var(--dw-text);
}

/* Nav CTA button */
.primary-nav .nav-cta > a {
  display: inline-block;
  background: var(--dw-dark);
  color: var(--dw-white) !important;
  padding: 10px 22px;
  border-radius: var(--dw-radius);
  font-size: 10.5px !important;
  letter-spacing: 0.15em !important;
  transition: background 0.3s !important;
}

.primary-nav .nav-cta > a:hover {
  background: var(--dw-amber);
}

/* Dropdown — works for both WP-generated .sub-menu and fallback .nav-drop */
.menu-item-has-children,
.nav-has-drop {
  position: relative;
}

.sub-menu,
.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dw-white);
  border-radius: 4px;
  box-shadow: var(--dw-shadow-md);
  padding: 10px 0;
  min-width: 230px;
  z-index: 200;
  border: 1px solid rgba(0, 0, 0, 0.055);
  list-style: none;
}

/* Invisible bridge fills the 12px gap so hover isn't lost moving from link → dropdown */
.sub-menu::before,
.nav-drop::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px; /* slightly larger than the gap */
}

.menu-item-has-children:hover > .sub-menu,
.nav-has-drop:hover .nav-drop {
  display: block;
}

.sub-menu a,
.nav-drop a {
  display: block;
  padding: 9px 20px;
  font-family: var(--dw-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dw-text-lt);
  transition: color 0.18s, background 0.18s;
}

.sub-menu a:hover,
.nav-drop a:hover {
  color: var(--dw-amber);
  background: var(--dw-bg);
}

.nav-drop-div {
  height: 1px;
  background: var(--dw-cream);
  margin: 6px 0;
}

/* Mobile hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dw-text);
  padding: 4px;
  line-height: 1;
}

/* ─── HERO ──────────────────────────────────── */
.site-hero {
  min-height: 100vh;
  padding-top: var(--dw-nav-height);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  max-width: var(--dw-container);
  margin-inline: auto;
  padding-inline: var(--dw-wrap-px);
  align-items: center;
  gap: 72px;
}

.hero-content {
  padding-block: 80px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--dw-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dw-amber);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--dw-amber);
}

/* H1 */
.hero-h1 {
  font-family: var(--dw-serif);
  font-size: clamp(54px, 5.8vw, 94px);
  font-weight: 300;
  line-height: 0.98;
  color: var(--dw-dark);
  margin-bottom: 30px;
  letter-spacing: -0.025em;
}

.hero-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--dw-amber);
}

/* Sub */
.hero-sub {
  font-family: var(--dw-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--dw-text-lt);
  max-width: 460px;
  margin-bottom: 48px;
}

/* Action row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

/* Trust pills */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust-item {
  font-family: var(--dw-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--dw-warm-gray);
  letter-spacing: 0.02em;
}

.hero-trust-div {
  width: 1px;
  height: 13px;
  background: var(--dw-cream);
  flex-shrink: 0;
}

/* Hero visual (browser mockups) */
.hero-visual {
  position: relative;
  height: 600px;
  flex-shrink: 0;
}

.browser-card {
  position: absolute;
  background: var(--dw-white);
  border-radius: 6px;
  box-shadow: var(--dw-shadow-lg);
  overflow: hidden;
}

.browser-card-main {
  width: 90%;
  right: 0;
  top: 32px;
  animation: floatA 9s ease-in-out infinite;
  z-index: 1;
}

.browser-card-back {
  width: 68%;
  left: 0;
  top: 110px;
  box-shadow: var(--dw-shadow-md);
  z-index: 0;
  animation: floatB 9s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-13px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.b-chrome {
  background: #EEEEED;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #E2E1DF;
}

.b-img {
  width: 100%;
  height: 265px;
  object-fit: cover;
  display: block;
}

.browser-card-back .b-img {
  height: 185px;
}

.hero-stat-badge {
  position: absolute;
  bottom: 48px;
  left: -8px;
  background: var(--dw-amber);
  color: var(--dw-white);
  padding: 22px 26px;
  border-radius: var(--dw-radius);
  box-shadow: var(--dw-shadow-amber);
  z-index: 10;
  animation: floatC 9s ease-in-out infinite;
}

.hero-stat-badge strong {
  display: block;
  font-family: var(--dw-serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.hero-stat-badge span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

@keyframes floatC {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ─── TRUST BAR ─────────────────────────────── */
.trust-bar {
  background: var(--dw-dark);
  padding: 30px var(--dw-wrap-px);
}

.trust-bar-inner {
  max-width: var(--dw-container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  opacity: 0.55;
}

.trust-text strong {
  display: block;
  font-family: var(--dw-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--dw-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.trust-text span {
  font-family: var(--dw-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dw-slate);
}

.trust-div {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

/* ─── SERVICES SECTION ──────────────────────── */
.services-section {
  background: var(--dw-cream);
  padding-block: var(--dw-space-xl);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ─── PORTFOLIO SECTION ─────────────────────── */
.portfolio-section {
  background: var(--dw-bg);
  padding-block: var(--dw-space-xl);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  gap: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ─── ABOUT SECTION ─────────────────────────── */
.about-section {
  background: var(--dw-cream);
  padding-block: var(--dw-space-xl);
}

.about-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 100px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--dw-radius);
  overflow: hidden;
  background: linear-gradient(155deg, #cdc8c2, #b5afa8);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo placeholder */
.about-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--dw-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-photo-ph svg { opacity: 0.38; }

/* Amber badge overlapping photo */
.about-accent-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--dw-amber);
  color: var(--dw-white);
  padding: 20px 24px;
  border-radius: var(--dw-radius);
  box-shadow: var(--dw-shadow-amber);
}

.about-accent-badge strong {
  display: block;
  font-family: var(--dw-serif);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.about-accent-badge span {
  font-family: var(--dw-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-heading {
  font-family: var(--dw-serif);
  font-size: clamp(36px, 3.1vw, 54px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--dw-dark);
  margin-bottom: 24px;
  letter-spacing: -0.022em;
}

.about-body {
  font-family: var(--dw-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.88;
  color: var(--dw-text-lt);
  margin-bottom: 18px;
}

.about-sig {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.about-sig-name {
  font-family: var(--dw-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--dw-dark);
  line-height: 1.2;
}

.about-sig-title {
  font-family: var(--dw-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dw-warm-gray);
  margin-top: 5px;
}

/* ─── PROCESS SECTION ───────────────────────── */
.process-section {
  background: var(--dw-dark);
  padding-block: var(--dw-space-xl);
  position: relative;
  overflow: hidden;
}

/* Ghost watermark */
.process-section::before {
  content: attr(data-wm);
  position: absolute;
  top: -40px;
  left: -16px;
  font-family: var(--dw-serif);
  font-size: 240px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.022);
  letter-spacing: -0.06em;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 48px;
}

.process-header-right {
  font-family: var(--dw-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--dw-slate);
  max-width: 300px;
  text-align: right;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
}

/* Connector line between steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 54px;
  right: 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.proc-num {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--dw-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dw-serif);
  font-size: 19px;
  font-weight: 300;
  color: var(--dw-amber-lt);
  margin-bottom: 28px;
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}

.proc-step:hover .proc-num {
  background: var(--dw-amber);
  border-color: var(--dw-amber);
  color: var(--dw-white);
}

.proc-title {
  font-family: var(--dw-serif);
  font-size: 21px;
  font-weight: 300;
  color: var(--dw-white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.proc-body {
  font-family: var(--dw-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--dw-slate);
}

/* ─── TESTIMONIALS SECTION ──────────────────── */
.testimonials-section {
  background: var(--dw-bg);
  padding-block: var(--dw-space-xl);
}

.testi-header {
  margin-bottom: 52px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ─── CONTACT SECTION ───────────────────────── */
.contact-section {
  background: var(--dw-dark);
  padding-block: var(--dw-space-xl);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: attr(data-wm);
  position: absolute;
  bottom: -80px;
  right: -16px;
  font-family: var(--dw-serif);
  font-size: 240px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.022);
  letter-spacing: -0.06em;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 96px;
  align-items: start;
}

.contact-heading {
  font-family: var(--dw-serif);
  font-size: clamp(38px, 3.4vw, 60px);
  font-weight: 300;
  color: var(--dw-white);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin-bottom: 22px;
}

.contact-sub {
  font-family: var(--dw-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--dw-slate);
  margin-bottom: 52px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: var(--dw-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-text {
  font-family: var(--dw-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--dw-slate);
  line-height: 1.6;
}

.contact-detail-text strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2px;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--dw-radius-md);
  padding: 48px 44px;
}

/* ─── FOOTER ────────────────────────────────── */
.site-footer {
  background: var(--dw-dark-deep);
  padding: 64px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  margin-bottom: 36px;
}

.footer-brand-p {
  font-family: var(--dw-sans);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--dw-slate);
  margin-top: 18px;
  max-width: 270px;
}

.footer-col-title {
  font-family: var(--dw-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-family: var(--dw-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--dw-slate);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--dw-amber-lt); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--dw-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.18);
}

.footer-tagline {
  font-family: var(--dw-serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.18);
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1100px) {
  .site-header              { padding-inline: 36px; }
  .site-hero                { grid-template-columns: 1fr; }
  .hero-visual              { display: none; }
  .trust-bar                { padding: 24px 36px; }
  .trust-bar-inner          { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .trust-div                { display: none; }
  .services-grid,
  .portfolio-grid,
  .testi-grid               { grid-template-columns: 1fr 1fr; }
  .about-grid               { grid-template-columns: 1fr; gap: 56px; }
  .about-photo-wrap         { max-width: 380px; }
  .process-steps            { grid-template-columns: 1fr 1fr; }
  .process-steps::before    { display: none; }
  .contact-grid             { grid-template-columns: 1fr; gap: 56px; }
  .footer-top               { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header              { padding-inline: 24px; }
  .nav-toggle               { display: flex; }
  .primary-nav              { display: none; }
  .primary-nav.is-open      {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--dw-nav-height);
    left: 0;
    right: 0;
    background: rgba(245, 243, 238, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 24px 28px;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    z-index: 99;
  }
  .primary-nav.is-open > li > a { padding: 12px 0; font-size: 13px; }
  .primary-nav.is-open .sub-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 4px 16px;
    background: transparent;
  }
  .primary-nav.is-open .menu-item-has-children.is-open > .sub-menu { display: block; }
  .trust-bar                { padding: 20px 24px; }
  .services-section,
  .portfolio-section,
  .about-section,
  .process-section,
  .testimonials-section,
  .contact-section          { padding-block: 72px; }
  .services-grid,
  .portfolio-grid,
  .testi-grid               { grid-template-columns: 1fr; }
  .process-steps            { grid-template-columns: 1fr; }
  .services-header,
  .portfolio-header,
  .process-header           { flex-direction: column; align-items: flex-start; gap: 16px; }
  .process-header-right     { text-align: left; max-width: 100%; }
  .contact-form-wrap        { padding: 32px 28px; }
  .footer-top               { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom            { flex-direction: column; align-items: flex-start; }
}
