@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Montserrat:wght@400;600&display=swap');

:root {
  --bg-1: #07121a;
  --bg-2: #0e2230;
  --ink: #eef2f3;
  --muted: #b8d3d0;
  --brand: #00bfa5;
  --brand-ink: #062b2a;
  --card: #0c1b26;
  --stroke: #11414a;
  --bg-image: url('./images/consulting.jpg');
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(7, 18, 26, .85), rgba(14, 34, 48, .85)),
    var(--bg-image) center / cover no-repeat fixed;
}

/* TYPOGRAPHY */
h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: .5px;
  color: var(--brand);
}

.tagline {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 18px);
}

h2 {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: clamp(22px, 3.6vw, 28px);
}

h4 {
  color: var(--brand);
}

p {
  color: #e7f4f3;
}

a {
  color: var(--brand);
}

a:hover {
  text-decoration: underline;
}

/* BUTTONS & LINKS */
.btn {
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  padding: .75rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* LAYOUT */
header,
section,
footer,
main {
  padding: clamp(16px, 2.2vw, 28px) clamp(18px, 4vw, 80px);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid #0f2b38;
}

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  height: 50px;
}

/* ICON CARDS GRID */
.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(12, 27, 38, .55);
  backdrop-filter: saturate(120%) blur(4px);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cardblog {
  background: rgba(12, 27, 38, .55);
  backdrop-filter: saturate(120%) blur(4px);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-block;
}

.icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.icon circle,
.icon path,
.icon rect,
.icon line {
  stroke: #9fe6db;
}

/* KPI STRIP */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.kpi {
  background: rgba(10, 25, 34, .45);
  backdrop-filter: blur(2px);
  border: 1px dashed #22565e;
  border-radius: 12px;
  padding: 12px;
}

.kpi h3 {
  margin: .2rem 0;
  color: #a0d8d3;
}

/* UTIL */
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FORMS */
form {
  display: grid;
  gap: 12px;
  background: rgba(12, 27, 38, .55);
  border: 1px solid #11414a;
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: saturate(120%) blur(4px);
}

.row_form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px solid #22565e;
  background: #0e2230;
  color: #eef2f3;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}

button {
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  padding: .8rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.note {
  font-size: .9rem;
  color: #b8d3d0;
}

.status {
  margin-top: 8px;
  font-size: .95rem;
}

.status.ok {
  color: #7fe1d3;
}

.status.err {
  color: #ffb3b3;
}

/* HEADER AND FOOTER */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-row img {
  height: 42px;
  width: auto;
  display: block;
}

.title-green {
  margin: 0;
  font-size: clamp(24px, 4.6vw, 42px);
  font-weight: 800;
  color: #00bfa5;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

footer {
  border-top: 1px solid #0f2b38;
  text-align: center;
  color: #b7d6d3;
  opacity: .92;
}

/* ABOUT PAGE SPECIFIC STYLES */
.about-page {
  background: linear-gradient(180deg, rgba(7, 18, 26, .85), rgba(14, 34, 48, .85)),
    var(--bg-image) center / cover no-repeat fixed;
}

.about-page main img {
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* PRIVACY PAGE SPECIFIC STYLES */
.privacy-page {
  background: #0a1a1a;
  color: #f0f0f0;
  line-height: 1.6;
}

.privacy-page main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.privacy-page h1,
.privacy-page h2 {
  color: #00bfa5;
}

.privacy-page a {
  color: #00bfa5;
}

/* BLOG PAGE SPECIFIC STYLES */
.full-content {
  display: none;
}

.initial-content {
  display: block;
}

.expand-btn {
  /* This change forces the button onto its own line and removes the gap */
  display: block;
  margin-top: 1rem;
}

/* When the card has data-expanded="true" */
.card[data-expanded="true"] .full-content {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.card[data-expanded="true"] .expand-btn {
  display: none;
}

.card[data-expanded="false"] .collapse-btn {
  display: none;
}

.cardblog[data-expanded="true"] .full-content {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.cardblog[data-expanded="true"] .expand-btn {
  display: none;
}

.cardblog[data-expanded="false"] .collapse-btn {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

pre {
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
}

pre code {
  /* Ensure the code fits inside the pre container */
  white-space: pre;
  max-width: 200px;
  overflow-x: scroll;
}

@media (max-width: 600px) {
  code {
    font-size: 0.8em;
    overflow-x: scroll;
  }

  pre code {
    /* Ensure the code fits inside the pre container */
    white-space: pre;
    overflow-x: scroll;
  }

  .cardblog[data-expanded="true"] .full-content {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
    max-width: 300px
  }

}

.availability-page {
  background: linear-gradient(180deg, rgba(7, 18, 26, .85), rgba(14, 34, 48, .85)),
    var(--bg-image) center / cover no-repeat fixed;
}

/* FOOTER HOVER EFFECT (Revised for multi-line and mobile) */
.business-info {
  /* Desktop: Hidden state */
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.3s, max-width 0.3s, margin-left 0.3s;
}

/* New layout for footer to stack content */
footer {
  display: flex;
  flex-direction: column;
  /* Stacks lines vertically (main text and nav) */
  align-items: center;
  /* Centers lines horizontally */
  gap: 4px;
  /* Vertical space between the main text line and the nav link */
  padding: clamp(16px, 2.2vw, 28px) clamp(18px, 4vw, 80px);
}

/* Ensure the line of text uses flex for the horizontal hover effect on DESKTOP */
.footer-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* On hover over the footer, show the business info inside the line */
footer:hover .business-info {
  opacity: 1;
  max-width: 500px;
  margin-left: 6px;
}

/* On hover over the footer, hide/fade the original 'All rights reserved' text */
footer:hover .original-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.3s, max-width 0.3s;
}

/* Mobile Adjustments */
@media (max-width: 600px) {

  /* Switch footer line to block so its contents can naturally wrap */
  .footer-line {
    display: block;
    text-align: center;
  }

  /* Force IDs to be visible and allow wrapping on mobile */
  .business-info {
    display: block;
    opacity: 1;
    max-width: none;
    overflow: visible;
    white-space: normal;
    /* Allows text to wrap */
    margin: 4px 0 0 0;
    /* Adds a small top margin for separation */
    transition: none;
    /* Disable transition on mobile */
  }

  /* Hide the original "All rights reserved" text on mobile since the IDs replace it */
  .original-text {
    display: none;
  }

  /* Ensure the copyright text on mobile flows naturally */
  .copyright-text {
    display: block;
  }
}

/* ==================================== */
/* MOBILE ADJUSTMENTS          */
/* ==================================== */
@media (max-width: 600px) {

  /* HEADER LAYOUT: Stacks the logo/title block and the buttons vertically */
  header {
    flex-direction: column;
    align-items: start;
    /* Centers the brand row */
    padding: 1rem 0 1rem 1rem;
  }

  /* SCROLLABLE BUTTON BAR: Forces buttons onto one line and enables horizontal scroll */
  header .row {
    flex-wrap: nowrap;
    /* Forces onto one line */
    justify-content: flex-start;
    overflow-x: auto;
    /* ENABLE HORIZONTAL SCROLLING */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-top: 0;
    /* RESTORE ORIGINAL DISTANCE: Use gap to match desktop spacing (12px) */
    gap: 12px;
    /* Add padding on the sides and bottom (for scrollbar) */
    padding: 0 -1rem 0 1rem; 
    height: auto; /* Allow the container to grow to fit all rows of buttons */
  }

  /* Ensure buttons use their original size/style and clear any conflicting mobile margins */
  header .row .btn {
    white-space: nowrap;
    margin: 0;
    /* Clear previous left/right margins to let gap control spacing */
  }

  /* FOOTER FIX: Mobile Adjustments */

  /* Switch footer line to block so its contents can naturally wrap */
  .footer-line {
    display: block;
    text-align: center;
  }

  /* Force IDs to be visible and allow wrapping on mobile */
  .business-info {
    display: block;
    opacity: 1;
    max-width: none;
    overflow: visible;
    white-space: normal;
    margin: 4px 0 0 0;
    transition: none;
  }

  /* Hide the original "All rights reserved" text on mobile since the IDs replace it */
  .original-text {
    display: none;
  }

  /* Ensure the copyright text on mobile flows naturally */
  .copyright-text {
    display: block;
  }
}