body {
    font-family: Arial, sans-serif;
    background-color: #fdf9f2; /* Cream color */
    margin: 0;
    padding: 0;
    padding-top: 120px;
}

/* Navbar */
header {
    position: fixed;        /* Makes it stick to the top */
    top: 0;                 /* Position at the very top */
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9); /* 80% opaque black */
    backdrop-filter: blur(5px);
    padding: 10px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center; /* Align logo and text horizontally */
}

.logo {
    width: 60px; /* Resize logo */
    height: auto;
    margin-right: 10px; /* Space between logo and text */
}

.logo-container h2 {
    margin: 0;
    font-size: 30px;
    font-family: Verdana, Geneva, sans-serif;
    padding: 10px 30px;
    color: rgb(255, 255, 255);
}

nav a {
    margin: 0 10px;
    padding-right: 40px;
    font-size: 15px;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

/* old hero with full screen
.hero {
    position: relative;
    text-align: center;
}

.hero video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
}

*/

.hero {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    padding: 50px 0;
    position: relative;
}

/* Video container */
.hero-video-container {
    position: relative;
    width: 90%;          /* Video + text combined area */
}

/* Video styling */
.hero-video {
    width: 75%;          /* Only part of the container */
    border-radius: 20px; /* Curved corners */
    display: block;
}

/* Make hero headline pop on top of imagery */
.hero-title{
  color: #fff;
  text-shadow: 0 10px 28px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.35);
  line-height: 1.1;
  margin: .5rem 0 0 0;
  font-weight: 800;
  font-size: clamp(1.4rem, 6vw, 3rem);
}

/* If the title is absolutely positioned over an image/video,
   this ensures it stays inside on phones by unstacking. */
@media (max-width: 900px){
  .hero-title{ position: static; }
}

/* Overlapping text */
.hero-text {
    position: absolute;
    top: 50%;            /* Vertically center */
    left: 55%;           /* Moves text to half-overlap */
    transform: translateY(-50%);
    font-size: 40px;
    line-height: 1.4;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* Make text visible on video */
    width: 50%;          /* Adjust text width */
}

.quote-section {
    text-align: center;
    padding: 50px 20px; /* space around the quote */
    background-color: rgba(0, 0, 0, 0.9);
}

.quote-section p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: white;
    max-width: 800px;      /* keeps it from stretching too wide */
    margin: 0 auto;        /* centers the text block */
}


/* Customers */
.customers {
    padding: 50px;
    text-align: center;
}
.customers .logos img {
    width: 150px;
    margin: 20px;
}



/* Services Section */
.services {
  max-width: 1100px;
  margin: 100px auto 50px auto;
  padding: 0 20px;
}


.services h1 {
  text-align: center;
  font-family: 'Times New Roman', serif;
  margin-bottom: 40px;
  font-size: 3rem;
  color: #222;
}

/* Service Cards */
.service-item {
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  margin-bottom: 30px;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Service images */
.service-item img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 25px;
  flex-shrink: 0;
}

/* Info container */
.service-item .info h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
}

.service-item .info p {
  margin: 0;
  line-height: 1.6;
  color: #e0e0e0;
  font-size: 0.95rem;
}

/* Remove underline + retain hover behavior if clickable */
.service-item a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.service-item a:hover {
  color: #ffa94d; /* Optional accent color on hover */
}

.service-details > div {
  scroll-margin-top: 150px; /* Adjust based on your navbar height */
}

.service-details {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.detail-card {
  background-color: #fffdf5;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #D97742;
}

.detail-card h2 {
  font-family: 'Times New Roman', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #222;
}

.detail-card p {
  font-family: Verdana, sans-serif;
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 10px;
}

.detail-card p strong {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}




/* About Us 
.about, .vision {
    max-width: 1000px;
    margin: 120px auto 50px auto;
    padding: 20px;
    background-color: #fffdf5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about h1, .vision h2 {
    text-align: center;
    font-family: 'Times New Roman', serif;
    color: #222;
    margin-bottom: 20px;
}

.about p, .vision p {
    font-family: Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}
*/

/* Hero Banner */
.about-hero {
  background: linear-gradient(to right, #ffedd5, #fdf9f2);
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.about-hero .hero-content h1 {
  font-size: 2.8rem;
  font-family: 'Times New Roman', serif;
  margin-bottom: 10px;
  color: #1e1e1e;
}

.about-hero .hero-content p {
  font-size: 1.1rem;
  color: #444;
  font-family: Verdana, sans-serif;
}

/* Cards */
.about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

/* Two-column on desktop, single-column on phones */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items:start;
}

/* Image behaves on mobile; never overwhelms the layout */
.about-image{
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.about-image img{
  width:100%;
  height:auto;
  display:block;
  /* cap height on small screens so it doesn’t dominate */
  max-height: 340px;
  object-fit: cover;
}

/* Text reads comfortably */
.about-text{
  padding: .5rem .75rem;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  line-height: 1.65;
}

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-text{ padding: .25rem 0; }
}


.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 1.8rem;
  font-family: 'Times New Roman', serif;
  color: #222;
  margin-bottom: 10px;
  border-bottom: 3px solid #d97742;
  padding-bottom: 8px;
  display: inline-block;
}

.about-content p {
  font-family: Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}


.about, .vision, .energy, .backend {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.about:hover, .vision:hover, .energy:hover, .backend:hover {
  transform: translateY(-4px);
}

.about h1, .vision h2, .energy h2, .backend h2 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.about h1::after, .vision h2::after, .energy h2::after, .backend h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #d97742;
  margin-top: 8px;
}

/* Text inside sections */
.about p, .vision p, .energy p, .backend p, .backend ul {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  font-family: Verdana, sans-serif;
}

/* List styling */
.backend ul {
  padding-left: 20px;
}

.backend li {
  margin-bottom: 10px;
  list-style-type: disc;
}


/* Contact Us */
.contact-section {
    margin-top: 120px;
    padding: 40px;
    background-color: #fdf9f2;
    font-family: 'Verdana', sans-serif;
}

.contact-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 400px;
}

.contact-form-box {
    flex: 1;
    padding: 40px;
}

.contact-form-box h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #222;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.contact-form button {
    padding: 12px 25px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background-color: #333;
}

.contact-info {
    margin-top: 30px;
    color: #444;
    font-size: 0.9rem;
}

.contact-info p {
    margin: 10px 0;
}

/* Contact message style */
.contact-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.contact-message h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 1rem;
}

.contact-message .lead {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.contact-message .sub {
  font-size: 1rem;
  color: #555;
}

.contact-message a {
  color: #e65100; /* accent color */
  text-decoration: none;
  font-weight: 600;
}

.contact-message a:hover {
  text-decoration: underline;
}

/* Keep brand title from breaking mid-word and scale nicely */
.brand-title{
  color:#fff;
  margin:0;
  line-height:1.05;
  /* scale between phone and desktop */
  font-size: clamp(1.25rem, 4.8vw, 2rem);
  /* DO NOT break words like “Management” */
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  max-width: 18ch;           /* keeps it to ~2 lines on phones */
}
.logo-container{ display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.logo-container img{ flex:0 0 auto; }



/* ========= Mobile/responsive fixes ========= */

/* Let long headings/words break gracefully */
h1, h2, h3, p, a, span, button { overflow-wrap: anywhere; }

/* --- NAV: collapse to hamburger under 900px --- */
header .nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 900px) {
  header { padding: 10px 16px; }
  header nav { 
    display: none; 
    position: absolute; 
    top: 100%; left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    padding: 10px 16px 16px;
  }
  header nav.open { display: block; }
  header nav a { 
    display: block; 
    padding: 10px 0; 
    font-size: 16px; 
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 0; padding-right: 0;
  }
  header .nav-toggle { display: block; }
}

/* --- HERO: prevent text spilling off video on phones --- */
.hero-video-container { position: relative; }
.hero-text {
  /* scale smartly across sizes */
  font-size: clamp(1.4rem, 5.5vw, 2.5rem);
  line-height: 1.15;
  width: min(46ch, 50%);
  left: 55%;
}
@media (max-width: 900px) {
  .hero-video { width: 100%; }
  .hero-text {
    position: static;          /* stop overlapping */
    color: #111;
    text-shadow: none;
    width: 100%;
    margin-top: 12px;
  }
}

/* --- SERVICE CARDS: stack on phones, safe fonts --- */
.service-item .info h2 { 
  font-size: clamp(1.1rem, 5vw, 1.6rem);
  margin: 0;
}
@media (max-width: 900px) {
  .service-item {
    flex-direction: column;
    align-items: stretch;
  }
  .service-item img {
    width: 100%;
    height: auto;
    margin: 0 0 14px 0;
    border-radius: 12px;
  }
}

/* --- CONTACT LAYOUT: ensure image is visible & stack on phones --- */
.contact-container { 
  display: flex; 
  flex-wrap: nowrap; 
}
.contact-image { 
  flex: 1 1 50%;
  min-width: 0;                /* allow flex shrink properly */
}
.contact-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-width: none;             /* remove 400px cap */
  object-fit: cover;
  display: block;
}
.contact-form-box {
  flex: 1 1 50%;
}
@media (max-width: 900px) {
  .contact-container { 
    flex-wrap: wrap;
  }
  .contact-image, .contact-form-box {
    flex: 1 1 100%;
  }
  .contact-form-box { padding: 24px; }
}

/* --- General typography safety on small screens --- */
.quote-section p { font-size: clamp(1rem, 3.5vw, 1.5rem); }
.about-hero .hero-content h1 { font-size: clamp(1.6rem, 5.5vw, 2.8rem); }
.services h1 { font-size: clamp(1.6rem, 6vw, 3rem); }
.detail-card h2 { font-size: clamp(1.25rem, 4.5vw, 1.8rem); }


/* ==== ABOUT PAGE – show full logo nicely on laptop/desktop ==== */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;   /* two columns on wide screens */
  gap: 1.25rem;
  align-items:center;               /* centers text with image height */
}

.about-image{
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  /* center image inside the box */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;                     /* white margin around the logo */
}

/* KEY: contain the whole logo, cap its height so it’s not gigantic */
.about-image img{
  width:100%;
  height:auto;
  max-height: 420px;                /* good for laptops */
  object-fit: contain;              /* show the full logo, no crop */
}

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }  /* stack on phones */
  .about-image img{ max-height: 300px; }
}

/* ==== HOME HERO – overlay headline on video again (desktop), 
       but stack below on phones so it doesn't collide ==== */
.hero { position: relative; }
.hero-video { width: 100%; border-radius: 24px; overflow: hidden; }

.hero-title{
  position: absolute;               /* overlay on larger screens */
  left: clamp(16px, 6vw, 64px);
  bottom: clamp(16px, 5vw, 56px);
  max-width: min(46ch, 80%);
  color: #fff;
  text-shadow: 0 18px 40px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.35);
  line-height: 1.1;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin: 0;
  z-index: 2;                       /* ensure above the video */
}

@media (max-width: 900px){
  .hero-title{
    position: static;               /* stack below on phones */
    color: #111;
    text-shadow: none;
    margin-top: 12px;
  }
}
