/* ============================================================
   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 {
  -webkit-text-size-adjust: 100%;
  font-family: 'Carlito', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
  padding-top: 60px; /* account for fixed navbar */
  font-family: 'Carlito', sans-serif;
}

/* ----------------------------
   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;
  font-family: Carlito, sans-serif;
}

.intro-h1 { text-align: left; font-weight: 600; font-size: clamp(40px, 4.79vw, 4.79vw); }
.about-h2 { text-align: center; margin-top: 80px; font-weight: 400; font-size: clamp(30px, 4vw, 4.79vw); }
.team-h2  { text-align: end; margin-top: 10px; font-weight: 400; font-size: clamp(30px, 4vw, 4.79vw); }

p {
  margin: 0 0 1rem 0;
  line-height: 1.625;
  font-size: clamp(16px, 1.05vw, 20px);
  letter-spacing: 0.025em;
  font-family: Carlito, sans-serif;
}

.kelly-name { color:#f44393; font-weight:600; }
.steve-name { color:#00b8c9; font-weight:600; }

/* ----------------------------
   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 styles */
:focus {
  outline: 3px solid rgba(11,102,255,0.2);
  outline-offset: 2px;
}

/* Container utility */
.container { max-width: 100%; margin: 0 auto; padding: 0 1rem; }

/* Scale text up on medium+ screens */
@media (min-width: 768px) {
  html { font-size: 18px; }
}

/* ============================================================
   2. LAYOUT HELPERS & GRIDS
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100vh;
  width: 100%;
}

.grid-container {
  display: grid;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: auto;
  position: static;
  padding: 40px;
}

.grid-item { padding: 20px; text-align: center; }

@media (max-width: 768px) {
  .grid-container { grid-template-columns: 1fr; }
}

/* Services grid */
.grid-container3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
  justify-items: center;
  align-items: center;
  margin: 0 auto;
  padding: 80px;
  background-color: black;
}

@media (max-width: 768px) {
  .grid-container3 { grid-template-columns: 1fr; }
}

/* Scroll offset for anchored sections */
#section1 { scroll-margin-top: 60px; }
#section3 { scroll-margin-top: 100px; }
#section4 { scroll-margin-top: 90px; }
#section5 { scroll-margin-top: 20px; }
#section6 {
margin-top: 100px;         /* visual gap */
  scroll-margin-top: 100px;
}

/* ============================================================
   3. INTRO SECTION
   ============================================================ */
.intro-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 80px 10%;
  background-color: #fff;
  background-image: url('../images/introele.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 80px;
  background-attachment: fixed;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  box-sizing: border-box;
}

/* Content container */
.intro-content { max-width: 700px; color: #000; text-align: left; margin-left: 50px;}

/* Header flex: H1 + Logo */
.intro-header { display: flex; align-items: flex-end; gap: 20px; margin-top: 60px; margin-left: 20px; }
.intro-title { margin-left: -20px; }
.intro-h1 { font-size: 64px; line-height: 64px; letter-spacing: 1px; margin: 20px; }
.intro-logo img { width: clamp(320px, 50vw, 450px); position: relative; height: auto; min-width: 150px;}

/* Stepped-in text */
.intro-text-container { margin-left: 120px; margin-top: 20px; }
.intro-tagline, .intro-text { font-size: 15px; line-height: 26px; letter-spacing: 0.28px; }

/* Tablet+ adjustments */
@media screen and (min-width: 768px) {
  .intro-section { min-height: 70vh; padding-bottom: 40px; }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .intro-section {
    justify-content: center;
    padding: 40px 5%;
    background-image: none;
    background-attachment: scroll;
    min-height: auto;
  }

  .intro-content { margin-top: 0px; width: 90%; text-align: center; }
  .intro-header { flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
  .intro-title { margin-left: 0; }
  .intro-text-container { margin-left: 0; margin-top: 0px; }
  .intro-h1 { font-size: 2rem; }
  .intro-tagline { font-size: 1.2rem; }
  .intro-text { font-size: 0.95rem; }
  .intro-logo img { max-width: 3500px; }
}

/* ============================================================
   4. ABOUT SECTION
   ============================================================ */
.header-text {
  position: absolute;
  top: 20%;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: 3rem;
  color: white;
  mix-blend-mode: difference;
  text-align: left;
  overflow-wrap: break-word;
  width: 80%;
}

.about-section {
  position: relative;
  width: 100%;
  padding: 20px 0;
  background-color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  box-sizing: border-box;
}

/* Elephant Background */
.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: -300px;
  width: 70%;
  height: 100%;
  background-image: url('../images/Elephant Head - White.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right top;
  pointer-events: none;
  z-index: 0;
}

/* Paragraph Box */
.about-paragraph-box {
  padding: 20px;
  width: clamp(400px, 60%, 750px);
  color: #fff;
  line-height: 1.6;
  margin: 250px 0 150px 25px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .about-section { flex-direction: column; align-items: center; padding: 20px 0; }
  .about-section::before { display: none; }

  .about-text-container {
    width: 90%; max-width: 200px; margin: 0 auto; padding: 20px;
    display: flex; flex-direction: column; align-items: center; gap: 25px;
  }

  .header-text {
    top: 25%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; font-size: 3rem; max-width: 90%;
  }

  .about-paragraph-box { width: 90%; max-width: 600px; padding: 680px 0 0 0; margin: 0; }
}

/* ============================================================
   5. TEAM SECTION
   ============================================================ */
.team { padding: 80px; background-color: #000; color: white; }
.team-top-text { display: flex; align-items: flex-start; gap: 20px; }
.team-top-text1 { text-align: left; max-width: 800px; margin: 20px auto 50px; }
.team-top-text img { width: 30%; height: auto; }
.team-top-text h2 { font-size: 3rem; margin-bottom: 15px; transform: translateY(-30px); }
.team-top-text p { font-size: 1.1rem; line-height: 1.6; color: #ccc; margin: 0 0 0 0; }
.team-top-text1 p { max-width: 600px; line-height: 1.6; font-size: 1rem; margin: 0 0 0 0; }

.team-row { display: flex; align-items: flex-start; gap: 30px; }
.team-left img { width: clamp(400px, 100%, 750px); align-items: center; }
.team-right { flex: 0 0 80%; }
.team-right p { font-size: 1rem; line-height: 1.6; color: #ccc; margin: 0 0 0 0; }

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .team-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    align-items: center;          /* centers all items in the column */
  }

  .team-left {
    display: flex;                /* makes the container flex */
    justify-content: center;      /* centers the image horizontally */
    width: 100%;
  }

  .team-left img {
    width: 70%;
    max-width: 250px;
    height: auto;
    margin: 0 auto;               /* ensures image stays centered in case of fallback */
  }

  .team-top-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
  }

  .team-top-text img {
    width: 250px;
    height: auto;
  }

  .team-top-text h2 {
    text-align: center;
    width: 100%;
  }
}

/* ============================================================
   6. CONTACT SECTION
   ============================================================ */
.contact {
  min-height: 80vh;
  width: 100%;
  display: flex;
  justify-content: flex-end;       /* keeps text box on right side */
  align-items: center;             /* vertically center it (looks cleaner) */
  background-image: url('../images/1755009021382_powerltd_and_head.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  overflow: hidden;
}

.contacttext-container {
  
  padding: 20px;
  color: white;
  max-width: 400px;
  mix-blend-mode: difference;
  margin-right: 10%;                /* gives breathing space from screen edge */
  margin-left: 40px;               /* pushes text box slightly away from the image */
  text-align: right;               /* aligns text inside the box to the right */
}

@media screen and (max-width: 1024px) {
  .contact {
    min-height: 100vh;
    justify-content: center;       /* centers text box on mobile */
    align-items: flex-end;
    padding: 0px;
    background-size: contain;
    background-position: center center;
  }

  .contacttext-container {
    width: 100%;
    padding: 20px 20px;
    max-width: none;
    margin: 20px 0 0 0;            /* remove side margins for mobile */
    text-align: center;            /* center text for mobile readability */
  }
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
}
.btn:hover { background: #333; }

/* ============================================================
   8. FOOTER
   ============================================================ */
footer {
  background: #000;
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

footer .row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
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; }

/* Large screens */
@media screen and (min-width: 769px) {
  footer .row { flex-direction: row; justify-content: space-between; }
  footer .row .column:first-child { text-align: left; }
  footer .row .column:nth-child(2) { text-align: center; }
  footer .row .is-social { text-align: right; }
}

/* Social Icons */
.is-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 50px;
  gap: 50px;
}

.is-social img {
  width: 32px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.is-social a:hover img {
  transform: scale(1.1);
}

/* ============================================================
   9. 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; }