@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
}

}