/* =========================
   YourStruct - styles.css
   ========================= */
:root {
  --primary: #0d5ea8;
  --primary-2: #2d86da;
  --dark: #11365d;
  --dark-2: #0d2745;
  --text: #243648;
  --muted: #6f8091;
  --accent: #f3a126;
  --bg: #f3f8fd;
  --white: #ffffff;
  --line: #d9e7f4;
  --success: #1f9d55;
  --shadow: 0 14px 40px rgba(17, 54, 93, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  line-height: 1.65;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-head {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head .eyebrow,
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(243, 161, 38, 0.14);
  color: #a76500;
  border: 1px solid rgba(243, 161, 38, 0.32);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

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

.card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 94, 168, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

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

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  color: var(--dark);
  font-size: 1.25rem;
  line-height: 1.05;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.nav-links a {
  color: var(--dark);
  font-weight: 700;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
  position: relative;
  transition: var(--transition);
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 78px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero h1 {
  color: var(--dark);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-badges,
.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge,
.list-inline li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(16, 54, 95, 0.05);
}

.hero-card {
  padding: 30px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 94, 168, 0.12), transparent 70%);
}

.hero-card img {
  width: min(320px, 100%);
  margin: 0 auto 18px;
}

.hero-card h2,
.hero-card h3 {
  color: var(--dark);
  margin-bottom: 6px;
}

.hero-card p {
  margin-bottom: 0;
}

/* About + content blocks */
.content-block h3,
.panel h3 {
  color: var(--dark);
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.content-block p,
.panel p {
  margin-bottom: 12px;
}

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

.feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.feature-card h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Service cards */
.service-card {
  padding: 26px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
}

.icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.service-card h3 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: var(--white);
  text-align: center;
}

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

.cta .section-head p {
  opacity: 0.92;
}

/* Page hero */
.page-hero {
  padding: 64px 0 38px;
}

.page-hero-box {
  padding: 36px;
  background: linear-gradient(135deg, rgba(13, 94, 168, 0.08), rgba(243, 161, 38, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-hero-box h1 {
  color: var(--dark);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-hero-box p {
  color: var(--muted);
  max-width: 840px;
}

/* SEO/info blocks */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.info-card p,
.info-card li {
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

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

.contact-card h3,
.contact-form h3 {
  color: var(--dark);
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.contact-item {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.contact-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

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

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: var(--dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cad9e8;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 94, 168, 0.1);
}

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

.form-note,
.small-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.alert {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.alert.success {
  display: none;
  background: rgba(31, 157, 85, 0.12);
  color: #16653a;
  border: 1px solid rgba(31, 157, 85, 0.2);
}

.alert.error {
  display: none;
  background: rgba(220, 38, 38, 0.10);
  color: #9b1c1c;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

/* Footer */
.site-footer {
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  padding-bottom: 30px;
}

.footer-brand img {
  width: 70px;
  margin-bottom: 14px;
}

.footer-brand h3,
.site-footer h4 {
  color: var(--white);
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 0;
  text-align: center;
  font-size: 0.95rem;
}

/* Floating actions */
.float-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: var(--shadow);
}

.float-btn.call {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.float-btn.whatsapp {
  background: #25d366;
}

/* Utilities */
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .contact-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .navbar {
    flex-wrap: wrap;
    min-height: auto;
    padding: 16px 0;
  }

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

  .nav-menu {
    width: 100%;
    display: none;
    padding-top: 8px;
  }

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

  .nav-links,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a,
  .nav-actions a {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .grid-3,
  .feature-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero-box,
  .panel,
  .service-card,
  .contact-card,
  .contact-form,
  .info-card,
  .hero-card {
    padding: 24px;
  }

  .float-actions {
    right: 12px;
    bottom: 12px;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 56px;
    height: 56px;
  }

  .hero-actions .btn,
  .nav-actions .btn {
    width: 100%;
  }
}
