/* /styles.css */
/* CSS By Benoit Hayek */

/* IMPORTED FONTS */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

/* CSS RESET */
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,img,ins,kbd,q,samp,
small,strike,strong,sub,sup,tt,var,
b,u,i,center,dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,embed,
figure,figcaption,footer,header,hgroup,
menu,nav,output,ruby,section,summary,
time,mark,audio,video { margin:0; padding:0; border:0; font:inherit; vertical-align:baseline; }
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display:block; }
ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ROOT VARIABLES */
:root {
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --bg: #0b0d10;
  --panel: rgba(15, 19, 24, .9);
  --card: #0f1722;

  --text: #eaeaea;
  --muted: #cbd5e1;
  --line: #0c2c5f;

  --brand: #1787ff;
  --brand-2: #0a5ed2;
  --accent: #0ea5e9;

  --radius: 14px;
  --radius-lg: 18px;

  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;

  --container: min(1120px, 92vw);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  /* chart labels height for baseline spacing */
  --labels-h: 28px;
}

/* GLOBAL (mobile first) */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0c1116;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}

.header-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #cfe4ff;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.brand-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: .2px;
  color: var(--brand);
}

/* Mobile nav */
.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  background: none;
  border: 0;
  color: #e6f1ff;
  padding: .25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.primary-nav {
  position: absolute;
  inset-inline: 0%;
  top: calc(100% + 1px);
  background: #0c1116;
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform .2s ease, opacity .2s ease, visibility .2s step-end;
}

#nav-toggle:checked~.primary-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .2s ease, opacity .2s ease, visibility 0s;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem 1rem 1rem;
}

.nav-list a {
  display: block;
  padding: .5rem .75rem;
  font-weight: 600;
  color: var(--brand);
  border-radius: 10px;
}

.nav-list a:hover {
  background: #0b1a33;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 54vh;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .65), rgba(0, 0, 0, .6)),
    url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  filter: saturate(.9);
}

.hero-content {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;

}

.hero-panel {
  background: radial-gradient(100% 100% at 0 0, rgba(255, 255, 255, .06), rgba(0, 0, 0, .55));
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  text-align: center;
}

.hero-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .5rem;
}

.hero-panel p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  transition: background-color 0.3s ease; 
}

.btn-primary:hover {
  background: var(--brand-2);
  text-decoration: none;
  transform: translateY(-1px);
  background-color: rgb(235, 85, 40);
}

.btn-block {
  width: 100%;
}

/* Intro */
.intro {
  background: var(--text);
  padding: var(--s-4) 0;
}

.intro h2 {
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: .5rem;
  color: var(--bg)
}

.intro p {
  color: var(--bg);
}

/* Offerings */
.offerings {
  background: var(--text);
  padding: var(--s-4) 0;
}

.offerings h2 {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: .75rem;
  color: var(--bg)
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.card {
  background: var(--brand);
  border: 1px solid var(--brand-2);
  border-radius: var(--radius);
  padding: .9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.card p {
  color: #cfe4ff;
}

/* Results */
.results {
  background: var(--brand);
  color: #0b0d10;
  padding: var(--s-4) 0;
}

.results h2 {
  color: #eaf4ff;
}

.results p {
  color: #eaf4ff;
  opacity: .9;
  margin-bottom: 1rem;
}

.results-grid {
  display: grid;
  gap: 1.25rem;
}

/* Section headings per comp */
.profits h3,
.growth h3 {
  color: #eaf4ff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: .5rem;
}

.results h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: .35rem;
}

/* Profits table */
.table-wrap {
  overflow: auto;
  border-radius: 0px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 360px;
  background: #0b0d10;
  color: #eaeaea;
}

tbody td {
  text-align: center;
}

thead th {
  text-align: center;
  background: #151a21;
  color: #eaf4ff;
  padding: .75rem;
}

tbody td,
tbody th {
  padding: .65rem .75rem;
  border-top: 1px solid #263142;
}

tbody tr:nth-child(2n) {
  background: #12161b;
}

/* Growth bar chart */
.bar-figure {
  display: block;
}

/* Growth bar chart */
.bar-chart-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-flow: column;
  height: 370px; 
  width: 100%;
  max-width: 600px;
  padding: 20px;
  box-sizing: border-box;
}

.bar-chart {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: flex-end;
  justify-content: space-around;
  margin-top: -10px;
  grid-auto-columns: var(--bar-w);
  position: relative;
  height: 250px;
}

.bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 40px; 
  background-color: #333;
  border-radius: 5px 5px 0 0;
  transition: height 0.5s ease-in-out;
}

/* Use the custom CSS property to set the bar height */
.bar[style*="--height"] {
  height: var(--height);
}

.label {
  color: white;
  margin-top: 5px;
  font-family: sans-serif;
  font-size: 14px;
}



@keyframes grow {
  to {
    height: var(--h);
  }
}

/* hide legacy x-axis remnants if any */
.growth .axis,
.growth .x-axis {
  display: none !important;
  height: 0 !important;
  border: 0 !important;
}

/* Contact */
.contact {
  background: var(--bg);
  padding: var(--s-4) 0 var(--s-6);
}

.contact h2 {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.contact p {
  color: var(--text);
  margin-bottom: 1rem;
}

/* Default styles for larger screens */
.form-container {
  display: grid;
  grid-template-columns: 1fr 2fr; 
  gap: 15px;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: .9rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  color: #eaf4ff;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--brand);
  color: #0b0d10;
  padding: .8rem 1rem;
  border-radius: 3px;
  outline: none;
  
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 135, 255, .25);
}

.form-field--full {
  grid-column: 1 / -1;
}

#message {
  min-height: 9.5rem;
}

/* Submit button alignment */
.contact .form-actions {
  display: contents;
  gap: 20px;

}

.contact .form-actions .btn {
  align-self: start;
  width: 100%;
  border-radius: 10px;
  font-weight: 800;
  padding: .8rem 1rem;
}

.btn:hover {
  background: var(--brand-2);
  text-decoration: none;
  transform: translateY(-1px);
  background-color: rgb(235, 85, 40);
}


.contact .btn-block {
  width: auto !important;
}

/* Footer */
.site-footer {
  background: var(--bg);
  padding: 1.25rem 0 2.25rem;
  color: #cfe4ff;
  text-align: center;
}

.site-footer a {
  color: #eaf4ff;
}

/* Styles for smaller screens (e.g., mobile) */
@media only screen and (max-width: 799px) {
  .contact-form .form-grid {
    grid-template-columns: 1fr; 
  }
  .form-input {
    width: 100%; 
  }
}

/* MEDIA QUERY (medium) */
@media (min-width: 800px) {
  .brand-name {
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    border: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: .75rem;
    padding: 0;
  }

  .nav-list a {
    padding: .35rem .5rem;
    color: var(--brand);
  }

  .hero {
    min-height: 56vh;
  }

  .hero-content {
    padding: 5rem 0 3rem;
  }

  .hero-panel {
    max-width: 760px;
    padding-top: calc(1.5rem + 6px);
    padding-right: 1.75rem;
    padding-bottom: calc(2rem + 6px);
    padding-left: 1.75rem;
    text-align: center;
  }

  .hero-panel h2 {
    font-size: 2rem;
  }

  .intro {
    padding: 3rem 0;
  }

  .intro h2 {
    font-size: 1.75rem;
    margin-bottom: .75rem;
  }

  .offerings {
    padding: 5rem 0;
  }

  .offerings h2 {
    font-size: 1.6rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .results {
    padding: 3rem 0;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
  }

  .bar-chart {
    --bar-w: 60px;
    height: 220px;
    padding-bottom: var(--labels-h);
    margin-top: -14px;
  }

  .bar-labels {
    grid-auto-columns: 60px;
    gap: 1rem;
  }

  .bar:nth-child(1) {
    --h: 53px !important;
  }

  .bar:nth-child(2) {
    --h: 84px !important;
  }

  .bar:nth-child(3) {
    --h: 136px !important;
  }

  .bar:nth-child(4) {
    --h: 180px !important;
  }

  .bar:nth-child(5) {
    --h: 220px !important;
  }

  .profits table {
    font-size: .95rem;
  }

  .contact h2 {
    font-size: 1.6rem;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field--full {
    grid-column: 1 / -1;
  }
}

/* MEDIA QUERY (large) */
@media (min-width: 1024px) {
  .brand-name {
    font-size: 1.35rem;
  }

  .hero {
    min-height: 58vh;
  }

  .hero-content {
    padding: 6rem 0 4rem;
  }

  .hero-panel h2 {
    font-size: 2.25rem;
  }

  .intro p {
    max-width: 68ch;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .card {
    padding: 1.1rem 1.25rem;
  }

  .results-grid {
    gap: 3rem;
  }

  .bar-chart {
    --bar-w: 80px;
    height: 300px;
    gap: 1.5rem;
    padding-bottom: var(--labels-h);
    margin-top: -18px;
  }

  .bar-labels {
    grid-auto-columns: 80px;
    gap: 1.5rem;
  }

  .bar:nth-child(1) {
    --h: 72px !important;
  }

  .bar:nth-child(2) {
    --h: 114px !important;
  }

  .bar:nth-child(3) {
    --h: 186px !important;
  }

  .bar:nth-child(4) {
    --h: 246px !important;
  }

  .bar:nth-child(5) {
    --h: 300px !important;
  }

  .contact .container {
    max-width: 1100px;
  }

  .contact-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.25rem;
    row-gap: 1rem;
  }

}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
