/* ============================================================
   1. BASE RESET & TYPOGRAPHY
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ----------------------------
   Font-face declarations
---------------------------- */
@font-face {
  font-family: 'Carlito';
  src: url('fonts/Carlito-Regular.woff2') format('woff2'),
       url('fonts/Carlito-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('fonts/Carlito-Bold.woff2') format('woff2'),
       url('fonts/Carlito-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('fonts/Carlito-Italic.woff2') format('woff2'),
       url('fonts/Carlito-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Carlito';
  src: url('fonts/Carlito-BoldItalic.woff2') format('woff2'),
       url('fonts/Carlito-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* ----------------------------
   HTML & Body
---------------------------- */
html {
  font-family: 'Carlito', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 60px; /* account for fixed navbar */
  background: #fff;
  font-family: 'Carlito', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ----------------------------
   Headings & Paragraphs
---------------------------- */
h1,h2,h3,h4,h5,h6 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  font-size: clamp(24px, 4.79vw, 48px);
  letter-spacing: 0.025em;
  color: #000;
}

p {
  margin: 10px;
  line-height: 1.625;
  font-size: clamp(16px, 1.05vw, 20px);
  letter-spacing: 0.025em;
  color: #000;
}

/* ----------------------------
   Links
---------------------------- */
a {
  color: #0e0e0e;
  text-decoration: underline;
}
a:hover, a:focus {
  text-decoration: underline;
  outline: none;
}

/* ----------------------------
   Media elements
---------------------------- */
img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------
   Lists & Tables
---------------------------- */
ul, ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* ----------------------------
   Inputs & Buttons reset
---------------------------- */
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

:focus {
  outline: 3px solid rgba(11,102,255,0.2);
  outline-offset: 2px;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  html { font-size: 18px; }
}

/* ============================================================
   2. LAYOUT HELPERS & GRIDS
   ============================================================ */























   .layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LEFT COLUMN CONTAINER */
.grid-container {
  display: grid;
  justify-content: stretch;
  align-items: center;
  grid-column: 1;
  grid-row: 3;
  position: relative;
  padding: 0 20px 80px;
}

.grid-item { padding: 0 0 0 20px; text-align: center; justify-content: stretch; }

/* SERVICES GRID */
.grid-container3 {
  background-color: black;
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  overflow: visible;
  z-index: 2;
}

/* RIGHT COLUMN IMAGE */
.grid-container4 {
  background-color: black;
  grid-column: 2;
  grid-row: 1 / 4;
  position: static;
  overflow: hidden;
  z-index: 2;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-container4 img {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  z-index: 1;
}

/* LEFT COLUMN — TEXT */
.left-column,

.text-box p,
.logo-heading {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.left-column {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  background: transparent;
}

.logo-heading {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  gap: 16px;
  padding: 50px 50px 10px 50px;
  overflow: hidden;
  z-index: 3;
}

.logo-heading img {
  float: left;
  width: 350px;
  height: auto;
  margin-top: 50px;
  margin-right: 16px;
  margin-bottom: 8px;
  display: block;
}

.logo-heading h2,
.h2head {
  font-size: 68px;
  flex: 1;
  text-align: left;
  margin: 0;
  line-height: 1.1;
}

.h2head1 {
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
}

/* INLINE LOGO INSIDE PARAGRAPHS */
.text-box p img {
  width: clamp(50px, 10vw, 200px); /* scales with viewport */
  height: auto;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.inline-row {
  display: inline-flex;
  align-items: center;  /* vertically center logo + text */
  gap: 8px;
  line-height: 1.3;
}


.text-box p {
  margin-bottom: 0 0 0 0;
  padding: 0 0 0 0;
  text-align: left;
}

.text-box a:hover img {
  transform: scale(1.2);
}

/* LISTS */
.text-box ul {
  list-style: disc inside;
  margin: 0 0;
  text-align: left;
  padding: 20px;
}

.text-box li {
  margin-bottom: 0;
}

.font-semibold {
  font-weight: 600;
}

/* SOCIAL ICONS */
.is-social {
  position: relative;       /* create new stacking context */
  z-index: 9999;            /* ensure it sits above everything */
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 20px;
  padding: 50px 0;
  will-change: transform;   /* hint for GPU rendering */
}

.is-social a img {
  display: inline-block;
  width: 32px;
  height: auto;
  transition: transform 0.3s ease;
}

.is-social a:hover img {
  transform: scale(1.5);
}

.grid-container5 {
  display: none;
}

.logo-heading1 {
  display: none;
}

/* Mobile optimization */


@media (max-width: 1280px) {
  /* Change layout to single column stacking order */
  .layout {
    grid-template-columns: 1fr;          /* only one column */
    grid-template-rows: auto auto auto;       /* text first, image second */
  }

  .logo-heading {
    display: none;
  }

  .logo-heading1 {
    grid-column: 1;
    grid-row: 1; /* under text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    margin: 0 auto 30px;
    order: -1;
    text-align: center;
  }

  .logo-heading img {
    width: clamp(180px, 40vw, 300px);
    height: auto;
    margin-bottom: 10px;
  }

  .logo-heading h2 {
    font-size: clamp(32px, 6vw, 56px);
        grid-column: 1;
    grid-row: 1; /* under text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    margin: 0 auto 30px;
    order: -1;
  }

  .text-box p {
  margin-bottom: 16px;
  text-align: center;
}

  /* Ensure text column expands full width */
  .grid-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-column: 1;
    grid-row: 2; /* directly under logo */
    padding: 0 20px 40px;
  }
  .text-box p {
    text-align: center;
  }

  /* Right column (image) now stacks underneath text */
  .grid-container4 {
    display: none;
  }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .grid-container4 img {
    position: relative;
    width: 100%;
    height: auto;
  }

  .logo-heading,
  .text-content {
    padding: 1.5rem;
  }

  .h2head {
    font-size: 1.5rem;
  }
}

/* ============================================================
   4. BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  background: #111;
  color: #fff;
  transition: all 0.3s;
}
.btn:hover { background: #333; }

/* ============================================================
   5. FOOTER
============================================================ */
footer {
  background: #000;
  color: #fff;
  padding: 20px;
  text-align: center;
  z-index: 10;
  overflow: hidden;
}

footer .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer p {
  margin: 0;
  text-align: center;
}

@media screen and (min-width: 769px) {
  footer .row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

footer .row .column:first-child img {
  max-width: 150px;
}

footer .is-social a i {
  font-size: 2rem;
  margin: 0 10px;
  color: #1E90FF;
  transition: transform 0.2s, color 0.2s;
}

footer .is-social a:hover i {
  transform: scale(1.2);
  color: #0096FF;
}

/* ============================================================
   6. GDPR POPUP
============================================================ */
.gdpr-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.95);
  color: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  text-align: center;
  display: none;
  max-width: 90%;
}

.gdpr-popup button {
  margin: 10px 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.gdpr-popup button:hover { opacity: 0.9; }
.gdpr-popup button.accept { background-color: #1E90FF; color: #fff; }
.gdpr-popup button.decline { background-color: #ccc; color: #000; }