/* === WEB FONTS === */
@font-face {
  font-family: 'TCFont';
  src: url('TCM_____.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'TCFont';
  src: url('TCB_____.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'TCFont';
  src: url('TCBI____.TTF') format('truetype');
  font-weight: 700;
  font-style: italic;
}

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #313985;
  --cyan: #29B5D6;
  --light-bg: #E8F6F8;
  --white: #ffffff;
  --dark-text: #222222;
  --gray-text: #555555;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === BUTTON === */
.btn {
  display: inline-block;
  padding: 18px 40px;
  font-size: 24px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
}

/* === HEADER === */
.header {
  background: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 10px 18px;
  font-size: clamp(14px, 2.4vw, 29px);
  font-family: 'TCFont', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
  background: rgba(0, 0, 0, 0.3);
}

.hero h1 {
  color: var(--white);
  font-size: 62px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.hero p {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 24px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* === SECTION HEADER === */
.section-header {
  position: relative;
  margin-bottom: 24px;
  background: var(--navy);
  border-left: 5px solid var(--cyan);
  border-bottom: 6px solid var(--cyan);
  padding: 8px 28px;
}

.section-header h2 {
  color: var(--white);
  font-family: 'TCFont', 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1.5px;
  margin: 0;
}

/* === ABOUT === */
.about {
  padding: 36px 0;
  background: var(--light-bg);
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

.about-text {
  flex: 2;
}

.about-text p {
  color: #333333;
  margin-bottom: 16px;
  font-size: 22px;
}

.license-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 8px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-height: 418px;
  border-radius: 8px;
}

/* === SERVICES === */
.services {
  padding: 36px 0;
  background: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-left: 20px;
}

.service-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.service-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
}

/* === SERVICE AREAS === */
.service-areas {
  padding: 36px 0;
  background: var(--white);
}

.areas-content {
  display: flex;
  gap: 40px;
  align-items: center;
  padding-left: 20px;
}

.areas-map {
  flex: 1;
  text-align: center;
}

.areas-map img {
  max-height: 360px;
}

.areas-list {
  flex: 2;
}

.areas-list > p {
  font-size: 22px;
  color: #333333;
  margin-bottom: 16px;
}

.areas-columns {
  display: flex;
  gap: 40px;
  margin-bottom: 16px;
}

.areas-columns ul {
  list-style: none;
}

.areas-columns li {
  padding: 6px 0;
  font-size: 22px;
  color: #222222;
  position: relative;
  padding-left: 18px;
}

.areas-columns li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
}

.areas-note {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
}

/* === FAQ === */
.faq {
  padding: 36px 0;
  background: var(--light-bg);
}

.faq-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-left: 20px;
}

.faq-list {
  flex: 1;
  max-width: 800px;
}

.faq-item {
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-toggle {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 20px 16px;
  font-size: 20px;
  color: #333333;
  line-height: 1.6;
}

/* === FAQ CHATBOT SIDEBAR === */
.faq-chatbot {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
  cursor: pointer;
  padding: 20px 10px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.faq-chatbot:hover {
  transform: scale(1.05);
}

.chatbot-img {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.chatbot-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* === CHATBOT POPUP === */
.chatbot-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.chatbot-overlay.open {
  display: block;
}

.chatbot-popup {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 380px;
  height: 520px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  z-index: 1000;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-popup.open {
  display: flex;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.chatbot-header-icon {
  width: 32px;
  height: 32px;
}

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.chatbot-close:hover {
  opacity: 0.7;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--light-bg);
  color: var(--dark-text);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--cyan);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.chat-quick-replies button {
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  background: var(--white);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.chat-quick-replies button:hover {
  background: var(--cyan);
  color: var(--white);
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.chatbot-input button {
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.chatbot-input button:hover {
  opacity: 0.85;
}

/* === CONTACT === */
.contact {
  padding: 36px 0;
  background: var(--white);
}

.contact-content {
  display: flex;
  gap: 40px;
  padding-left: 20px;
}

.contact-info {
  flex: 1;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.contact-item a {
  font-size: 26px;
  color: var(--cyan);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  font-size: 20px;
  color: #333333;
}

.contact-form {
  flex: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.contact-form .btn {
  width: 100%;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Upload Area */
.upload-area {
  margin-bottom: 12px;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
  transition: border-color 0.2s;
}

.upload-label:hover {
  border-color: #29B5D6;
  color: #29B5D6;
}

.upload-label small {
  color: #999;
}

.upload-icon {
  font-size: 1.2rem;
}

.upload-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #eee;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.upload-status {
  font-size: 0.85rem;
  color: #29B5D6;
  margin-top: 4px;
}

/* === FOOTER WAVE === */
.footer-wave {
  width: 100%;
  line-height: 0;
}

.footer-wave img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: -2px;
}

/* === FOOTER === */
.footer {
  position: relative;
}

.footer-bg {
  background: var(--navy);
  padding: 30px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 24px;
  padding-bottom: 30px;
}

.footer-logo {
  flex: 1;
  min-width: 0;
}

.footer-logo img {
  width: 100%;
  max-width: 442px;
  height: auto;
  margin-bottom: 12px;
}

.footer-license {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 700;
}

.footer-van {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.footer-van img {
  width: 100%;
  max-width: 497px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0 10%;
}

.footer-bottom p {
  color: rgba(255,255,255,0.7);
  font-family: 'TCFont', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content,
  .areas-content,
  .contact-content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 32px;
  }

  .faq-layout {
    flex-direction: column;
    align-items: center;
  }

  .faq-chatbot {
    width: auto;
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .chatbot-img {
    width: 80px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav.open {
    display: flex;
  }

  .hero-img {
    height: 320px;
  }

  .hero {
    min-height: 320px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding-left: 4px;
  }

  .areas-columns {
    flex-direction: column;
    gap: 0;
  }

  .about-content,
  .areas-content,
  .contact-content {
    padding-left: 4px;
    padding-right: 4px;
  }

  .faq-layout {
    padding-left: 4px;
  }

  .footer-logo img {
    max-width: 240px;
  }

  .footer-van img {
    max-width: 260px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-header {
    margin-bottom: 8px;
    padding: 6px 14px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .chatbot-popup {
    width: calc(100% - 20px);
    height: calc(100% - 100px);
    bottom: 10px;
    right: 10px;
    border-radius: 10px;
  }
}
