/*
Theme Name: Structural Rehab Elementor
Theme URI: https://structuralrehab.online
Author: Structural Rehab
Author URI: https://structuralrehab.online
Description: Elementor-ready corporate WordPress theme for concrete repair, steel structure repair, structural rehabilitation, protection services, consultation booking, and SEO content marketing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: structural-rehab
Tags: elementor, custom-logo, one-column, two-columns, accessibility-ready, custom-menu, featured-images, full-width-template
*/

:root {
  --sr-navy: #10243f;
  --sr-steel: #526273;
  --sr-blue: #1f5f99;
  --sr-cyan: #41a5c9;
  --sr-orange: #e87722;
  --sr-green: #23856d;
  --sr-light: #f5f8fb;
  --sr-border: #d8e0e8;
  --sr-text: #1d2733;
  --sr-muted: #607080;
  --sr-white: #ffffff;
  --sr-shadow: 0 16px 40px rgba(16, 36, 63, 0.12);
  --sr-radius: 8px;
  --sr-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sr-text);
  background: var(--sr-white);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

a {
  color: var(--sr-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sr-orange);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(232, 119, 34, 0.55);
  outline-offset: 3px;
}

.sr-container {
  width: min(100% - 32px, var(--sr-max));
  margin-inline: auto;
}

.sr-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--sr-border);
  backdrop-filter: blur(12px);
}

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

.sr-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sr-navy);
  text-decoration: none;
}

.sr-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--sr-white);
  background: linear-gradient(135deg, var(--sr-navy), var(--sr-blue));
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
}

.sr-brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.sr-brand-tagline {
  display: block;
  color: var(--sr-muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

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

.sr-menu,
.sr-menu ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-menu a {
  color: var(--sr-navy);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}

.sr-menu a:hover {
  color: var(--sr-blue);
}

.sr-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sr-border);
  border-radius: 8px;
  background: var(--sr-white);
  color: var(--sr-navy);
  font-weight: 800;
}

.sr-btn,
.sr-button,
.wp-block-button__link,
button.sr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--sr-white);
  background: var(--sr-orange);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sr-btn:hover,
.sr-button:hover,
.wp-block-button__link:hover {
  color: var(--sr-white);
  background: #c95f13;
  box-shadow: 0 10px 24px rgba(232, 119, 34, 0.25);
  transform: translateY(-1px);
}

.sr-btn-secondary {
  color: var(--sr-navy);
  background: var(--sr-white);
  border-color: rgba(255, 255, 255, 0.72);
}

.sr-btn-secondary:hover {
  color: var(--sr-navy);
  background: #edf4fb;
}

.sr-page {
  min-height: 60vh;
}

.sr-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 660px;
  color: var(--sr-white);
  background-color: var(--sr-navy);
  background-image:
    linear-gradient(90deg, rgba(16, 36, 63, 0.92) 0%, rgba(16, 36, 63, 0.72) 42%, rgba(16, 36, 63, 0.22) 100%),
    var(--sr-hero-image);
  background-size: cover;
  background-position: center;
}

.sr-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--sr-orange), var(--sr-cyan), var(--sr-green));
}

.sr-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--sr-max));
  margin-inline: auto;
  padding-block: 86px;
}

.sr-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: #d5edf8;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sr-hero h1,
.sr-page-title h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.sr-hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: #e6edf5;
  font-size: 1.2rem;
}

.sr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sr-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(680px, 100%);
  margin-top: 44px;
}

.sr-hero-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--sr-radius);
  background: rgba(255, 255, 255, 0.08);
}

.sr-hero-stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

.sr-hero-stat span {
  display: block;
  color: #dce8f2;
  font-size: 0.88rem;
}

.sr-section {
  padding: 84px 0;
}

.sr-section-alt {
  background: var(--sr-light);
}

.sr-section-tight {
  padding: 56px 0;
}

.sr-section-title {
  max-width: 760px;
  margin: 0 0 36px;
}

.sr-section-title h2 {
  margin: 0;
  color: var(--sr-navy);
  font-size: 2.55rem;
  line-height: 1.12;
}

.sr-section-title p {
  margin: 14px 0 0;
  color: var(--sr-muted);
  font-size: 1.05rem;
}

.sr-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.sr-card {
  padding: 26px;
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius);
  background: var(--sr-white);
  box-shadow: 0 8px 24px rgba(16, 36, 63, 0.06);
}

.sr-card h3 {
  margin: 12px 0 10px;
  color: var(--sr-navy);
  font-size: 1.2rem;
  line-height: 1.25;
}

.sr-card p {
  margin: 0;
  color: var(--sr-muted);
}

.sr-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--sr-white);
  background: var(--sr-blue);
  font-weight: 900;
}

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

.sr-check-list li {
  position: relative;
  padding-left: 34px;
}

.sr-check-list li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sr-green);
  box-shadow: inset 0 0 0 5px var(--sr-white);
  border: 2px solid var(--sr-green);
}

.sr-media-card {
  overflow: hidden;
  border-radius: var(--sr-radius);
  background: var(--sr-white);
  border: 1px solid var(--sr-border);
  box-shadow: var(--sr-shadow);
}

.sr-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sr-media-card-content {
  padding: 24px;
}

.sr-logo-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sr-logo-pill {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sr-border);
  border-radius: 8px;
  color: var(--sr-steel);
  background: var(--sr-white);
  font-weight: 800;
  text-align: center;
}

.sr-cta-band {
  color: var(--sr-white);
  background: linear-gradient(135deg, var(--sr-navy), #16476f);
}

.sr-cta-band .sr-section-title h2,
.sr-cta-band .sr-section-title p {
  color: var(--sr-white);
}

.sr-page-title {
  padding: 76px 0 44px;
  color: var(--sr-white);
  background: linear-gradient(135deg, var(--sr-navy), #1b507b);
}

.sr-breadcrumb {
  margin-bottom: 12px;
  color: #c9d9e7;
  font-size: 0.9rem;
}

.sr-content {
  padding: 64px 0;
}

.sr-content h2,
.sr-content h3 {
  color: var(--sr-navy);
  line-height: 1.2;
}

.sr-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--sr-border);
}

.sr-content th,
.sr-content td {
  padding: 14px;
  border-bottom: 1px solid var(--sr-border);
  text-align: left;
  vertical-align: top;
}

.sr-content th {
  color: var(--sr-navy);
  background: var(--sr-light);
}

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

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

.sr-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--sr-navy);
  font-weight: 800;
}

.sr-field input,
.sr-field textarea,
.sr-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--sr-border);
  border-radius: 8px;
  color: var(--sr-text);
  background: var(--sr-white);
  font: inherit;
}

.sr-field textarea {
  min-height: 132px;
  resize: vertical;
}

.sr-booking {
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius);
  background: var(--sr-white);
  box-shadow: var(--sr-shadow);
}

.sr-booking-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--sr-border);
}

.sr-step-tab {
  padding: 15px 12px;
  color: var(--sr-muted);
  border-right: 1px solid var(--sr-border);
  font-weight: 800;
  text-align: center;
}

.sr-step-tab:last-child {
  border-right: 0;
}

.sr-step-tab.is-active {
  color: var(--sr-white);
  background: var(--sr-blue);
}

.sr-booking-step {
  display: none;
  padding: 28px;
}

.sr-booking-step.is-active {
  display: block;
}

.sr-booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.sr-service-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--sr-border);
  border-radius: 8px;
  cursor: pointer;
}

.sr-service-option + .sr-service-option {
  margin-top: 12px;
}

.sr-service-option strong {
  display: block;
  color: var(--sr-navy);
}

.sr-alert {
  padding: 14px 16px;
  border-radius: 8px;
  background: #eaf7f2;
  color: #155b4c;
  border: 1px solid #b8e0d0;
}

.sr-site-footer {
  color: #d8e4ef;
  background: #0c1d32;
}

.sr-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 58px 0;
}

.sr-footer-top h2,
.sr-footer-top h3 {
  color: var(--sr-white);
  margin-top: 0;
}

.sr-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-footer-menu a {
  color: #d8e4ef;
  text-decoration: none;
}

.sr-footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9c9d8;
  font-size: 0.92rem;
}

.sr-post-list {
  display: grid;
  gap: 28px;
}

.sr-post-card {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sr-border);
}

.sr-post-card h2 {
  margin: 0 0 8px;
}

.sr-post-meta {
  color: var(--sr-muted);
  font-size: 0.92rem;
}

.sr-screen-reader-text,
.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: 960px) {
  .sr-hero h1,
  .sr-page-title h1 {
    font-size: 3.1rem;
  }

  .sr-section-title h2 {
    font-size: 2.15rem;
  }

  .sr-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .sr-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: 16px;
    background: var(--sr-white);
    border-bottom: 1px solid var(--sr-border);
    box-shadow: var(--sr-shadow);
  }

  .sr-nav.is-open {
    display: block;
  }

  .sr-menu,
  .sr-menu ul {
    display: grid;
    gap: 10px;
  }

  .sr-nav .sr-btn {
    margin-top: 14px;
  }

  .sr-grid-2,
  .sr-grid-3,
  .sr-grid-4,
  .sr-footer-top {
    grid-template-columns: 1fr;
  }

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

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

  .sr-header-inner {
    min-height: 66px;
  }

  .sr-brand-tagline {
    display: none;
  }

  .sr-hero {
    min-height: 620px;
    background-image:
      linear-gradient(180deg, rgba(16, 36, 63, 0.94), rgba(16, 36, 63, 0.72)),
      var(--sr-hero-image);
  }

  .sr-hero h1,
  .sr-page-title h1 {
    font-size: 2.45rem;
  }

  .sr-section-title h2 {
    font-size: 1.85rem;
  }

  .sr-hero-stats,
  .sr-form-row,
  .sr-booking-progress {
    grid-template-columns: 1fr;
  }

  .sr-step-tab {
    border-right: 0;
    border-bottom: 1px solid var(--sr-border);
  }

  .sr-section {
    padding: 58px 0;
  }
}
