/* BuildItBalance – Light, Fresh, Professional Palette */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --white: #FFFFFF;
  --light-blue: #E0F2FE;
  --sky-blue: #0EA5E9;
  --deep-blue: #0C4A6E;
  --light-green: #DCFCE7;
  --green: #22C55E;
  --dark-text: #0F172A;
  --gray: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--deep-blue);
}

/* === HEADING SIZES === */
h1 { font-size: 2.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--deep-blue);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

nav .logo img { height: 50px; }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav a { color: white; text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: color 0.3s ease; }
nav a:hover { color: var(--light-green); }

#view-switcher {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}
#view-switcher:hover { background: rgba(255,255,255,0.3); }

/* === HERO SECTION === */
.hero-video { position: relative; height: 100vh; overflow: hidden; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.overlay {
  position: absolute; inset: 0; background: rgba(12,74,110,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; text-align: center; cursor: pointer;
}
.overlay h1 { font-size: 3rem; text-shadow: 0 4px 20px rgba(0,0,0,0.6); }
.overlay p { font-size: 1.4rem; margin: 1rem 0; }

/* === GENERAL SECTIONS === */
.section { padding: 6rem 5%; text-align: center; }
.section h2 { margin-bottom: 2rem; opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.section h2.visible { opacity: 1; transform: translateY(0); }

/* === BREAK SECTIONS === */
.break { padding: 6rem 5%; background: var(--deep-blue); color: white; overflow: hidden; }
.break h2 { color: var(--light-green); }
.break-content {
  display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
  opacity: 0; transform: translateX(-100px); transition: all 1.2s ease;
}
.break-content.right { transform: translateX(100px); }
.break-content.visible { opacity: 1; transform: translateX(0); }
.break img { max-width: 400px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* === IMAGE CAROUSEL === */
.carousel {
  position: relative; max-width: 900px; margin: 3rem auto; overflow: hidden;
  border: 8px solid var(--light-green); border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.carousel-inner { display: flex; width: 100%; flex-wrap: nowrap; transition: transform 0.6s ease; }
.carousel-item { min-width: 100%; flex: 0 0 100%; }
.carousel-item img { width: 100%; height: auto; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(12,74,110,0.7); color: white; border: none;
  width: 60px; height: 60px; font-size: 2rem; cursor: pointer;
  border-radius: 50%; transition: all 0.3s ease;
}
.carousel-btn:hover { background: var(--green); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* === FOOTER === */
footer {
  background: #000000; color: white; padding: 3rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 2rem; font-size: 1rem;
}
footer a { color: var(--light-green); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .logo img { height: 70px; }

/* === CONTACT FORM STYLING === */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--light-blue);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--deep-blue);
  transition: transform 0.4s ease, color 0.4s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
}

button[type="submit"] {
  background: var(--deep-blue);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

button[type="submit"]:hover {
  background: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(34,197,94,0.3);
}

button[type="submit"]:disabled {
  background: var(--gray);
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  text-align: center;
  min-height: 50px;
}

.form-status strong {
  color: var(--green);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .overlay h1 { font-size: 2.2rem; }
  .overlay p { font-size: 1.2rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .break-content { flex-direction: column; text-align: center; }
  .section, .break { padding: 4rem 5%; }
  .contact-form { padding: 1.5rem; }
}

/* === VIEW TOGGLE === */
.view-pc { aspect-ratio: 16/9; }
.view-mobile {
  aspect-ratio: 9/16;
  max-width: 420px;
  margin: 0 auto;
  border: 8px solid #333;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.document-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.document-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(34,197,94,0.2); /* Green glow */
}

.document-card img {
  transition: transform 0.5s ease;
}

.document-card:hover img {
  transform: rotate(10deg) scale(1.1); /* Subtle tool "tip" animation */
}
/* === MOBILE TEXT WRAPPING FIXES === */
/* Force long words/URLs/emails/phone numbers to break */
p, li, h1, h2, h3, h4, label, .form-status {
  word-wrap: break-word;        /* Older browsers */
  overflow-wrap: break-word;    /* Modern standard */
  hyphens: auto;                /* Optional: adds hyphens where appropriate */
}

/* Ensure lists and grid items don't overflow */
ul, ol {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

/* Columns on mobile: stack instead of side-by-side if too narrow */
@media (max-width: 768px) {
  ul[style*="columns"] {
    columns: 1 !important; /* Forces single column on mobile for area list */
  }

  /* Services section text – better spacing */
  .break-content div {
    text-align: center;
  }

  .break-content ul {
    text-align: left;
    max-width: 90%;
    margin: 1rem auto;
  }

  /* Form inputs/labels full width and wrap */
  .form-group label {
    text-align: left;
    display: block;
    width: 100%;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
  }

  /* Hero text safety */
  .overlay h1,
  .overlay p {
    padding: 0 1rem;
    word-wrap: break-word;
  }

  /* Hero on very small screens */
  h1 { font-size: 2.4rem !important; }
  h2 { font-size: 1.8rem !important; }
}

/* Extra safety for any unbreakable content */
* {
  word-break: normal; /* Default */
}

.long-text {
  word-break: break-all; /* Only use on specific elements if needed */
}