/* ============================================
   DOLMSETH DIGITAL — Base Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --blue-dark: #042C53;
  --blue-hover: #0C447C;
  --blue-primary: #185FA5;
  --blue-secondary: #378ADD;
  --blue-light: #B5D4F4;
  --blue-lightest: #E6F1FB;

  --text-heading: #111110;
  --text-body: #2C2C2A;
  --text-secondary: #5F5E5A;
  --text-muted: #888780;
  --border: #D3D1C7;
  --border-light: #EEEDEB;
  --bg-alt: #F7F6F4;
  --bg-white: #FFFFFF;

  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-width: 1100px;
  --section-pad-y: 8rem;
  --section-pad-x: 3rem;

  --radius-pill: 100px;
  --radius-large: 20px;
  --radius-card: 16px;
  --radius-icon: 12px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.3s;
  --duration-medium: 0.6s;
  --duration-slow: 1s;
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 5rem;
    --section-pad-x: 1.5rem;
  }
}

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

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

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

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 5vw + 1rem, 5.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.2rem, 3vw + 0.5rem, 3.2rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.4rem);
}

h1 em, h2 em {
  font-style: italic;
}

p + p {
  margin-top: 1em;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section {
  padding: var(--section-pad-y) 0;
}

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

.section--dark {
  background: var(--blue-dark);
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: -10% -25%;
  background: radial-gradient(circle at center, rgba(55, 138, 221, 0.18), transparent 65%);
  animation: gradientDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

/* On mobile the section is short and wide, which makes the drifting
   gradient look like a rectangular stripe through the clip. Drop the
   drift on small viewports — keep a static centered glow instead. */
@media (max-width: 768px) {
  .section--dark::before {
    animation: none;
    transform: none;
    inset: 0;
  }
}

.section--dark .section__label {
  color: var(--blue-light);
}

.section--dark .section__title {
  color: var(--bg-white);
}

.section--dark .section__subtitle {
  color: var(--blue-light);
}

.section__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-primary);
  margin-bottom: 1rem;
}

.section__title {
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.section:not(.section--dark) .section__label,
.section:not(.section--dark) .section__title,
.section:not(.section--dark) .section__subtitle {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(24, 95, 165, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--blue-primary);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(24, 95, 165, 0.1);
}

.btn--white {
  background: var(--bg-white);
  color: var(--blue-dark);
  border-color: var(--bg-white);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.2);
}

.btn--outline-white {
  background: transparent;
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  border-color: var(--bg-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease,
              backdrop-filter var(--duration-fast) ease,
              -webkit-backdrop-filter var(--duration-fast) ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-light);
  padding: 0.8rem 0;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo svg {
  display: block;
  overflow: visible;
}

.header__logo-d {
  transition: transform 0.45s var(--ease-out-expo);
  transform-origin: center;
}

.header__logo:hover .header__logo-d--left {
  transform: translateX(-3px);
}

.header__logo:hover .header__logo-d--right {
  transform: translateX(3px);
}

.header__nav {
  display: flex;
  gap: 2.5rem;
}

.header__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 0.25rem 0;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.header__link:hover::after,
.header__link.is-active::after {
  transform: scaleX(1);
}

.header__link.is-active {
  color: var(--blue-primary);
}

.header.scrolled .header__link {
  color: var(--text-body);
}

/* Burger menu */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header__nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) ease;
  }

  .header__nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .header__nav .header__link {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: var(--font-heading);
  }

  .header__burger {
    display: flex;
    z-index: 101;
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-lightest) 0%, var(--bg-white) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, var(--blue-lightest) 0%, transparent 70%);
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--blue-lightest) 0%, transparent 70%);
}

.hero__shape--3 {
  width: 300px;
  height: 300px;
  top: 30%;
  left: 60%;
  background: radial-gradient(circle, rgba(55, 138, 221, 0.08) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--section-pad-x);
  max-width: 800px;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title em {
  color: var(--blue-primary);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  margin-bottom: 4rem;
}

.hero__scroll {
  color: var(--text-muted);
}

.hero__scroll svg {
  margin: 0 auto;
}

/* --- Service Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cards__note {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cards__note a,
.cards__note a:link,
.cards__note a:visited {
  color: var(--blue-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cards__note a:hover {
  color: var(--blue-hover);
}

@media (max-width: 768px) {
  .cards__note {
    margin-top: 3.5rem;
  }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card--featured {
  border-color: var(--blue-primary);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(24, 95, 165, 0.1);
}

.card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-primary);
  color: var(--bg-white);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-lightest);
  border-radius: var(--radius-icon);
}

.card__title {
  margin-bottom: 0.5rem;
}

.card__price {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.card__price strong {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-heading);
  font-family: var(--font-body);
}

.card__features {
  text-align: left;
  margin-bottom: 2rem;
}

.card__features li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.45rem 0;
  padding-left: 1.6rem;
  position: relative;
}

.card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 16px;
  height: 16px;
  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='%23185FA5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.card .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Process --- */
.process {
  position: relative;
  margin-top: 4rem;
}

.process__line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  display: none;
}

.process__svg {
  width: 100%;
  height: 2px;
}

.process__stroke {
  stroke: var(--border);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}

.process.animated .process__stroke {
  stroke-dashoffset: 0;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process__step {
  text-align: center;
}

.process__number {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-heading);
  background: var(--bg-white);
  position: relative;
  z-index: 1;
  transition: background var(--duration-medium) var(--ease-out-expo),
              border-color var(--duration-medium) var(--ease-out-expo),
              color var(--duration-medium) var(--ease-out-expo),
              transform var(--duration-medium) var(--ease-out-back);
}

.process__step.is-visible .process__number {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--bg-white);
}

.process__title {
  margin-bottom: 0.5rem;
}

.process__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 769px) {
  .process__line {
    display: block;
  }
}

@media (max-width: 768px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .process__step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1.25rem;
    text-align: left;
  }

  .process__number {
    grid-row: 1 / 3;
    margin: 0;
    align-self: start;
  }

  .process__title {
    align-self: end;
    margin-bottom: 0.25rem;
  }

  .process__desc {
    align-self: start;
  }
}

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about__photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-large);
  background: var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about__text .section__label,
.about__text .section__title {
  text-align: left;
}

.about__text p {
  color: var(--text-secondary);
}

.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about__value strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.about__value span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image {
    max-width: 55%;
    margin: 0 auto;
  }

  .about__photo {
    aspect-ratio: auto;
    height: auto;
    object-fit: unset;
    box-shadow: none;
    background: none;
    border-radius: var(--radius-large);
  }

  .about__text .section__label,
  .about__text .section__title {
    text-align: center;
  }

  .about__text p {
    text-align: center;
  }

  .about__values {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --- Features Grid --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-lightest);
  border-radius: var(--radius-icon);
  transition: transform var(--duration-fast) var(--ease-out-back);
}

.feature:hover .feature__icon {
  transform: scale(1.1);
}

.feature__title {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.feature__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- FAQ --- */
.faq {
  max-width: 700px;
  margin: 2rem auto 0;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-fast) ease;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--duration-fast) var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__question:hover {
  color: var(--blue-primary);
}

.faq__answer {
  padding-bottom: 1.5rem;
}

.faq__answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Contact --- */
.section--dark .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--text-heading);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__nav {
  display: flex;
  gap: 2rem;
}

.footer__nav a,
.footer__contact a {
  font-size: 0.88rem;
  transition: color var(--duration-fast) ease;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--bg-white);
}

.footer__bottom {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__brand svg {
    margin: 0 auto;
  }

  .footer__nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}
