/* dhLoor — base styles */

:root {
  --sage: #7d8c6d;
  --sage-dark: #5f6c52;
  --cream: #ede7d9;
  --teal: #2f7d78;
  --teal-dark: #245e5a;
  --dark: #112c39;
  --text-body: #33392f;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-reveal: 0.6s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  line-height: 1.5;
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--dark);
  font-weight: 600;
}

a {
  color: inherit;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 80ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Hero entrance (page load, not scroll-triggered) */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .eyebrow.eyebrow-lined,
.hero h1,
.hero-lead,
.hero-actions,
.hero-dot-cluster {
  opacity: 0;
  animation: hero-fade-up 0.8s var(--ease-out) both;
}

.hero .eyebrow.eyebrow-lined {
  animation-delay: 0.1s;
}

.hero h1 {
  animation-delay: 0.2s;
}

.hero-lead {
  animation-delay: 0.35s;
}

.hero-actions {
  animation-delay: 0.45s;
}

.hero-dot-cluster {
  animation-delay: 0.55s;
}

@keyframes hero-fade-up-centered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator {
  opacity: 0;
  animation: hero-fade-up-centered 0.8s var(--ease-out) 0.9s both;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .software-track {
    animation: none;
  }

  .software-marquee {
    overflow-x: auto;
  }

  .scroll-indicator-arrow {
    animation: none;
    opacity: 0.7;
  }

  .hero .eyebrow.eyebrow-lined,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-dot-cluster,
  .scroll-indicator {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--teal-dark);
}

.btn-outline {
  border-color: var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--teal);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  background: var(--sage);
  color: #fff;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0;
}

.hero-shape {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(125, 140, 109, 0.55), rgba(17, 44, 57, 0.35)),
    url('/assets/images/hero-photo.jpg') center / cover no-repeat;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-dots {
  position: absolute;
  top: 28px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  z-index: 3;
}

.scroll-indicator-label {
  color: var(--dark);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.scroll-indicator-arrow {
  font-size: 1.2rem;
  line-height: 1;
  animation: scroll-blink 1.6s ease-in-out infinite;
}

@keyframes scroll-blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  margin-left: 0;
}

.hero .eyebrow {
  opacity: 0.85;
  margin-bottom: 16px;
  display: block;
}

.hero .eyebrow.eyebrow-lined {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  opacity: 1;
  margin-bottom: 24px;
}

.hero .eyebrow.eyebrow-lined::before {
  content: '';
  width: 48px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-dot-cluster {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.hero-dot-cluster span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero h1 {
  color: var(--dark);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 span {
  color: #fff;
  font-style: italic;
}

.hero-lead {
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section heading pattern */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.circle-link {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--dark);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.circle-link:hover,
.circle-link:focus-visible {
  background: var(--dark);
  color: #fff;
  transform: rotate(45deg);
}

/* Software logo marquee */
.software-strip {
  background: #fff;
  padding: 48px 0;
  border-bottom: 1px solid rgba(17, 44, 57, 0.08);
}

.software-strip-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  opacity: 0.6;
  margin-bottom: 28px;
}

.software-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.software-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.software-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}

.software-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Services preview list */
.services-preview {
  background: #fff;
  padding: 100px 0;
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.service-row:hover {
  transform: translateX(12px);
  color: var(--teal);
}

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.service-row:hover .service-icon {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* About preview / detail shared shapes */
.about-preview,
.about-detail {
  padding: 100px 0;
}

.about-preview {
  background: var(--cream);
}

.about-detail {
  background: #fff;
}

.about-inner,
.about-detail-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 940px;
  margin: 0 auto;
}

.about-visual {
  flex: 0 0 260px;
  height: 260px;
  position: relative;
}

.about-illustration {
  width: 340px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

.about-illustration img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(17, 44, 57, 0.15));
}

.shape-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  position: absolute;
  top: 0;
  left: 0;
}

.shape-square {
  width: 100px;
  height: 100px;
  border: 2px solid var(--teal);
  position: absolute;
  bottom: 20px;
  left: 100px;
}

.shape-diamond {
  width: 80px;
  height: 80px;
  border: 2px solid var(--sage-dark);
  transform: rotate(45deg);
  position: absolute;
  top: 60px;
  right: 0;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 540px;
}

/* Values / dark statement section */
.values {
  background: var(--dark);
  color: #fff;
  padding: 100px 0;
}

.values .eyebrow {
  color: var(--teal);
  display: block;
  margin-bottom: 16px;
}

.values h2 {
  color: var(--cream);
  font-style: italic;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
}

/* Process / How it works */
.process {
  background: #fff;
  padding: 100px 0;
}

.process .section-heading {
  justify-content: flex-start;
  gap: 12px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.process-step p {
  line-height: 1.6;
}

/* CTA banner */
.cta-banner {
  background: var(--teal);
  color: #fff;
  padding: 48px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  max-width: 600px;
}

.cta-banner .btn {
  background: var(--dark);
  color: #fff;
}

.cta-banner .btn:hover {
  background: #000;
}

/* Interior page hero */
.page-hero {
  background: var(--sage);
  color: #fff;
  padding: 56px 0 28px;
}

.page-hero h1 {
  color: #fff;
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.page-hero .hero-lead {
  opacity: 0.92;
  max-width: 520px;
}

/* Services grid (services.php) */
.services-grid-section {
  background: #fff;
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.service-card {
  display: block;
  background: var(--cream);
  padding: 36px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(17, 44, 57, 0.12);
}

.service-card .service-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact page */
.contact-section {
  background: var(--cream);
  padding: 100px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.contact-info p {
  margin-bottom: 14px;
}

.contact-info a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: var(--font-sans);
  font-size: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.form-success {
  background: #e5f3e0;
  color: #2c5c1f;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.form-error {
  background: #fbeaea;
  color: #8a2b2b;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* FAQ */
.faq {
  background: var(--cream);
  padding: 100px 0;
}

.faq .section-heading {
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid rgba(17, 44, 57, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.faq-item[data-open='true'] .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}

.faq-item[data-open='true'] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding-bottom: 24px;
  max-width: 640px;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 280px;
}

.logo-light img {
  height: 48px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col a,
.footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--teal);
}

.social-links {
  display: flex;
  flex-direction: column;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-credit span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-credit a {
  display: inline-flex;
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.footer-credit a:hover {
  opacity: 1;
}

.footer-credit img {
  height: 16px;
  width: auto;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform var(--dur-base) var(--ease-out);
    z-index: 40;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

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

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 0 0 60px;
  }

  .hero-shape {
    position: static;
    width: 100%;
    height: 220px;
    clip-path: none;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 48px;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-dot-cluster {
    justify-content: center;
  }

  .hero .eyebrow.eyebrow-lined {
    justify-content: center;
  }

  .page-hero .container {
    text-align: center;
  }

  .about-inner,
  .about-detail-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-visual {
    width: 260px;
    margin: 0 auto;
  }

  .about-illustration {
    margin: 0 auto;
  }

  .values .container {
    text-align: center;
  }

  .cta-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }

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

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

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-step {
    text-align: center;
  }

  .service-card {
    text-align: center;
  }

  .service-card .service-icon {
    margin: 0 auto 20px;
  }

  .section-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
