/* ===== Global ===== */
:root {
  --primary-dark: #0b3b4b;
  --primary: #1a5e6e;
  --primary-light: #e6f0f3;
  --accent: #f2b148;
  --accent-light: #faeac6;
  --bg-gradient: linear-gradient(145deg, #f6f9fc 0%, #eef2f5 100%);
  --text-dark: #1e2b37;
  --text-light: #f8fafc;
  --card-bg: #ffffff;
  --shadow: 0 30px 50px rgba(0, 30, 50, 0.15);
  --border-radius: 2rem;
  --border-radius-sm: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header & Navigation ===== */
header {
  background: var(--primary-dark);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-dark);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    z-index: 100;
  }
  nav ul.show {
    display: flex;
  }
  nav ul li {
    margin: 0.5rem 0;
  }
}

/* ===== Hero ===== */
.hero {
  background: var(--primary-dark);
  background-image: radial-gradient(circle at 20% 30%, #1a5e6e, #05313e);
  color: white;
  padding: 3rem 2rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin-bottom: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 400;
  opacity: 0.95;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 1rem auto;
}

.hero .badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero .badge {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero .badge i {
  font-size: 1rem;
}

/* ===== Cards & Sections ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-dark);
  border-left: 6px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

body.dark-mode .section-title {
  color: var(--accent-light);
}

/* Grids */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Service cards (like introduction page) */
.service-card {
  background: var(--card-bg);
  border-radius: 2rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #d9e9f0;
  transition: transform 0.15s;
}

.service-card i {
  font-size: 2.6rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.service-card.blue {
  background: var(--primary-dark);
  color: white;
}
.service-card.blue i,
.service-card.blue h3,
.service-card.blue p {
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-dark);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.btn-warning {
  background: var(--accent);
  color: #0b2a33;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contact layout */
.contact-layout {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.contact-text {
  flex: 1 1 300px;
}

.contact-image {
  max-width: 300px;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.map-wrapper {
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Price tags / highlight */
.highlight-list {
  list-style: none;
}
.highlight-list li {
  margin-bottom: 0.8rem;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}
.highlight-list li i {
  color: var(--accent);
  width: 1.6rem;
  font-size: 1.2rem;
}

/* Box highlight */
.box-highlight {
  background: var(--primary-light);
  border-radius: 2rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #cde3ec;
}

/* ===== Blog ===== */
.blog-intro {
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
  color: #4a6070;
}

body.dark-mode .blog-intro {
  color: var(--text-light);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-posts h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.blog-post {
  background: var(--primary-light);
  border-radius: 1.2rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid #cde3ec;
}

.blog-post h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.blog-post time {
  display: block;
  font-size: 0.8rem;
  color: #6a7f8a;
  margin-bottom: 0.6rem;
}

.blog-post p {
  font-size: 0.95rem;
}

body.dark-mode .blog-post {
  background: #1f3741;
  border-color: #355461;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-panel {
  background: var(--primary-light);
  border-radius: 1.2rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid #cde3ec;
}

.blog-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.blog-panel .small-text {
  font-size: 0.85rem;
  color: #6a7f8a;
  margin-bottom: 0.9rem;
}

.blog-subpanel {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed #c7d6de;
}

.blog-subpanel--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.blog-subpanel--row .btn {
  flex: 1 1 auto;
}

.blog-subpanel h4 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.blog-message {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.blog-message--error {
  color: #b33535;
}

.blog-message--success {
  color: #216b35;
}

.hidden {
  display: none !important;
}

/* Blog post interactions */
.blog-post {
  cursor: pointer;
  position: relative;
}

.blog-post-delete {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d9e2ea;
  color: #b33535;
  cursor: pointer;
}

.blog-post-delete:hover {
  background: #ffe7e7;
}

.blog-post:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 22, 31, 0.55);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: 1.5rem;
  padding: 1.5rem 1.7rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  max-width: 640px;
  width: 92%;
  animation: modal-pop 0.22s ease-out;
}

.modal-dialog--blog .modal-body {
  margin-top: 0.8rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  font-size: 1.4rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #6a7f8a;
}

.modal-close:hover {
  color: var(--primary-dark);
}

.modal-body time {
  display: block;
  font-size: 0.9rem;
  color: #6a7f8a;
  margin-bottom: 0.7rem;
}

.modal-body p {
  margin-top: 0.3rem;
  font-size: 0.98rem;
  white-space: pre-wrap;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-footer--right {
  justify-content: flex-end;
}

.btn.btn-secondary {
  background: #e2e8f0;
  color: #1e2b37;
}

.btn.btn-secondary:hover {
  background: #cbd5e1;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== RFQ Form ===== */
.rfq-section {
  margin-top: 2rem;
}

.rfq-card {
  margin-bottom: 0;
}

.rfq-intro {
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
  color: #4a6070;
}

body.dark-mode .rfq-intro {
  color: var(--text-light);
}

.rfq-card form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.rfq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (max-width: 700px) {
  .rfq-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

body.dark-mode .form-group label {
  color: var(--accent-light);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid #c7d6de;
  background: #f7fbfd;
  font: inherit;
  color: var(--text-dark);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 94, 110, 0.18);
  background: #ffffff;
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group input[type="tel"],
body.dark-mode .form-group input[type="number"],
body.dark-mode .form-group input[type="password"],
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #1c323c;
  border-color: #355461;
  color: var(--text-dark);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 177, 72, 0.2);
  background: #203944;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  color: inherit;
}

.js-leasing-group.is-disabled {
  opacity: 0.6;
}

.js-leasing-group.is-disabled input[type="radio"] {
  cursor: not-allowed;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions .btn {
  width: 100%;
  max-width: 260px;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}