/*
Theme Name: MM Business audit & consulting
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: One-page corporate WordPress theme prototype for MM Business audit & consulting.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mm-consulting
*/

:root {
  --mm-navy: #071b3b;
  --mm-navy-2: #0d274e;
  --mm-gold: #b88a3a;
  --mm-ink: #14213d;
  --mm-muted: #5c6472;
  --mm-line: #e4ded4;
  --mm-cream: #f7f4ee;
  --mm-white: #ffffff;
  --mm-shadow: 0 18px 48px rgba(7, 27, 59, 0.12);
  --mm-serif: "Cormorant Garamond", Georgia, serif;
  --mm-sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mm-ink);
  background: var(--mm-white);
  font-family: var(--mm-sans);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(184, 138, 58, 0.18);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  color: var(--mm-navy);
  font-family: var(--mm-serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 0.9;
}

.brand-mark span {
  color: var(--mm-gold);
  font-size: 24px;
}

.brand-text {
  display: grid;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.brand-text small {
  color: var(--mm-gold);
  font-size: 8px;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #141923;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--mm-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid rgba(7, 27, 59, 0.16);
  background: transparent;
  color: var(--mm-navy);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--mm-navy);
  color: var(--mm-white);
  cursor: pointer;
  font-family: var(--mm-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 14px 22px;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--mm-navy-2);
  transform: translateY(-1px);
}

.button-gold {
  background: var(--mm-gold);
}

.button-link {
  background: transparent;
  color: var(--mm-navy);
  padding-inline: 0;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--mm-line);
  background: linear-gradient(90deg, #fff 0%, #fbfaf7 48%, #eee9e1 100%);
}

.hero-grid {
  display: grid;
  min-height: auto;
  align-items: center;
  justify-items: center;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-block: 40px 0;
  text-align: center;
}

.hero-content {
  display: grid;
  justify-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--mm-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--mm-gold);
  content: "";
}

.hero h1,
.section-title,
.cta-title {
  margin: 0;
  color: var(--mm-navy);
  font-family: var(--mm-serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 5.4vw, 62px);
}

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

.hero-copy {
  max-width: 430px;
  margin: 18px auto 22px;
  color: var(--mm-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-image {
  width: min(760px, 100%);
  align-self: center;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  filter: drop-shadow(var(--mm-shadow));
  object-fit: cover;
  object-position: center;
}

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--mm-line);
}

.section-muted {
  background: var(--mm-cream);
}

.about-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
}

.content-column p {
  margin: 0 0 18px;
  color: var(--mm-muted);
}

.content-column strong {
  color: var(--mm-navy);
}

.center-heading {
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
}

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

.feature-card {
  min-height: 210px;
  padding: 24px 24px 12px;
  border-left: 1px solid var(--mm-line);
  text-align: center;
}

.feature-card:first-child {
  border-left: 0;
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  place-items: center;
  color: var(--mm-gold);
}

.feature-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.4;
}

.feature-card h3,
.partner h3 {
  margin: 0 0 8px;
  color: var(--mm-navy);
  font-family: var(--mm-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.feature-card p,
.partner p {
  margin: 0;
  color: var(--mm-muted);
  font-size: 14px;
  line-height: 1.55;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 42px;
}

.partner {
  display: grid;
  align-items: center;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
}

.partner img {
  aspect-ratio: 1;
  width: 190px;
  object-fit: cover;
  box-shadow: var(--mm-shadow);
}

.partner-photo-michal {
  object-position: center 22%;
}

.partner-photo-marcin {
  object-position: 78% center;
}

.role {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--mm-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

.contact-cta {
  background: linear-gradient(120deg, var(--mm-navy), #082a5d);
  color: var(--mm-white);
}

.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.cta-title {
  color: var(--mm-white);
  font-size: clamp(36px, 5vw, 58px);
}

.contact-lead {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--mm-shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mm-navy);
  font: inherit;
  padding: 12px 14px;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.form-message {
  margin: 0;
  border-left: 3px solid var(--mm-gold);
  background: rgba(255, 255, 255, 0.12);
  color: var(--mm-white);
  padding: 10px 14px;
}

.site-footer {
  background: #fff;
}

.footer-inner {
  display: grid;
  min-height: 92px;
  align-items: center;
  grid-template-columns: 1.1fr repeat(4, 1fr);
  gap: 24px;
  color: var(--mm-muted);
  font-size: 13px;
}

.footer-item {
  display: grid;
  gap: 2px;
}

.footer-item strong {
  color: var(--mm-navy);
}

.legal-page {
  padding: 72px 0;
  background: var(--mm-cream);
}

.legal-content {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding: 46px;
  background: var(--mm-white);
  box-shadow: var(--mm-shadow);
}

.legal-content h1,
.legal-content h2 {
  color: var(--mm-navy);
  font-family: var(--mm-serif);
  font-weight: 500;
  line-height: 1.12;
}

.legal-content h1 {
  margin: 0 0 26px;
  font-size: clamp(38px, 5vw, 58px);
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 30px;
}

.legal-content p,
.legal-content li {
  color: var(--mm-muted);
}

.legal-content ul {
  padding-left: 22px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 56px;
  }

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

  .feature-card:nth-child(odd) {
    border-left: 0;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 78px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .brand-mark {
    font-size: 40px;
  }

  .brand-text {
    letter-spacing: 2px;
  }

  .main-nav {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    justify-content: stretch;
    font-size: 11px;
    overflow: hidden;
    padding: 0;
    transition: max-height 220ms ease, padding 220ms ease;
  }

  .main-nav.is-open {
    max-height: 260px;
    padding: 12px 0 4px;
  }

  .main-nav a {
    border-top: 1px solid var(--mm-line);
    padding: 12px 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section {
    padding: 58px 0;
  }

  .cards-grid,
  .service-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--mm-line);
  }

  .partner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .partner img {
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
  }

  .contact-form {
    padding: 20px;
  }

  .legal-content {
    width: min(100% - 28px, 900px);
    padding: 28px 20px;
  }
}
