/* eDesignSuite OÜ – brand: navy #1A2433, gold #B8975E */

:root {
  --navy: #1A2433;
  --navy-light: #2a3a4f;
  --gold: #B8975E;
  --gold-light: #d4b87a;
  --gold-dark: #9a7d4a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-100: #f1f0ec;
  --gray-200: #e2e0da;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --shadow-sm: 0 1px 3px rgba(26, 36, 51, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 36, 51, 0.1);
  --shadow-lg: 0 12px 40px rgba(26, 36, 51, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

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

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

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

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

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

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

.header__logo img {
  height: 52px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a:not(.btn) {
  font-weight: 500;
  color: var(--navy);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.header__nav a:not(.btn):hover {
  color: var(--gold);
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
  background: var(--off-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(184, 151, 94, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26, 36, 51, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(184, 151, 94, 0.15);
  border-radius: 100px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 2rem;
}

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

.hero__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  position: relative;
}

.hero__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy));
  border-radius: 0 0 4px 4px;
}

.hero__card-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero__card-icon svg {
  width: 32px;
  height: 32px;
}

.hero__card h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.hero__card p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* Stats */
.stats {
  background: var(--navy);
  padding: 2.5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.stats__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* Services */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}

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

.service-card--featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.service-card--featured:hover {
  border-color: var(--gold);
}

.service-card--featured h3,
.service-card--featured p {
  color: var(--white);
}

.service-card--featured p {
  opacity: 0.85;
}

.service-card--featured .service-card__icon {
  background: var(--gold);
  color: var(--navy);
}

.service-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--navy);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--gold-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* About */
.about {
  padding: 5rem 0;
  background: var(--off-white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about__content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.about__content > p {
  color: var(--gray-500);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--navy);
}

.about__list svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.about__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.about__logo {
  max-width: 280px;
  filter: drop-shadow(var(--shadow-md));
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact__info > p {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  transition: color var(--transition);
}

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

.contact__detail svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact__company {
  padding: 1.25rem 1.5rem;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact__company strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.contact__company span {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Form */
.contact__form {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 94, 0.2);
}

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

.contact__form .btn--full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
}

/* Honeypot – hidden from users, visible to some bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand img {
  margin-bottom: 1rem;
  border-radius: 8px;
}

.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 260px;
}

.footer__links h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__links li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

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

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer__bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
  margin: 0;
}

.footer__credit {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer__credit a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__credit a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer__legal {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal:hover {
  color: var(--gold-light);
}

/* Privacy */
.privacy {
  padding: 4rem 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}

.privacy h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 2rem;
  text-align: center;
}

.privacy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.privacy h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.privacy p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.privacy a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.privacy a:hover {
  color: var(--navy);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner[hidden] {
  display: block;
  visibility: hidden;
}

.cookie-banner--visible[hidden] {
  visibility: visible;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.9rem;
  flex: 1;
  min-width: 240px;
}

.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-banner .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 200;
  pointer-events: none;
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__visual {
    order: 2;
  }

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

  .about__logo-wrap {
    order: -1;
  }

  .about__logo {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .header__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

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

  .footer__brand p {
    max-width: none;
  }

  .footer__brand img {
    margin-left: auto;
    margin-right: auto;
  }

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

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}
