/* ===== KOMYS SERVICES — Stylesheet ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --deep-blue: #1D6A96;
  --mid-blue: #3A8BB8;
  --light-blue: #7BB8D4;
  --pale-blue: #D4EAF5;
  --olive: #8B9A3B;
  --olive-light: #A8B86A;
  --white: #FFFFFF;
  --off-white: #F7FAFB;
  --warm-white: #FAFCFD;
  --dark-text: #1A2F3D;
  --body-text: #3D5566;
  --muted: #7A9AAD;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29, 106, 150, 0.08);
  transition: box-shadow 0.4s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(29, 106, 150, 0.1);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  height: 52px;
  width: auto;
  border-radius: 4px;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-blue);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body-text);
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: var(--olive);
  transition: width 0.3s ease;
}

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

.nav__links a:hover::after {
  width: 100%;
}

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

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--deep-blue);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(29, 106, 150, 0.65) 0%,
    rgba(29, 106, 150, 0.35) 40%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.08);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--deep-blue);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.35s ease;
  border: none;
  cursor: pointer;
}

.hero__cta:hover {
  background: var(--olive-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ===== Section Shared ===== */
.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 4rem);
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--dark-text);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section__text {
  font-size: 1rem;
  color: var(--body-text);
  max-width: 600px;
  line-height: 1.8;
}

/* ===== Services ===== */
.services {
  background: var(--off-white);
}

.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
}

.services__header .section__text {
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(29, 106, 150, 0.06);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--deep-blue), var(--mid-blue));
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(29, 106, 150, 0.1);
}

.service-card:hover::before {
  height: 100%;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  background: var(--pale-blue);
  color: var(--deep-blue);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Parallax Divider ===== */
.parallax-divider {
  height: 45vh;
  min-height: 300px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 106, 150, 0.7), rgba(29, 106, 150, 0.4));
}

.parallax-divider__text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.parallax-divider__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  max-width: 600px;
}

/* ===== Company Info ===== */
.company-info {
  background: var(--white);
}

.company-info__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.info-block {
  padding: 2rem 0;
}

.info-block__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.info-block__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark-text);
  line-height: 1.5;
}

.info-block + .info-block {
  margin-top: 2rem;
}

.company-info__map-side {
  position: relative;
}

.company-info__details {
  position: relative;
  z-index: 1;
}

/* ===== Contact ===== */
.contact {
  background: var(--off-white);
}

.contact__inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact__header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact__header .section__text {
  margin: 0 auto;
}

.form {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid rgba(29, 106, 150, 0.06);
  box-shadow: 0 4px 24px rgba(29, 106, 150, 0.04);
}

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

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-text);
  background: var(--off-white);
  border: 1px solid rgba(29, 106, 150, 0.12);
  border-radius: 4px;
  outline: none;
  transition: all 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--mid-blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(58, 139, 184, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  background: var(--deep-blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s ease;
  width: 100%;
  justify-content: center;
}

.form__submit:hover {
  background: var(--mid-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 106, 150, 0.25);
}

.form__success {
  text-align: center;
  padding: 3rem 1rem;
}

.form__success p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--deep-blue);
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-text);
  color: rgba(255,255,255,0.6);
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand img {
  height: 36px;
  border-radius: 3px;
  opacity: 0.9;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.footer__copy {
  font-size: 0.8rem;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.47s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.54s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .company-info__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(29,106,150,0.08);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__hamburger {
    display: flex;
  }

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

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

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

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

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

  .form {
    padding: 2rem 1.5rem;
  }

  .hero__scroll {
    display: none;
  }

  .parallax-divider {
    background-attachment: scroll;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav__logo-text {
    font-size: 0.95rem;
  }

  .nav__logo img {
    height: 42px;
  }
}
