/* ================================
   alexsirac.pro — stylesheet
   ================================ */

@font-face {
  font-family: 'Caldstone';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Caldstone-SemiBold.otf') format('opentype');
}
@font-face {
  font-family: 'Caldstone';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Caldstone-SemiBoldItalic.otf') format('opentype');
}

/* ---- Design tokens ---- */
:root {
  --c-green:       #12511b;
  --c-green-light: #e1f2eb;
  --c-green-mid:   #b8d9c6;
  --c-white:       #ffffff;
  --c-text:        #1a1a1a;
  --c-text-sec:    #4a5e4d;

  --f-display: 'Caldstone', Georgia, 'Times New Roman', serif;
  --f-body:    'Creato Display', ui-sans-serif, system-ui, sans-serif;

  --max-w:   1100px;
  --pad-x:   2rem;
  --pad-sec: 5rem;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--c-green);
}

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ================================
   LANGUAGE TOGGLE
   ================================ */
.switch {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}

.switch > span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  width: 50%;
  text-align: center;
}

input.check-toggle-round-flat:checked ~ .off {
  color: var(--c-green);
}

input.check-toggle-round-flat:checked ~ .on {
  color: #fff;
}

.switch > span.on {
  left: 0;
  padding-left: 2px;
  color: var(--c-green);
}

.switch > span.off {
  right: 0;
  padding-right: 4px;
  color: #fff;
}

.check-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.check-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.check-toggle:focus-visible + label {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 60px;
}

input.check-toggle-round-flat + label {
  padding: 2px;
  width: 97px;
  height: 35px;
  background-color: var(--c-green);
  border-radius: 60px;
}

input.check-toggle-round-flat + label:before,
input.check-toggle-round-flat + label:after {
  display: block;
  position: absolute;
  content: "";
}

input.check-toggle-round-flat + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background-color: var(--c-green);
  border-radius: 60px;
}

input.check-toggle-round-flat + label:after {
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: 48px;
  background-color: #fff;
  border-radius: 52px;
  transition: margin 0.2s;
}

input.check-toggle-round-flat:checked + label:after {
  margin-left: 44px;
}

/* ================================
   HERO
   ================================ */
.hero-lang {
  display: flex;
  justify-content: flex-end;
  padding-top: 2rem;
}

.hero {
  background: var(--c-green-light);
  border-bottom: 2px solid var(--c-green);
  padding: 0 0 5.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
  padding-top: 2.5rem;
}

.hero-identity {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-photo {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border: 2px solid var(--c-green);
  border-radius: 3px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-meta {
  padding-top: 0.25rem;
}

.hero-name {
  font-family: var(--f-display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--c-green);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-green);
}

.hero-location {
  font-size: 0.8125rem;
  color: var(--c-green);
  margin-top: 0.25rem;
}

.hero-tagline {
  font-family: var(--f-display);
  font-size: clamp(1.625rem, 2.75vw, 2.5rem);
  line-height: 1.3;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

/* ================================
   SECTION BASE
   ================================ */
.section {
  padding: var(--pad-sec) 0;
}

.section-tinted {
  background: var(--c-green-light);
}

h2 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1.75rem;
}

/* ================================
   BIO
   ================================ */
.bio-text {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--c-text);
  max-width: 640px;
}

.bio-text + .bio-text {
  margin-top: 1rem;
}

/* ================================
   CLIENTS / SOCIAL PROOF
   ================================ */
.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  list-style: none;
}

.client-logo-item {
  display: flex;
  align-items: center;
  height: 48px;
}

.client-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* Per-logo optical adjustments — different aspect ratios need different heights to feel balanced */
.client-logo[src*="meta"]       { height: 28px; }
.client-logo[src*="hubspot"]    { height: 28px; }
.client-logo[src*="hyli"]       { height: 28px; }
.client-logo[src*="jobteaser"]  { height: 38px; }
.client-logo[src*="seb"]        { height: 60px; }

/* ================================
   CONTACT
   ================================ */
.section-contact {
  background: var(--c-green);
  padding: 6rem 0;
  text-align: center;
}

.contact-cta {
  font-size: 1.0625rem;
  color: var(--c-green-light);
  margin-bottom: 1.75rem;
}

.contact-email {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--c-white);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 0.1em;
  display: inline-block;
}

.contact-email:hover {
  border-color: var(--c-white);
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--c-green-light);
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.contact-linkedin svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-linkedin:hover {
  color: var(--c-green);
  background-color: var(--c-white);
  border-color: var(--c-white);
}

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

/* ================================
   FOOTER
   ================================ */
.site-footer {
  background: var(--c-green);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--c-green-light);
}

/* ================================
   CASE STUDY
   ================================ */
.case-hero {
  background: var(--c-green-light);
  border-bottom: 2px solid var(--c-green);
  padding: 3rem 0 4rem;
}

.case-back {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-green);
  text-decoration: none;
  margin-bottom: 2rem;
}

.case-back:hover {
  text-decoration: underline;
}

.case-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 0.75rem;
}

.case-client-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1.5rem;
}

.case-title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--c-green);
  letter-spacing: -0.01em;
  max-width: 780px;
  margin-bottom: 1.25rem;
}

.case-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--c-text);
  max-width: 680px;
}

.case-body {
  max-width: 720px;
}

.case-phase-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.75vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--c-green);
  margin-bottom: 1.25rem;
}

.case-body h3 {
  font-family: var(--f-display);
  font-size: 1.375rem;
  color: var(--c-green);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.case-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--c-text);
}

.case-body p + p {
  margin-top: 1rem;
}

.case-body ul {
  margin: 1rem 0 1rem 1.25rem;
}

.case-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

.case-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.25vw, 1.625rem);
  line-height: 1.4;
  color: var(--c-green);
  border-left: 3px solid var(--c-green);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
}

.case-quote cite {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--c-text-sec);
  margin-top: 0.75rem;
}

.case-figure {
  margin: 2rem 0;
  text-align: center;
}

.case-figure img {
  border: 1px solid var(--c-green-mid);
  border-radius: 4px;
  margin-inline: auto;
}

.case-figure figcaption {
  font-size: 0.8125rem;
  color: var(--c-text-sec);
  margin-top: 0.5rem;
}

.case-stats {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--c-green-mid);
}

.case-results {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 0 !important;
  text-align: center;
}

.case-results li {
  margin-bottom: 0 !important;
}

.case-results strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.75rem;
  color: var(--c-green);
}

.bio-link {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.bio-link a {
  font-weight: 600;
}

/* ================================
   CTA BUTTON (case study link)
   ================================ */
.cta-button-wrap {
  text-align: center;
  padding: 2.5rem var(--pad-x) 0;
}

.cta-button {
  display: inline-block;
  background: var(--c-green);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}

.cta-button:hover {
  background: #0d3d14;
  transform: translateY(-1px);
}

/* ================================
   TESTIMONIAL CAROUSEL
   ================================ */
.testimonial-carousel {
  max-width: 720px;
  position: relative;
}

.testimonial-track {
  position: relative;
  min-height: 220px;
}

.testimonial-slide {
  display: none;
  margin: 0;
}

.testimonial-slide[aria-hidden="false"] {
  display: block;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
  background: none;
  border: 1px solid var(--c-green-mid);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--c-green);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--c-green-light);
  border-color: var(--c-green);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--c-green-mid);
  cursor: pointer;
}

.testimonial-dots button[aria-current="true"] {
  background: var(--c-green);
}

.testimonial-disclaimer {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--c-text-sec);
  margin-top: 1.5rem;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 720px) {
  :root {
    --pad-sec: 3.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.625rem;
  }
}

@media (max-width: 480px) {
  :root {
    --pad-sec: 3rem;
    --pad-x: 1.25rem;
  }

  .hero-identity {
    flex-direction: column;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .clients-list {
    gap: 0.6rem 1.75rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}
