/*
Theme Name: Flow Tech Group
Theme URI: https://example.com/flow-tech-group
Author: OpenAI
Author URI: https://openai.com
Description: A premium-style WordPress starter theme for a local plumbing business.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: flowtech
*/

:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-soft: #101010;
  --panel: rgba(24, 24, 24, 0.92);
  --panel-strong: rgba(30, 30, 30, 0.96);
  --panel-muted: rgba(40, 40, 40, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f3ed;
  --muted: #b9b2aa;
  --muted-strong: #8b857e;
  --accent: #ffab1f;
  --accent-strong: #ff9200;
  --accent-soft: rgba(255, 171, 31, 0.18);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.22);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --content-width: 1220px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ef;
  --bg-soft: #fbfaf7;
  --panel: rgba(255, 255, 255, 0.8);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --panel-muted: rgba(239, 237, 232, 0.9);
  --border: rgba(56, 72, 100, 0.12);
  --border-strong: rgba(56, 72, 100, 0.18);
  --text: #384864;
  --muted: #6f7989;
  --muted-strong: #8c94a1;
  --accent: #ff6a36;
  --accent-strong: #ff5b2e;
  --accent-soft: rgba(255, 106, 54, 0.16);
  --shadow: 0 25px 60px rgba(56, 72, 100, 0.1);
  --shadow-soft: 0 16px 30px rgba(56, 72, 100, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(92, 54, 7, 0.42), transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(255, 171, 31, 0.08), transparent 26%),
    linear-gradient(180deg, #0c0a08 0%, #070707 18%, #090909 100%);
  line-height: 1.6;
  min-height: 100vh;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 106, 54, 0.08), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(56, 72, 100, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #f3f1ed 100%);
}

body.quote-modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.24;
}

body::before {
  width: 420px;
  height: 420px;
  top: 16%;
  right: -120px;
  background: rgba(255, 171, 31, 0.25);
}

:root[data-theme="light"] body::before {
  display: none;
}

body::after {
  width: 320px;
  height: 320px;
  top: 56%;
  left: -90px;
  background: rgba(120, 66, 9, 0.38);
}

:root[data-theme="light"] body::after {
  display: none;
}

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

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

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

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  padding: 0.95rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  border-color: rgba(56, 72, 100, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 243, 237, 0.5);
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: rgba(111, 121, 137, 0.62);
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: none;
  border-color: rgba(255, 171, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 171, 31, 0.12);
}

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

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

.site-shell,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0 0;
}

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

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(24, 24, 24, 0.86);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

:root[data-theme="light"] .header-bar {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(56, 72, 100, 0.12);
  box-shadow: 0 18px 36px rgba(56, 72, 100, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand--has-logo {
  gap: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 171, 31, 0.24), rgba(255, 171, 31, 0.06)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 171, 31, 0.16);
  flex-shrink: 0;
}

:root[data-theme="light"] .brand-mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 242, 0.94)),
    rgba(255, 255, 255, 0.98);
  border-color: rgba(56, 72, 100, 0.1);
}

.brand--has-logo .brand-mark {
  width: auto;
  height: auto;
  padding: 0;
  line-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

:root[data-theme="light"] .brand--has-logo .brand-mark {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark .brand-logo {
  display: block;
  width: auto;
  height: clamp(2.4rem, 3.2vw, 2.9rem);
  max-width: min(215px, 28vw);
  object-fit: contain;
}

:root[data-theme="light"] .brand-mark .brand-logo {
  filter: none;
}

.brand-placeholder {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--muted-strong);
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 14px;
}

:root[data-theme="light"] .nav-toggle {
  background: rgba(56, 72, 100, 0.08);
  border: 1px solid rgba(56, 72, 100, 0.14);
}

:root[data-theme="light"] .nav-menu a {
  color: rgba(56, 72, 100, 0.78);
}

:root[data-theme="light"] .nav-menu a:hover,
:root[data-theme="light"] .nav-menu a:focus {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 54px;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-accent {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #17110b;
  box-shadow: 0 14px 30px rgba(255, 146, 0, 0.28);
}

.button-accent:hover,
.button-accent:focus {
  box-shadow: 0 16px 36px rgba(255, 146, 0, 0.35);
}

:root[data-theme="light"] .nav-cta {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(255, 106, 54, 0.24);
}

:root[data-theme="light"] .nav-cta:hover,
:root[data-theme="light"] .nav-cta:focus {
  box-shadow: 0 16px 34px rgba(255, 106, 54, 0.3);
}

:root[data-theme="light"] .button-accent {
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 106, 54, 0.24);
}

:root[data-theme="light"] .button-accent:hover,
:root[data-theme="light"] .button-accent:focus {
  box-shadow: 0 16px 36px rgba(255, 106, 54, 0.3);
}

.button-muted {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

:root[data-theme="light"] .button-muted {
  background: linear-gradient(180deg, rgba(62, 78, 107, 0.98) 0%, rgba(52, 67, 93, 0.98) 100%);
  border-color: rgba(56, 72, 100, 0.18);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(56, 72, 100, 0.18);
}

:root[data-theme="light"] .button-muted:hover,
:root[data-theme="light"] .button-muted:focus {
  box-shadow: 0 16px 32px rgba(56, 72, 100, 0.24);
}

.button-full {
  width: 100%;
}

.hero-section,
.services-section,
.projects-section,
.about-section,
.contact-section,
.fallback-section {
  padding: 3.25rem 0;
}

.hero-section {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.services-section,
.projects-section,
.about-section {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 340px);
  gap: 2.75rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffd15c;
}

:root[data-theme="light"] .eyebrow {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(56, 72, 100, 0.12);
  color: var(--accent-strong);
}

.hero-title,
.section-title,
.cta-title,
.entry-title {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(3.3rem, 6.5vw, 5.7rem);
  max-width: 13ch;
}

.hero-copy > p:last-of-type,
.entry-content > p:last-child {
  margin-bottom: 0;
}

.hero-copy {
  padding-top: 0.35rem;
  text-align: left;
}

.hero-lead {
  max-width: 58ch;
  margin: 1.5rem 0 1.75rem;
  font-size: 1.18rem;
  color: #d6cec5;
}

:root[data-theme="light"] .hero-lead {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
  margin-bottom: 2.15rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 650px;
}

.stat-card,
.feature-card,
.quote-panel,
.service-card,
.project-card,
.about-card,
.testimonial-card,
.team-card,
.cta-card,
.entry-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 1.4rem 1.25rem;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-side {
  min-height: 420px;
}

.feature-card,
.quote-panel {
  padding: 1rem;
}

.feature-card__top,
.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted-strong);
}

.feature-card__visual {
  min-height: 260px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 206, 112, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(67, 67, 67, 0.88), rgba(42, 42, 42, 0.78)),
    linear-gradient(180deg, rgba(255, 171, 31, 0.08), rgba(255, 171, 31, 0));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .feature-card__visual {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 106, 54, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(244, 246, 249, 0.98), rgba(230, 234, 241, 0.98)),
    linear-gradient(180deg, rgba(56, 72, 100, 0.1), rgba(56, 72, 100, 0));
  border-color: rgba(56, 72, 100, 0.1);
}

.feature-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.feature-metric {
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .feature-metric {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(56, 72, 100, 0.1);
}

.feature-metric strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 1rem;
  font-weight: 800;
}

.feature-metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-panel .section-kicker {
  margin-bottom: 0.85rem;
}

.form-alert {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
}

.form-alert.is-success {
  background: rgba(72, 187, 120, 0.12);
  border: 1px solid rgba(72, 187, 120, 0.26);
  color: #cbf5d8;
}

.form-alert.is-error {
  background: rgba(255, 85, 85, 0.12);
  border: 1px solid rgba(255, 85, 85, 0.24);
  color: #ffd1d1;
}

:root[data-theme="light"] .form-alert {
  font-weight: 600;
}

:root[data-theme="light"] .form-alert.is-success {
  background: rgba(93, 178, 122, 0.14);
  border-color: rgba(93, 178, 122, 0.28);
  color: #2f6a49;
}

:root[data-theme="light"] .form-alert.is-error {
  background: rgba(255, 106, 54, 0.12);
  border-color: rgba(255, 106, 54, 0.22);
  color: #9a3f25;
}

.quote-form {
  display: grid;
  gap: 0.6rem;
}

.quote-form input,
.quote-form textarea {
  padding: 0.85rem 0.95rem;
}

.quote-modal .form-alert {
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.92rem;
}

.quote-form textarea {
  min-height: 104px;
}

.quote-form .button {
  min-height: 50px;
  padding: 0.82rem 1.25rem;
}

.quote-panel--teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr) minmax(220px, 0.65fr);
  gap: 1.35rem;
  align-items: end;
  padding: 1.45rem;
}

.quote-panel--teaser .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.quote-panel__title,
.quote-modal__title {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.quote-panel__title {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  max-width: 15ch;
}

.quote-panel__text,
.quote-modal__intro,
.quote-modal__contact {
  margin: 0;
  color: #d6cec5;
}

:root[data-theme="light"] .quote-panel__text,
:root[data-theme="light"] .quote-modal__intro,
:root[data-theme="light"] .quote-modal__contact {
  color: var(--muted);
}

.quote-panel__highlights {
  display: grid;
  gap: 0.8rem;
}

.quote-panel__highlight {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .quote-panel__highlight {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(56, 72, 100, 0.1);
}

.quote-panel__highlight strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 800;
}

.quote-panel__highlight span {
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-modal {
  --quote-modal-edge-space: 0.9rem;
  --quote-modal-top-space: clamp(5.75rem, 8vw, 7.25rem);
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--quote-modal-top-space) var(--quote-modal-edge-space) var(--quote-modal-edge-space);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 80;
}

.quote-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(8, 8, 8, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

:root[data-theme="light"] .quote-modal__backdrop {
  background: rgba(56, 72, 100, 0.14);
}

.quote-modal__dialog {
  position: relative;
  width: min(100%, 610px);
  max-height: min(calc(100vh - var(--quote-modal-top-space) - (var(--quote-modal-edge-space) * 2)), 860px);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.15rem;
  background:
    linear-gradient(145deg, rgba(31, 31, 31, 0.98), rgba(18, 18, 18, 0.96)),
    rgba(26, 26, 26, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.24s ease;
  z-index: 1;
}

:root[data-theme="light"] .quote-modal__dialog {
  background: rgba(255, 255, 255, 0.96);
}

.quote-modal.is-visible .quote-modal__dialog {
  transform: translateY(0) scale(1);
}

.quote-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

:root[data-theme="light"] .quote-modal__close {
  border-color: rgba(56, 72, 100, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.quote-modal__dialog .section-kicker {
  padding-right: 3.5rem;
}

.quote-modal__title {
  font-size: clamp(1.95rem, 3.7vw, 3rem);
  max-width: 10ch;
}

.quote-modal__intro {
  margin-top: 0.65rem;
  font-size: 0.98rem;
}

.quote-modal__contact {
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.quote-modal__contact a {
  color: #ffd15c;
  font-weight: 700;
}

:root[data-theme="light"] .quote-modal__contact a {
  color: var(--accent-strong);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 420px);
  gap: 2rem;
  align-items: end;
}

.section-title {
  font-size: clamp(2.35rem, 4vw, 4rem);
  max-width: 11ch;
}

.services-section .section-title,
.projects-section .section-title {
  max-width: 14ch;
}

.section-intro {
  margin: 0;
  font-size: 1.08rem;
  color: #d0c7bd;
}

:root[data-theme="light"] .section-intro {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--services,
.card-grid--projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card {
  padding: 1.35rem;
}

.service-card {
  padding-top: 1.2rem;
}

.service-card h3,
.project-card h3,
.about-card h3,
.entry-card h1,
.entry-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.18;
}

.service-card p,
.project-card p,
.about-card p,
.team-card p,
.testimonial-card p {
  margin: 0;
  color: var(--muted);
}

.project-card__image {
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  margin-bottom: 1.25rem;
  background:
    linear-gradient(145deg, rgba(70, 70, 70, 0.86), rgba(35, 35, 35, 0.88)),
    linear-gradient(180deg, rgba(255, 171, 31, 0.06), rgba(255, 171, 31, 0));
  border: 1px solid rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .project-card__image {
  background:
    linear-gradient(145deg, rgba(244, 246, 249, 0.98), rgba(228, 233, 240, 0.98)),
    linear-gradient(180deg, rgba(255, 106, 54, 0.08), rgba(255, 106, 54, 0));
  border-color: rgba(56, 72, 100, 0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.about-card,
.testimonial-card,
.team-card {
  padding: 1.5rem;
}

.about-card {
  min-height: 290px;
}

.about-card--story {
  grid-column: 1 / 2;
}

.about-card--story .section-title {
  max-width: 24ch;
}

.team-card {
  grid-column: 1 / -1;
}

.team-photo-placeholder {
  min-height: 280px;
  margin: 1rem 0 1rem;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(76, 76, 76, 0.78), rgba(43, 43, 43, 0.95)),
    linear-gradient(180deg, rgba(255, 171, 31, 0.05), rgba(255, 171, 31, 0));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: rgba(247, 243, 237, 0.42);
  font-size: 0.95rem;
}

.team-card .team-photo-placeholder:last-child {
  margin-bottom: 0;
}

:root[data-theme="light"] .team-photo-placeholder {
  background:
    linear-gradient(145deg, rgba(244, 246, 249, 0.98), rgba(230, 234, 241, 0.98)),
    linear-gradient(180deg, rgba(255, 106, 54, 0.06), rgba(255, 106, 54, 0));
  border-color: rgba(56, 72, 100, 0.1);
  color: rgba(56, 72, 100, 0.42);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-quote {
  font-size: 2.1rem;
  line-height: 1;
  color: #ffd15c;
}

:root[data-theme="light"] .testimonial-quote {
  color: var(--accent-strong);
}

.testimonial-card blockquote {
  margin: 0;
  color: #ddd5cb;
}

:root[data-theme="light"] .testimonial-card blockquote {
  color: var(--muted);
}

.testimonial-card cite {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.35rem;
  background:
    linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(23, 23, 23, 0.92)),
    rgba(25, 25, 25, 0.96);
}

:root[data-theme="light"] .cta-card {
  background: rgba(255, 255, 255, 0.86);
}

.cta-title {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1;
  max-width: none;
}

.contact-section {
  padding-top: 1.75rem;
}

.contact-section .section-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: 18ch;
}

.cta-copy p {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  gap: 0.9rem;
  align-items: stretch;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.info-card {
  padding: 0.9rem 1rem;
  background: rgba(20, 20, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.cta-meta .button {
  min-height: 0;
  padding: 0.95rem 1.25rem;
  height: 100%;
}

:root[data-theme="light"] .info-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(56, 72, 100, 0.1);
}

.info-card--wide {
  grid-column: auto;
}

.info-label {
  display: block;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted-strong);
}

.info-card strong,
.info-card a {
  font-size: 1rem;
  font-weight: 800;
}

.info-card a {
  display: inline-block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.fallback-section {
  min-height: 55vh;
}

.entry-card {
  padding: 2rem;
}

.entry-title {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  margin-bottom: 1rem;
}

.entry-content,
.entry-summary {
  color: #d6cec5;
}

:root[data-theme="light"] .entry-content,
:root[data-theme="light"] .entry-summary {
  color: var(--muted);
}

.entry-content a,
.entry-summary a,
.site-footer a {
  color: #ffd15c;
}

:root[data-theme="light"] .entry-content a,
:root[data-theme="light"] .entry-summary a,
:root[data-theme="light"] .site-footer a {
  color: var(--accent-strong);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .hero-grid,
  .cta-card,
  .section-header--split {
    grid-template-columns: 1fr;
  }

  .cta-meta,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0.25rem;
  }

  .hero-side {
    display: none;
  }

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

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

  .about-card--story,
  .team-card {
    grid-column: 1 / -1;
  }
}

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

  .header-bar {
    flex-wrap: wrap;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 0.6rem;
    order: 3;
    margin-left: 0;
  }

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

  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

}

@media (max-width: 760px) {
  .hero-section,
  .services-section,
  .projects-section,
  .about-section,
  .contact-section,
  .fallback-section {
    padding: 2.75rem 0;
  }

  .hero-section {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .services-section,
  .projects-section,
  .about-section {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .card-grid--services,
  .card-grid--projects,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 0.8rem;
  }

  .header-bar {
    padding: 0.8rem 1rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .brand-mark .brand-logo {
    height: 2.45rem;
    max-width: min(185px, 42vw);
  }

  .brand-title {
    font-size: 1.08rem;
  }

  .brand-tagline {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .hero-title,
  .section-title,
  .cta-title,
  .entry-title {
    line-height: 1.02;
  }

  .hero-title {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .feature-card__visual {
    min-height: 220px;
  }

  .quote-modal {
    --quote-modal-edge-space: 0.75rem;
    --quote-modal-top-space: clamp(4.75rem, 16vw, 6rem);
  }

  .quote-modal__dialog {
    padding: 1.2rem;
    border-radius: 26px;
  }

  .quote-modal__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .quote-modal__title {
    max-width: none;
  }

  .cta-card,
  .entry-card,
  .about-card,
  .testimonial-card,
  .team-card,
  .service-card,
  .project-card,
  .feature-card,
  .quote-panel,
  .stat-card {
    border-radius: 24px;
  }

  .cta-card {
    padding: 1.4rem;
  }

  .container {
    width: min(calc(100% - 1.2rem), var(--content-width));
  }
}
