:root {
  --primary: #ea2027;
  --primary-dark: #cb1a20;
  --navy: #16233f;
  --navy-soft: #4f5d7a;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #dfe3ea;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.05);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --success-bg: #eaf8ee;
  --success-text: #157347;
  --error-bg: #fff1f1;
  --error-text: #b42318;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 251, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  width: 104px;
  object-fit: contain;
}

.brand-qualibat {
  width: 46px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
}

.brand-since {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.main-nav a {
  font-weight: 600;
  color: #24324d;
  transition: 0.25s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 166px;
  height: 58px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  transition: 0.25s ease;
}

.header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("assets/pergola.jpg") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(16, 24, 44, 0.8) 0%,
      rgba(27, 24, 46, 0.72) 38%,
      rgba(88, 45, 55, 0.45) 72%,
      rgba(180, 60, 68, 0.28) 100%
    );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 72px 0;
}

.hero-left {
  max-width: 820px;
}

.hero-kicker {
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f7d9d9;
}

.hero-left h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 26px;
  font-weight: 800;
}

.hero-text {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  min-height: 62px;
  padding: 0 26px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(234, 32, 39, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-glass {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  border-radius: 34px;
  padding: 28px;
  color: var(--white);
  backdrop-filter: blur(16px);
}

.hero-card-logo-box {
  width: 180px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 24px;
}

.hero-card h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

.hero-card-list {
  display: grid;
  gap: 12px;
}

.hero-card-list li {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  font-weight: 600;
}

/* TRUST */
.trust-strip {
  background: linear-gradient(180deg, #eb1e25 0%, #d9161d 100%);
  padding: 22px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 24px 26px;
  color: var(--white);
}

.trust-item h3 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.trust-item p {
  color: rgba(255, 255, 255, 0.88);
}

/* GLOBAL SECTIONS */
.section {
  padding: 86px 0;
}

.section-kicker {
  margin-bottom: 14px;
  color: #4d5d7c;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading-left {
  margin: 0 0 44px;
  text-align: left;
}

.section-heading h2,
.intro-content h2,
.large-card h2,
.contact-left h2 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 18px;
  font-weight: 800;
}

.section-heading p,
.intro-content p,
.large-card p,
.contact-intro {
  color: var(--navy-soft);
  font-size: 1.08rem;
}

/* INTRO */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 38px;
  align-items: start;
}

.intro-content p {
  margin-bottom: 14px;
  max-width: 920px;
}

.intro-side-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.intro-side-card h3 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: var(--navy);
}

.intro-side-card ul {
  display: grid;
  gap: 16px;
}

.intro-side-card li {
  position: relative;
  padding-left: 22px;
  color: var(--navy-soft);
  font-size: 1.05rem;
}

.intro-side-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px 26px 28px;
}

.service-card-body h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--navy);
}

.service-card-body p {
  color: var(--navy-soft);
  margin-bottom: 18px;
}

.service-card-body a {
  color: var(--primary);
  font-weight: 800;
}

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  min-height: 230px;
  box-shadow: var(--shadow-soft);
}

.why-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.why-card p {
  color: var(--navy-soft);
}

/* CTA BAND */
.cta-band {
  background: linear-gradient(180deg, #ea1f27 0%, #cf161d 100%);
  color: var(--white);
  padding: 86px 0;
}

.cta-band-content {
  max-width: 980px;
}

.cta-band h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  font-weight: 800;
}

.cta-band p {
  font-size: 1.2rem;
  max-width: 1000px;
  color: rgba(255, 255, 255, 0.92);
}

/* METHOD + ZONE */
.two-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.large-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.large-card p {
  margin-bottom: 10px;
}

.steps-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy-soft);
  font-size: 1.08rem;
}

.steps-list span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* MID CTA */
.mid-cta {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: url("assets/pergola.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.mid-cta-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 19, 39, 0.78) 0%,
      rgba(66, 36, 48, 0.54) 65%,
      rgba(186, 61, 68, 0.3) 100%
    );
}

.mid-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
}

.mid-cta-content h2 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}

.mid-cta-content p {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 860px;
  margin: 0 auto 28px;
}

.mid-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-white-solid {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

/* FAQ */
.faq-container {
  max-width: 1100px;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
}

.faq-icon {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 28px 24px;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  color: var(--navy-soft);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-intro {
  margin-bottom: 26px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(234, 32, 39, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.contact-info-card a,
.contact-info-card p {
  color: var(--primary);
  font-weight: 800;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.quote-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #cfd6e2;
  background: rgba(255, 255, 255, 0.84);
  color: var(--navy);
  border-radius: 18px;
  outline: none;
  transition: 0.25s ease;
}

.form-group input,
.form-group select {
  min-height: 62px;
  padding: 0 18px;
}

.form-group textarea {
  min-height: 180px;
  padding: 16px 18px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8a95a8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(234, 32, 39, 0.08);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.submit-btn {
  width: 100%;
  min-height: 62px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #eb232b 0%, #cf181f 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(234, 32, 39, 0.22);
  transition: 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  display: none;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.form-message.success {
  display: block;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #b8e2c5;
}

.form-message.error {
  display: block;
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #f2c7c7;
}

/* FOOTER */
.site-footer {
  background: #111b31;
  color: var(--white);
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 88px;
}

.footer-qualibat {
  width: 42px;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-links,
.footer-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.86);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .main-nav {
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .intro-grid,
  .contact-grid,
  .two-cards-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 700px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .brand {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-cta {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 54px 0;
  }

  .hero-left h1 {
    font-size: 2.9rem;
  }

  .hero-actions,
  .mid-cta-actions {
    flex-direction: column;
  }

  .btn,
  .btn-white-solid,
  .btn-outline-light {
    width: 100%;
  }

  .services-grid,
  .form-row,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 230px;
  }

  .contact-form-wrap,
  .hero-card,
  .large-card {
    padding: 22px;
  }

  .form-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}