:root {
  --container: 1280px;
  --header-h: 110px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 0.3s ease;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.08);
  --focus: 0 0 0 4px rgba(182, 132, 82, 0.22);

  /* Single (light) theme colors. */
  --bg: #f6f1e8;
  --bg-2: #fbf8f3;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --text: #171411;
  --muted: #6e655d;
  --line: rgba(23, 20, 17, 0.09);
  --accent: #b68452;
  --accent-2: #331c04;
  --chip: rgba(182, 132, 82, 0.1);
  --hero-overlay: rgba(17, 15, 13, 0.55);
}

* {
  box-sizing: border-box;
}

/* Avoid "flash of un-animated content" before GSAP initializes. */
html.js:not(.gsap-ready) .gsap-reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* Hero uses its own animation target classes (not .gsap-reveal). */
html.js:not(.gsap-ready) .hero .hero-reveal,
html.js:not(.gsap-ready) .hero .hero-title,
html.js:not(.gsap-ready) .hero .hero-text,
html.js:not(.gsap-ready) .hero .hero-actions-anim .btn,
html.js:not(.gsap-ready) .hero .stat-anim,
html.js:not(.gsap-ready) .hero .hero-visual-main,
html.js:not(.gsap-ready) .hero .feature-anim {
  opacity: 0;
  transform: translateY(28px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(182, 132, 82, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(182, 132, 82, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

/* Anchor scrolling + sticky header offset (works even without JS). */
.section,
.hero,
.footer {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(182, 132, 82, 0.12);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  max-width: 800px;
}

.section-head p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--accent-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(23, 20, 17, 0.12);
  isolation: isolate;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress, 0));
  opacity: 0.75;
  pointer-events: none;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-logo {
  height: auto;
  max-height: 125px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

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

.nav a {
  color: rgba(251, 248, 243, 0.88);
  font-weight: 600;
  transition:
    color var(--transition),
    opacity var(--transition);
  position: relative;
  padding: 6px 2px 10px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6f1e8, var(--accent));
  box-shadow: 0 2px 10px rgba(246, 241, 232, 0.35);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--bg-2);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.nav a.is-active {
  color: var(--bg-2);
}

.nav a:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.modal-close:focus-visible,
.mobile-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

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

.header-phone,
.mobile-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  white-space: nowrap;
}

.header-phone {
  color: rgba(251, 248, 243, 0.9);
  font-size: 15px;
  padding: 6px 4px;
}

.header-phone:hover {
  color: #fff;
}

.header-phone svg,
.mobile-phone-link svg {
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.site-header .header-actions .btn-primary {
  background: var(--bg);
  color: var(--accent-2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.site-header .header-actions .btn-primary:hover,
.site-header .header-actions .btn-primary:active {
  background: #fff;
  color: var(--accent-2);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

/* Gutenberg button blocks -> Baldų Olimpas button styling */
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
  white-space: nowrap;
}

.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.wp-block-button.btn-primary .wp-block-button__link {
  background: var(--text);
  color: var(--bg);
}

.wp-block-button.btn-secondary .wp-block-button__link {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.menu-toggle,
.modal-close {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all var(--transition);
}

.menu-toggle {
  display: none;
}

.hero {
  padding: 40px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 42px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(48px, 8vw, 50px);
  line-height: 1;
}

.hero-copy p {
  max-width: 58ch;
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.82;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.stat-card,
.mini-card,
.contact-item,
.point {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  border-radius: 22px;
  padding: 20px;
}

.stat-card strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.05em;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  min-height: 640px;
}

.featured-project {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.featured-project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  inset: auto 22px 22px 22px;
  background: var(--hero-overlay);
  color: white;
  padding: 22px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-overlay .meta {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.featured-overlay h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.featured-overlay p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mini-card {
  border-radius: 22px;
  padding: 22px;
}

.mini-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.partners-shell {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  overflow: hidden;
}

.partners-intro {
  text-align: center;
  margin-bottom: 24px;
}

.partners-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.partners-intro p {
  margin: 0;
  color: var(--muted);
}

.swiper.partner-swiper {
  overflow: visible;
  cursor: grab;
}

.logo-pill {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--text);
}

.portfolio-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 700;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
}

.portfolio-grid > button.portfolio-card,
.portfolio-grid > article.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  flex: 0 0 calc((100% - 36px) / 3);
  width: calc((100% - 36px) / 3);
  max-width: calc((100% - 36px) / 3);
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
}

/* Block editor / previews: no fixed aspect ratio — keep labels & inputs visible */
.portfolio-grid > div {
  position: relative;
  overflow: visible;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  flex: 0 0 calc((100% - 36px) / 3);
  width: calc((100% - 36px) / 3);
  max-width: calc((100% - 36px) / 3);
  align-self: flex-start;
}

.portfolio-grid > button.portfolio-card {
  display: block;
}

.portfolio-card {
  cursor: default;
}

.portfolio-card--media-only::after {
  display: none;
}

.portfolio-card--gallery-tile {
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
  padding: 0;
  margin: 0;
  background: transparent;
  appearance: none;
}

.portfolio-card--gallery-tile:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.portfolio-card--media-only img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

/* Editor / gallery preview: single image in a div — not absolutely filled (no fixed tile height) */
.portfolio-grid > div.portfolio-card--media-only > img:only-child {
  position: static;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 22%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.portfolio-content {
  position: absolute;
  inset: auto 20px 20px 20px;
  z-index: 2;
  color: #fff;
}

.portfolio-content h3 {
  margin: 10px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.portfolio-content p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.83);
  max-width: 42ch;
}

.portfolio-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.marquee-section {
  padding: 24px 0 0;
  overflow: hidden;
}

.marquee {
  background: linear-gradient(
    180deg,
    rgba(182, 132, 82, 0.08),
    rgba(182, 132, 82, 0.03)
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee-row {
  display: flex;
  gap: 36px;
  padding: 18px 0;
  white-space: nowrap;
  will-change: transform;
}

.marquee-item {
  flex: none;
  font-size: clamp(30px, 5vw, 70px);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--text);
  opacity: 0.95;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.about-card,
.contact-card,
.contact-form {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.about-card h3,
.contact-card h3,
.contact-form h3 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 4.8vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.about-card p,
.contact-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.point {
  border-radius: 20px;
  padding: 18px;
}

.point strong {
  display: block;
  margin-bottom: 8px;
}

.point span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.about-visual {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-floating-stats {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.float-box {
  padding: 18px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-solid) 84%, transparent);
  color: var(--text);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.float-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.float-box span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item {
  border-radius: 20px;
  padding: 18px 20px;
}

.contact-item small {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-item strong {
  font-size: 18px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(182, 132, 82, 0.14);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 18px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.baldu-olimpas-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-notice--inline {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  max-width: none;
  width: 100%;
  margin: 0 0 16px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
  pointer-events: none;
}

.contact-notice--inline.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-notice--inline[hidden] {
  display: none;
}

.contact-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: min(420px, calc(100% - 32px));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.contact-notice p {
  margin: 0;
  line-height: 1.55;
  font-weight: 600;
}

.contact-notice--success {
  border-color: rgba(76, 130, 89, 0.35);
  background: #f3faf4;
}

.contact-notice--error {
  border-color: rgba(176, 74, 58, 0.35);
  background: #fff5f3;
}

.contact-notice__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.contact-form button[type="submit"][aria-busy="true"] {
  opacity: 0.75;
  cursor: wait;
}

.footer {
  padding: 32px 0 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.mobile-nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 105;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 18px 16px 20px;
  display: block;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  z-index: 110;
  max-height: calc(100dvh - var(--header-h) - 24px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
}

.mobile-nav.open {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.mobile-nav a:not(.btn):hover {
  background: var(--surface-strong);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 8px;
}

body.mobile-nav-open {
  overflow: hidden;
}

/* Ensure CTA stays readable on hover/active states. */
.mobile-nav .btn.btn-primary:hover,
.mobile-nav .btn.btn-primary:active {
  background: var(--text);
  color: var(--bg);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.modal.open {
  display: flex;
}

.modal--lightbox.open {
  cursor: pointer;
}

.modal--lightbox.open .lightbox-inner {
  cursor: default;
}

.modal--lightbox .lightbox-inner {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(92vh, 900px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 48px 12px 20px;
}

.modal--lightbox .lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.modal--lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal--lightbox .lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.modal--lightbox .lightbox-stage img {
  max-width: 100%;
  max-height: min(82vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal--lightbox .lightbox-nav {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.modal--lightbox .lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal--lightbox .lightbox-nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual {
    min-height: auto;
  }

  /* about-visual needs a defined height so floating stats stay visible */
  .about-visual {
    min-height: 460px;
  }

  .nav {
    gap: 16px;
  }

  .portfolio-grid > button.portfolio-card,
  .portfolio-grid > article.portfolio-card {
    flex: 0 0 calc((100% - 18px) / 2);
    width: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }

  .portfolio-grid > div {
    flex: 0 0 calc((100% - 18px) / 2);
    width: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 860px) {
  .nav,
  .header-actions .btn,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-copy,
  .about-card,
  .contact-card,
  .contact-form {
    padding: 28px;
  }

  .hero-stats,
  .mini-grid,
  .about-points,
  .about-floating-stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Reduce about-visual height when stacked — still enough for 1-col stats */
  .about-visual {
    min-height: 420px;
  }

  /* Mobile nav phone link */
  .mobile-phone-link {
    color: var(--text);
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 15px;
  }

  .mobile-phone-link:hover {
    background: var(--surface-strong);
  }

  /* Full-width submit button for easier tapping */
  .contact-form button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  .portfolio-grid > button.portfolio-card,
  .portfolio-grid > article.portfolio-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .portfolio-grid > div {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 74px;
  }

  .site-header {
    height: 74px;
  }

  .brand-logo {
    max-height: 70px;
  }

  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  /* 48px h1 is too large on a 375px screen */
  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  /* Stack CTA buttons vertically on small phones */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Reduce featured image height on small screens */
  .featured-project {
    min-height: 300px;
  }

  .featured-overlay {
    inset: auto 14px 14px 14px;
    padding: 18px;
  }

  /* Floating stats overlap image too heavily on small screens */
  .about-floating-stats {
    display: none;
  }

  .about-visual {
    min-height: 280px;
  }

  /* Tighter card padding on very small screens */
  .hero-copy,
  .about-card,
  .contact-card,
  .contact-form {
    padding: 22px;
  }

  .logo-pill {
    min-height: 78px;
  }
}

/* WooCommerce basics (so core buttons/forms don't look out of place). */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--text);
  color: var(--bg);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: var(--text);
  color: var(--bg);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
}
