/*
Theme Name: KMY Kate Mila One Page
Theme URI: https://kmykatemila.com/
Author: OpenAI Codex
Description: Custom one-page WordPress theme for KMY Kate Mila.
Version: 1.0.0
Text Domain: kmykatemila
*/

:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-alt: #eef3ef;
  --ink: #1f302b;
  --muted: #5b726a;
  --accent: #1aa469;
  --accent-dark: #0f7a4d;
  --accent-soft: rgba(26, 164, 105, 0.12);
  --border: rgba(31, 48, 43, 0.12);
  --shadow: 0 20px 60px rgba(18, 38, 31, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --header-height: 88px;
  --content-width: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

body.is-loaded {
  overflow-x: clip;
}

.container {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 248, 246, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.scrolled .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(28, 37, 35, 0.08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.branding {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.branding-mark {
  width: 110px;
}

.branding-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.branding-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.branding-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--accent-soft);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--accent-dark);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-pill,
.button,
.wp-element-button,
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 14px 22px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-pill,
.button.is-primary,
.wpcf7-submit {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  box-shadow: 0 18px 28px rgba(15, 122, 77, 0.22);
}

.button.is-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.5);
}

.button:hover,
.contact-pill:hover,
.wpcf7-submit:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 21, 19, 0.78) 0%, rgba(11, 21, 19, 0.38) 44%, rgba(11, 21, 19, 0.1) 100%),
    url("assets/images/kmy-hero-bg.jpg") center/cover no-repeat;
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(245, 248, 246, 0) 0%, var(--bg) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
  gap: 28px;
  padding: 72px 0 150px;
}

.hero-copy {
  max-width: 860px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.hero-title,
.section-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(2.9rem, 7vw, 5.7rem);
}

.hero-copy p,
.section-copy,
.contact-copy,
.service-card p,
.detail-card p,
.form-note {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-copy p {
  max-width: 62ch;
  margin: 22px 0 0;
}

.hero-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 780px;
}

.hero-bullet,
.service-card,
.detail-card,
.contact-card,
.contact-form-card,
.logos-strip,
.brand-grid {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-bullet {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-bullet strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.hero-bullet span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.panel-label,
.section-eyebrow,
.details-title,
.contact-card h3,
.contact-form-card h3,
.form-fallback h3 {
  font-family: "Montserrat", sans-serif;
}
.detail-card p,
.contact-card p,
.contact-form-card p,
.form-fallback p {
  color: var(--muted);
  margin: 0;
}

.panel-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section {
  padding: 90px 0;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
}

.logos-strip {
  margin-top: -70px;
  position: relative;
  z-index: 2;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.logo-marquee {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.logo-marquee img,
.brand-grid img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  opacity: 0.9;
}

.dual-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dual-panel-media {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.dual-panel-content {
  padding: clamp(28px, 5vw, 56px);
}

.section-green {
  background: linear-gradient(135deg, #0d7b4e 0%, #19a469 100%);
  color: #ffffff;
}

.section-green .section-eyebrow,
.section-green .section-copy,
.section-green .detail-card p,
.section-green .details-title,
.section-green li {
  color: rgba(255, 255, 255, 0.9);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.check-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.detail-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.details-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.section-texture {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 243, 239, 0.95)),
    url("assets/images/gray_bg.png") center/cover no-repeat;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head-products {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 36px;
}

.section-head-copy,
.section-head-side {
  min-width: 0;
}

.section-head-products .section-title {
  max-width: 7.6ch;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.section-head-products .section-copy {
  margin: 0;
  max-width: 62ch;
}

.section-head-side {
  justify-self: end;
}

.products-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(26, 164, 105, 0.1);
  color: var(--accent-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.service-grid-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.contact-card,
.contact-form-card,
.form-fallback {
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 48, 43, 0.08);
}

.service-card h3,
.contact-card h3,
.contact-form-card h3,
.form-fallback h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--muted);
}

.service-card-highlight {
  background: linear-gradient(180deg, rgba(26, 164, 105, 0.12), rgba(255, 255, 255, 0.95));
  border-color: rgba(26, 164, 105, 0.22);
}

.brand-grid {
  margin-top: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.brand-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 14px;
  background: rgba(245, 248, 246, 0.95);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 48, 43, 0.06);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 28px;
  align-items: stretch;
}

.about-media,
.about-copy-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-media {
  min-height: 100%;
  background: url("assets/images/aboutuss.png") center/cover no-repeat;
}

.about-copy-box {
  padding: clamp(28px, 5vw, 54px);
  background: #ffffff;
}

.about-copy-box p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-stack {
  display: grid;
  gap: 18px;
}

.contact-copy {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-card a,
.footer-contact a {
  color: var(--accent-dark);
  font-weight: 700;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.wpcf7-form {
  display: grid;
  gap: 14px;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input:not([type="submit"]),
.wpcf7 textarea {
  width: 100%;
  border: 1px solid rgba(31, 48, 43, 0.14);
  border-radius: 18px;
  padding: 15px 18px;
  background: #f8fbf9;
  color: var(--ink);
}

.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-spinner {
  display: none;
}

.form-fallback {
  display: grid;
  gap: 16px;
}

.site-footer {
  padding: 30px 0 40px;
  background: #10211c;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 82px;
}

.footer-copy {
  font-size: 0.92rem;
}

.footer-contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.has-motion .hero-stage > * {
  opacity: 0;
  transform: translateY(28px);
}

body.has-motion.is-loaded .hero-stage > * {
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.has-motion.is-loaded .hero-stage > *:nth-child(1) {
  animation-delay: 0.08s;
}

body.has-motion.is-loaded .hero-stage > *:nth-child(2) {
  animation-delay: 0.16s;
}

body.has-motion.is-loaded .hero-stage > *:nth-child(3) {
  animation-delay: 0.24s;
}

body.has-motion.is-loaded .hero-stage > *:nth-child(4) {
  animation-delay: 0.32s;
}

body.has-motion.is-loaded .hero-stage > *:nth-child(5) {
  animation-delay: 0.4s;
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

body.has-motion .reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

body.has-motion .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-layout,
  .contact-grid,
  .dual-panel,
  .section-head {
    grid-template-columns: 1fr;
  }

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

  .service-grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-marquee {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    min-height: 78px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 48px 0 120px;
  }

  .hero-title {
    max-width: none;
  }

  .section-head-side {
    justify-self: start;
  }

  .hero-bullets,
  .details-grid,
  .service-grid,
  .brand-grid,
  .logo-marquee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --content-width: min(100vw - 24px, 100%);
  }

  .branding-mark {
    width: 76px;
  }

  .branding-subtitle,
  .branding-copy {
    display: none;
  }

  .hero-copy p,
  .section-copy,
  .contact-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .footer-inner,
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head-products .section-title {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .section-head-products .section-copy {
    max-width: none;
  }

  .hero-bullets,
  .details-grid,
  .service-grid,
  .brand-grid,
  .logo-marquee {
    grid-template-columns: 1fr;
  }

  .button,
  .contact-pill,
  .wpcf7-submit {
    width: 100%;
  }

  .section,
  .site-footer {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .logos-strip {
    margin-top: -50px;
    padding: 18px;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .site-nav a {
    text-align: center;
  }
}
