/* ===================================================
   VARIABLES
   =================================================== */
:root {
  --black:    #000000;
  --white:    #ffffff;
  --grey:     #cccccc;
  --font:     'Barlow', sans-serif;
  --ease:     0.35s ease;
  /* Frame is the white border — 30px minimum per brief */
  --frame:    clamp(30px, 4vw, 80px);
  --section-py: clamp(4rem, 6vw, 8rem);
}

/* ===================================================
   RESET
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===================================================
   PAGE FRAME  (white border — minimum 30px all sides)
   =================================================== */
.page-frame {
  position: fixed;
  inset: 0;
  border: var(--frame) solid var(--white);
  pointer-events: none;
  z-index: 9000;
}

/* ===================================================
   HEADER / NAV
   Logo flush to left frame.  Nav flush to right frame.
   =================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* top padding = frame so logo clears the white border */
  padding: var(--frame) var(--frame) 1rem;
  transition: background 0.5s ease;
}
.site-header.is-transparent { background: transparent; }
.site-header.is-solid       { background: var(--black); }

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

.logo-img {
  height: 115px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-right: 30px;
}

/* Nav links 20% larger than 0.85rem = ~1rem */
.nav-link {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity var(--ease);
}
.nav-link:hover { opacity: 0.6; }

/* --- Mobile menu --- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity var(--ease);
}
.mobile-nav.is-open { opacity: 1; }

.mobile-nav-link {
  color: var(--white);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity var(--ease);
}
.mobile-nav-link:hover { opacity: 0.6; }

.mobile-close-btn {
  position: absolute;
  top: calc(var(--frame) + 1rem);
  right: calc(var(--frame) + 1rem);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ===================================================
   HERO
   Full-viewport, image_1 background, left-aligned text
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: -30%; left: 0; right: 0; bottom: -30%;
  background: url('../images/image_1.jpg') center center / cover no-repeat;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--frame) var(--frame) var(--frame) calc(var(--frame) + 30px);
  color: var(--white);
  max-width: 820px;
}

.hero__content h1 {
  font-size: 5.5rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__content p {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* ===================================================
   GHOST BUTTON
   outlined, white border, 50% black fill, white text
   =================================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  transition: background var(--ease);
  white-space: nowrap;
}
.btn:hover { background: rgba(0, 0, 0, 0.75); }

/* ===================================================
   ABOUT SECTION
   Black background, centred heading, 4 white cards
   =================================================== */
.about-section {
  background: var(--black);
  padding: var(--section-py) var(--frame);
}

.about-heading {
  text-align: center;
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 3rem;
}

/* 4-col elastic grid → 2-col tablet → 1-col mobile */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  color: var(--black);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* "Black box with white text" — solid, not ghost */
.card-btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  transition: background var(--ease);
}
.card-btn:hover { background: #333; }

/* ===================================================
   FOUR-COLUMN CONTENT SECTIONS
   Col 1 = section heading, Cols 2-4 = body paragraphs
   Elastic 4-col desktop, single col mobile
   =================================================== */

/* Wrapper for sections that have a background image */
.content-section {
  position: relative;
  overflow: hidden;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.four-col {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: var(--section-py) var(--frame) var(--section-py) calc(var(--frame) + 30px);
}

.four-col .col:first-child h2 {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.15;
}

.four-col .col p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.four-col .col p:last-child { margin-bottom: 0; }

/* Image sections: white text */
.section-clientcare {
  background: url('../images/image_2.jpg') center / cover no-repeat;
  color: var(--white);
}
.section-content-prod {
  background: url('../images/image_3.jpg') center / cover no-repeat;
  color: var(--white);
}

/* Grey sections: black text, no overlay needed */
.grey-section {
  background: var(--grey);
  color: var(--black);
}

/* ===================================================
   CONTACT / CTA SECTION
   Used both as homepage bottom section and as the
   full-page contact.html content.
   =================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  background-image: url('../images/image_4.jpg');
  background-size: cover;
  background-position: center 60%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* On homepage: 15:10 aspect ratio */
.cta-section-home { min-height: 0; padding: 80px var(--frame) 80px calc(var(--frame) + 30px); aspect-ratio: 15 / 10; }

/* On contact.html it fills the viewport */
.cta-page { min-height: 100vh; padding: 80px var(--frame) 80px calc(var(--frame) + 30px); }

.cta-bg {
  display: none;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 600px);
}

/* Left-aligned content, 30px+ from all edges */
.cta-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 55%;
}

.cta-content h2 {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cta-content > p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Footer nav below the button */
.cta-footer-nav {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-footer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--ease);
}
.cta-footer-nav a:hover { color: var(--white); }

.cta-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  user-select: none;
}


/* Corner logo: 50% larger than nav logo (115px × 1.5 = 172px) */
.cta-corner-logo {
  position: absolute;
  bottom: var(--frame);
  right: var(--frame);
  height: 170px;
  width: auto;
  z-index: 2;
}

/* ===================================================
   CONTACT FORM  (contact.html only)
   Styled for dark image background
   =================================================== */
.cta-form-block {
  margin-bottom: 200px;
}

.contact-form {
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===================================================
   TEXT PAGES  (terms-of-service / privacy-policy)
   =================================================== */
.text-page {
  padding-top: calc(var(--frame) + 115px + 2rem);
  padding-bottom: var(--section-py);
  padding-left: calc(var(--frame) + 30px);
  padding-right: var(--frame);
  background: var(--white);
  min-height: 100vh;
}

.text-content { max-width: 800px; }

.text-content h1 {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.text-content .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 3rem;
}

.text-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

.text-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.text-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.text-content ul li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.3rem;
}
.text-content a { color: var(--black); text-decoration: underline; }
.text-content a:hover { color: #555; }

/* ===================================================
   SITE FOOTER  (used on text pages)
   =================================================== */
.site-footer {
  background: var(--black);
  padding: 2rem var(--frame);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo img {
  height: 65px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--white); }

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards */
.cards-grid .card:nth-child(1) { transition-delay: 0s;    }
.cards-grid .card:nth-child(2) { transition-delay: 0.1s;  }
.cards-grid .card:nth-child(3) { transition-delay: 0.2s;  }
.cards-grid .card:nth-child(4) { transition-delay: 0.3s;  }

/* Stagger four-col columns */
.four-col .col:nth-child(1) { transition-delay: 0s;    }
.four-col .col:nth-child(2) { transition-delay: 0.1s;  }
.four-col .col:nth-child(3) { transition-delay: 0.2s;  }
.four-col .col:nth-child(4) { transition-delay: 0.3s;  }

/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .four-col   { grid-template-columns: repeat(2, 1fr); }

  .hero__content h1  { font-size: 3.5rem; }
  .cta-content       { max-width: 75%; }
  .cta-content h2    { font-size: 2.5rem; }
}

/* Mobile */
@media (max-width: 768px) {
  .main-nav         { display: none; }
  .mobile-menu-btn  { display: flex; }
  .logo-img         { height: 65px; }

  .cards-grid { grid-template-columns: 1fr; }
  .four-col   { grid-template-columns: 1fr; gap: 1.5rem; }

  .hero__content h1 { font-size: 2.4rem; }
  .hero__content p  { font-size: 1rem; }

  .cta-content      { max-width: 100%; }
  .cta-content h2   { font-size: 2rem; }
  .cta-content > p  { font-size: 1rem; }

  .cta-corner-logo  { height: 100px; }
  .cta-arc          { width: 360px; height: 360px; bottom: -180px; right: -180px; }
}
