/* Base styles and shared visual system */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef2ff;
  --text: #14213d;
  --muted: #5f6f87;
  --primary: #0f5bff;
  --primary-dark: #0b3db2;
  --border: rgba(15, 91, 255, 0.12);
  --shadow: 0 20px 50px rgba(15, 33, 68, 0.12);
}

body[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0f172a;
  --surface-alt: #10213b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #7ba1ff;
  --primary-dark: #4b6ef5;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 25px 60px rgba(2, 6, 23, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, #ffffff 10%) 100%);
  color: var(--text);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  box-shadow: 0 12px 25px rgba(15, 91, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.32);
}

body[data-theme="dark"] .section-alt {
  background: rgba(15, 23, 42, 0.55);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-heading h2,
.section-alt h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-copy {
  color: var(--muted);
  font-size: 1rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

body[data-theme="dark"] .site-footer {
  background: rgba(7, 17, 31, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.page-shell {
  min-height: 100vh;
  padding: 7rem 0 4rem;
  display: flex;
  align-items: center;
}

.page-message,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.page-message h1,
.contact-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.contact-placeholder {
  min-height: 160px;
  border: 2px dashed var(--border);
  border-radius: 18px;
  margin-top: 2rem;
}

.peso-page { display: block; }
.peso-intro { max-width: 720px; margin: 1rem auto 3rem; }
.peso-intro h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 0.75rem; }
.peso-intro p, .peso-card p { color: var(--muted); }
.peso-intro p { margin: 0; }
.peso-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 2.25rem; box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.peso-card:hover { transform: translateY(-6px); box-shadow: 0 26px 55px rgba(15, 33, 68, 0.16); }
body[data-theme="dark"] .peso-card:hover { box-shadow: 0 26px 55px rgba(2, 6, 23, 0.55); }
.peso-card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem; border-radius: 16px; background: color-mix(in srgb, var(--primary) 13%, transparent); color: var(--primary); font-size: 1.35rem; }
.rules-icon { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #d97706; }
.peso-card h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: 0.6rem; }
.peso-card p { margin-bottom: 1.25rem; }
.peso-list { display: grid; gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.peso-list li { display: flex; align-items: flex-start; gap: 0.7rem; }
.peso-list i { color: var(--primary); margin-top: 0.45rem; font-size: 0.8rem; }
.peso-card-link { display: block; color: inherit; }
.peso-card-action { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.5rem; color: var(--primary); font-size: 0.92rem; font-weight: 700; }
.peso-card-link:hover .peso-card-action i { transform: translateY(3px); }
.peso-card-action i { transition: transform 0.2s ease; }
.peso-services { scroll-margin-top: 6rem; padding: 5.5rem 0 1rem; }
.services-heading { max-width: 390px; margin-bottom: 2.5rem; }
.services-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 0.55rem; }
.services-heading p { color: var(--muted); margin: 0; }
.service-item { display: flex; min-height: 145px; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: 1.4rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 10px 25px rgba(15, 33, 68, 0.06); transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
a.service-item:hover { transform: translateY(-5px); color: var(--text); border-color: color-mix(in srgb, var(--primary) 42%, var(--border)); box-shadow: var(--shadow); }
.service-item > i { color: var(--primary); font-size: 1.65rem; }
.service-item span { font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
@media (max-width: 768px) {
  .marquee-logo-card {
    flex: 0 0 160px;
    height: 80px;
    padding: 0.85rem 1rem;
  }
  .marquee-logo-card img {
    max-height: 42px;
  }
}

/* ==========================================================================
   PDF Actions Bar & Open in New Tab Button
   ========================================================================== */
.pdf-actions-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px !important;
  padding: 0.9rem 1.35rem !important;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.btn-pdf-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  line-height: 1.4;
  cursor: pointer;
}

/* Open in New Tab Button - Sleek Pill Design */
.btn-pdf-tab {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.btn-pdf-tab:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

/* Download PDF Button */
.btn-pdf-download {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.btn-pdf-download:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}
@media (max-width: 575.98px) { .peso-card { padding: 1.6rem; } .peso-services { padding-top: 4rem; } }
.service-button { width: 100%; border: 1px solid var(--border); text-align: left; font-family: inherit; cursor: pointer; }
.service-button:hover, .service-button:focus-visible { transform: translateY(-5px); color: var(--text); border-color: color-mix(in srgb, var(--primary) 42%, var(--border)); box-shadow: var(--shadow); outline: none; }
.service-button.active { border-color: var(--primary); background: var(--surface-alt); box-shadow: var(--shadow); }
.service-arrow { align-self: flex-end; margin-top: -3rem; font-size: 0.95rem !important; transition: transform 0.2s ease; }
.service-button:hover .service-arrow, .service-button:focus-visible .service-arrow, .service-button.active .service-arrow { transform: translateX(5px); color: var(--primary); }
.service-details { scroll-margin-top: 6rem; margin-top: 3rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.service-details img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 17px; }
.service-details h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; margin-bottom: 0.85rem; }
.service-details p { max-width: 620px; margin-bottom: 1.5rem; color: var(--muted); }

/* Interactive Act & Rules Library Section */
.peso-rules { scroll-margin-top: 6rem; padding: 5.5rem 0 2rem; border-top: 1px solid var(--border); margin-top: 5rem; }
.rules-heading { max-width: 600px; margin-bottom: 3rem; }
.rules-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 0.55rem; }
.rules-heading p { color: var(--muted); margin: 0; }

.rules-sidebar { display: flex; flex-direction: column; gap: 0.75rem; }
.rule-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(15, 33, 68, 0.03);
}
.rule-nav-item:hover, .rule-nav-item:focus-visible {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 8px 20px rgba(15, 33, 68, 0.08);
  outline: none;
}
.rule-nav-item.active {
  border-color: var(--primary);
  background: var(--surface-alt);
  box-shadow: var(--shadow);
}
.rule-nav-item i {
  font-size: 1.25rem;
  color: var(--primary);
}
.rule-nav-item.active i {
  color: var(--primary-dark);
}

.rule-detail-container {
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  height: 100%;
}
.rule-detail-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}
.rule-detail-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.rule-detail-header p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.doc-list-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.doc-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  transition: all 0.2s ease;
}
.doc-list-item:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  background: var(--surface);
  transform: translateY(-2px);
}
.doc-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.doc-title i {
  color: #ef4444;
  font-size: 1.1rem;
}
.doc-list-item.active {
  border-color: var(--primary);
  background: var(--surface-alt);
}
.doc-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.doc-select-btn:hover, .doc-list-item.active .doc-select-btn {
  background: var(--primary);
  color: #fff;
}

.pdf-viewer-wrapper {
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}
.pdf-iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}
.pdf-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 0.25rem 0.5rem;
}
.pdf-view-tab-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.pdf-view-tab-btn:hover {
  color: var(--primary-dark);
}

@media (max-width: 767.98px) {
  .pdf-iframe {
    height: 420px;
  }
}

/* Contact Page Design System & Components */
:root {
  --accent-orange: #f97316;
  --accent-orange-dark: #ea580c;
  --accent-orange-glow: rgba(249, 115, 22, 0.25);
}

/* Contact Hero Banner */
.contact-banner-section {
  position: relative;
  padding: 8rem 0 4.5rem;
  background: url('../assets/images/contact-banner.jpg') center/cover no-repeat;
  color: #ffffff;
  margin-top: 60px;
}
.contact-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 33, 61, 0.92) 0%, rgba(7, 17, 31, 0.96) 100%);
}
.contact-banner-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.contact-banner-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.contact-banner-content p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}
.contact-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.contact-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}
.contact-breadcrumb a:hover {
  color: var(--accent-orange);
}
.contact-breadcrumb .active-crumb {
  color: var(--accent-orange);
  font-weight: 700;
}

/* Petroleum Act Document Section Styles */
.petroleum-act-section {
  padding: 4rem 0;
}

.petroleum-act-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.petroleum-act-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.petroleum-act-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 91, 255, 0.12);
  border-color: var(--primary);
}

.petroleum-act-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, #ff4b4b 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.petroleum-act-card:hover::before {
  opacity: 1;
}

.petroleum-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.petroleum-doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.petroleum-doc-size {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: var(--surface-alt);
  color: var(--muted);
}

.petroleum-doc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.petroleum-doc-desc {
  font-size: 0.88rem;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.petroleum-doc-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.petroleum-doc-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

/* Accordion Sidebar Navigation matching User Design */
.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-category-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.accordion-category-header:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.accordion-category-header .chevron-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.accordion-category-header.open .chevron-icon {
  transform: rotate(180deg);
}

.accordion-sub-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.accordion-sub-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.accordion-sub-item .caret-icon {
  color: #9333ea;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.accordion-sub-item:hover {
  background: rgba(147, 51, 234, 0.06);
  color: #7e22ce;
  border-top-color: rgba(56, 189, 248, 0.5);
  border-bottom-color: rgba(56, 189, 248, 0.5);
}

.accordion-sub-item.active {
  background: rgba(147, 51, 234, 0.09);
  color: #6b21a8;
  font-weight: 600;
  border-top: 2px solid #38bdf8;
  border-bottom: 2px solid #38bdf8;
}

.accordion-sub-item.active .caret-icon {
  transform: translateX(3px);
  color: #6b21a8;
}

/* Contact Info Cards */
.contact-info-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-info-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-orange);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}
.contact-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(234, 88, 12, 0.22) 100%);
  color: var(--accent-orange);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.contact-info-card:hover .contact-icon-wrapper {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px var(--accent-orange-glow);
}
.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-info-card p, .contact-info-card a {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
.contact-info-card a:hover {
  color: var(--accent-orange);
}

/* Contact Form & Map Section */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.contact-form .form-control,
.contact-form .form-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: var(--surface);
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px var(--accent-orange-glow);
  outline: none;
}
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}
.contact-form .btn-submit-orange {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 25px var(--accent-orange-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.contact-form .btn-submit-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.35);
  color: #ffffff;
}

/* Map Embed Container */
.map-embed-wrapper {
  height: 100%;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
}

/* Why Choose Drawtech Cards */
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}
.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.why-card:hover .why-icon {
  transform: scale(1.15);
  background: var(--primary);
  color: #ffffff;
}
.why-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.why-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

/* FAQ Section Accordion */
.faq-accordion .accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 33, 68, 0.04);
}
.faq-accordion .accordion-button {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  border: none;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--surface-alt);
  color: var(--primary);
}
.faq-accordion .accordion-button:focus {
  box-shadow: none;
}
.faq-accordion .accordion-body {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  padding: 1rem 1.5rem 1.5rem;
}

/* Pre-Footer Call To Action */
.cta-banner-section {
  background: linear-gradient(135deg, #0f213d 0%, #07111f 100%);
  border-radius: 28px;
  padding: 4rem 2rem;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 33, 68, 0.3);
}
.cta-banner-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}
.cta-banner-section p {
  max-width: 650px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

/* Extended Footer Styling */
.main-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  color: var(--text);
}
.footer-brand {
  margin-bottom: 1.5rem;
}
.footer-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.footer-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-orange);
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li {
  margin-bottom: 0.65rem;
}
.footer-links-list a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links-list a:hover {
  color: var(--accent-orange);
  padding-left: 4px;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.social-icon:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Back to Top Button with Scroll Progress */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #14213d;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  box-shadow: 0 4px 15px rgba(15, 33, 68, 0.25);
  padding: 0;
}

body[data-theme="dark"] .back-to-top {
  background-color: #0f172a;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: #0f5bff;
  box-shadow: 0 8px 20px rgba(15, 91, 255, 0.35);
}

.back-to-top i {
  font-size: 1rem;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.back-to-top:hover i {
  transform: translate(-50%, -58%);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.progress-ring__circle {
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.05s linear;
}

/* Blank / Placeholder Service Card Styles */
.blank-service-card {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}
.blank-service-card:hover {
  border-color: var(--primary);
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 91, 255, 0.08);
}
.blank-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.blank-service-card:hover .blank-card-icon {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  transform: rotate(10deg);
}
.blank-service-card .badge-coming-soon {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Chartered Engineer Section Styles */
.ce-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(15, 91, 255, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  margin-bottom: 1rem;
}
.ce-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
}
.ce-detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(15, 91, 255, 0.1);
}
.ce-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 91, 255, 0.25);
}
.ce-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  height: 100%;
}
.ce-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 16px var(--accent-orange-glow);
}