/* ========================================================================
   MANOW ENGINEERING — Website Stylesheet
   ------------------------------------------------------------------------
   HOW TO EDIT THIS FILE (for non-coders):
   1. The :root block below is the "color control panel". Change a color
      in ONE place and it updates the whole website.
   2. Every section of the file is labelled with a banner comment like
      "===== SECTION NAME =====" so you can jump straight to what you need.
   3. Search for "EDIT:" to find the exact lines you are most likely to
      change (phone, address, colors, spacing).
   ======================================================================== */


/* ===== COLOR PALETTE (EDIT HERE) ======================================
   --accent  = buttons, link hover, highlight bar under section titles
   --accent-hover = button hover / darker shade of accent
   --primary = dark navy used for headings & footer
   --secondary = near-black used for top bar & footer background
   --text-dark / --text-mid / --text-light = body text shades
   ====================================================================== */
:root {
  --primary:        #1B3A5C;   /* dark navy — headings, footer */
  --secondary:      #2C2C2C;   /* near-black — top bar & footer bg */
  --accent:         #E66A19;   /* main brand orange — buttons, highlights */
  --accent-hover:   #C95612;   /* darker orange — button hover state */
  --accent-light:   #FDEEE0;   /* pale orange tint — icon backgrounds */
  --bg-light:       #FAFAFA;   /* page section background */
  --bg-grey:        #F5F5F5;   /* card / placeholder background */
  --text-dark:      #2C2C2C;   /* main body text */
  --text-mid:       #777777;   /* secondary text */
  --text-light:     #AAAAAA;   /* tertiary text */
  --white:          #ffffff;
  --card-shadow:        0 4px 20px rgba(0,0,0,0.08);
  --card-shadow-hover:  0 10px 40px rgba(0,0,0,0.12);
}


/* ===== RESET & BASE ================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* layout container — keeps content centered with side padding on mobile */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* vertical spacing for every page section */
section { padding: 80px 0; }

/* shared heading styles */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.3; color: var(--primary); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.3rem; }

/* reusable section header — every page uses these two classes */
.section-title    { text-align: center; margin-bottom: 15px; }
.section-subtitle {
  text-align: center; color: var(--text-mid); font-size: 1.1rem;
  margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto;
}


/* ===== BUTTONS =======================================================
   .btn-primary = solid orange button (used in hero & CTAs)
   .btn-outline = white ghost button (used in hero over dark image)
   .btn-outline-dark = orange-bordered button (used on white background)
   ===================================================================== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 4px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all 0.3s ease; border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-dark { background: transparent; border-color: var(--accent); color: var(--accent-hover); }
.btn-outline-dark:hover { background: var(--accent); color: #fff; }


/* ===== TOP BAR (phone + email strip above header) ==================== */
.top-bar { background: var(--secondary); color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--accent); }
.top-bar i { margin-right: 5px; }
.top-bar .social-links a { margin-left: 15px; font-size: 0.9rem; }


/* ===== HEADER / NAVIGATION ===========================================
   The brand text now reads "MANOW ENGINEERING" (full name).
   Logo image lives in /images/logo.jpg
   ===================================================================== */
.header { position: sticky; top: 0; z-index: 1000; background: #fff; transition: all 0.3s ease; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }

/* logo block — image on the left, company name on the right */
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 60px; height: 60px; object-fit: contain; }
.logo-text { line-height: 1.1; }
.logo-text h2 {
  font-size: 1.5rem; color: var(--accent);   /* MANOW ENGINEERING in brand orange */
  letter-spacing: 1px; margin: 0;
}
.logo-text small {
  font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-mid); display: block; margin-top: 3px;
}

/* main navigation links */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 500; font-size: 0.95rem; color: var(--primary);
  position: relative; padding: 5px 0;
}
/* animated underline that slides in on hover/active */
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: all 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-hover); }

/* hamburger toggle (mobile only) */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.mobile-toggle span { width: 25px; height: 3px; border-radius: 3px; background: var(--primary); transition: all 0.3s ease; }


/* ===== HERO (home page main banner) ================================== */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(27,58,92,0.85), rgba(27,58,92,0.85)); }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px; border: 1px solid var(--accent); color: var(--accent);
}
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; line-height: 1.2; color: #fff; }
.hero h1 span { color: var(--accent); }          /* highlighted word */
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; max-width: 550px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat .number { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 0.85rem; opacity: 0.75; }


/* ===== PAGE BANNER (inner pages) ===================================== */
.page-banner { position: relative; padding: 120px 0 80px; color: #fff; text-align: center; }
.page-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.page-banner-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(27,58,92,0.88), rgba(27,58,92,0.88)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: 2.8rem; color: #fff; margin-bottom: 10px; }
.page-banner p { font-size: 1.1rem; opacity: 0.85; }
.breadcrumb { margin-top: 15px; font-size: 0.9rem; opacity: 0.8; }
.breadcrumb a { color: var(--accent); }


/* ===== SERVICE CARDS (home + reusable) =============================== */
.services-preview { background: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card {
  padding: 40px 30px; border-radius: 8px; background: #fff;
  box-shadow: var(--card-shadow); transition: all 0.3s ease; border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-bottom-color: var(--accent); }
.service-icon {
  width: 60px; height: 60px; border-radius: 12px; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin-bottom: 20px; color: var(--accent); transition: all 0.3s ease;
}
.service-card:hover .service-icon { background: var(--accent); color: #fff; }
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 15px; color: var(--text-mid); }
.service-card a { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.service-card a:hover { color: var(--accent); }


/* ===== ABOUT PREVIEW (home) ========================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: 8px; overflow: hidden; }
.about-image img { width: 100%; height: 400px; object-fit: cover; }
.about-experience {
  position: absolute; bottom: 20px; left: 20px; background: var(--accent);
  color: #fff; padding: 15px 25px; border-radius: 6px; text-align: center;
}
.about-experience .num { font-size: 2rem; font-weight: 800; display: block; line-height: 1; }
.about-experience .txt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.about-content h2 { margin-bottom: 20px; }
.about-content h2 span { color: var(--accent); }
.about-content p { margin-bottom: 15px; color: var(--text-mid); }
.about-features li { padding: 6px 0; display: flex; align-items: center; gap: 10px; color: var(--text-dark); }
.about-features li::before { content: '✓'; color: var(--accent); font-weight: 800; }


/* ===== CALL-TO-ACTION BAND ===========================================
   Full-width orange-tinged band with a button. Reused on every page.
   ===================================================================== */
.cta-section {
  text-align: center; color: #fff;
  background: linear-gradient(rgba(27,58,92,0.92), rgba(27,58,92,0.92)),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920') center/cover fixed;
}
.cta-section h2 { color: #fff; margin-bottom: 15px; }
.cta-section p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }


/* ===== FOOTER ======================================================= */
.footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3, .footer-col h4 { color: #fff; margin-bottom: 15px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-col h4 { font-size: 1rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; padding: 6px 0; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }


/* ===== SCROLL REVEAL ANIMATION ======================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ===== ABOUT PAGE — mission/vision/values/team ======================= */
.about-story { background: #fff; }
.about-story .about-grid { margin-bottom: 60px; }
.mission-vision { background: var(--bg-light); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card { padding: 40px; border-radius: 8px; background: #fff; box-shadow: var(--card-shadow); text-align: center; }
.mv-card .mv-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; color: var(--accent); }
.mv-card h3 { margin-bottom: 15px; }
.mv-card p { color: var(--text-mid); }
.values-section { background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.value-card { padding: 30px; border-radius: 8px; background: var(--bg-light); text-align: center; transition: all 0.3s ease; }
.value-card:hover { background: var(--accent); color: #fff; transform: translateY(-5px); }
.value-card:hover h3, .value-card:hover p { color: #fff; }
.value-card .value-icon { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.value-card:hover .value-icon { color: #fff; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { font-size: 0.9rem; color: var(--text-mid); }
.team-section { background: var(--bg-light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.team-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); transition: all 0.3s ease; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.team-photo { width: 100%; height: 260px; background: var(--bg-grey); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #ccc; }
.team-info { padding: 20px; text-align: center; }
.team-info h4 { margin-bottom: 5px; }
.team-info span { font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }


/* ===== SERVICES PAGE ================================================ */
.services-main { background: #fff; }
.service-detail { padding: 40px 0; border-bottom: 1px solid #eee; }
.service-detail:last-child { border-bottom: none; }
.service-detail-grid { display: grid; grid-template-columns: 80px 1fr; gap: 30px; align-items: flex-start; }
.service-number {
  width: 60px; height: 60px; border-radius: 12px; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; flex-shrink: 0;
}
.service-detail h3 { color: var(--primary); margin-bottom: 10px; }
.service-detail p { color: var(--text-mid); margin-bottom: 10px; }
.service-detail ul { margin-top: 10px; }
.service-detail ul li { padding: 4px 0; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.service-detail ul li::before { content: '▸'; color: var(--accent); }


/* ===== PROJECTS PAGE (filterable grid) =============================== */
.projects-section { background: var(--bg-light); }
.project-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 2px solid var(--accent);
  background: transparent; color: var(--primary); font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; font-size: 0.9rem;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.project-card { border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); background: #fff; transition: all 0.3s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.project-image { width: 100%; height: 240px; background: var(--bg-grey); overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-info { padding: 25px; }
.project-info .project-category { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.project-info h3 { margin: 8px 0 10px; font-size: 1.2rem; }
.project-info p { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 15px; }
.project-meta { display: flex; gap: 15px; font-size: 0.8rem; color: var(--text-light); padding-top: 15px; border-top: 1px solid #eee; }
.project-meta span { display: flex; align-items: center; gap: 5px; }


/* ===== CONTACT PAGE ================================================== */
.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-card { padding: 25px; border-radius: 8px; background: var(--bg-light); display: flex; gap: 20px; align-items: flex-start; }
.contact-card .contact-icon { width: 50px; height: 50px; border-radius: 10px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.contact-card h4 { margin-bottom: 5px; }
.contact-card p, .contact-card a { font-size: 0.9rem; color: var(--text-mid); }
.contact-form { padding: 40px; border-radius: 8px; background: var(--bg-light); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 15px; border: 2px solid #e0e0e0; border-radius: 6px;
  font-size: 0.95rem; font-family: inherit; transition: all 0.3s ease; background: #fff; color: var(--text-dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-section { padding: 0 0 80px; }
.map-container { border-radius: 8px; overflow: hidden; height: 400px; background: var(--bg-grey); }


/* ===== RESPONSIVE (mobile breakpoints) ===============================
   Edit the pixel values below to change when the layout switches
   to single-column / when the hamburger menu appears.
   ===================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .mv-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  h1 { font-size: 2rem; } h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 20px; }
  .page-banner { padding: 100px 0 60px; }
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 80px 30px 30px; transition: all 0.3s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  }
  .nav-links.active { right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .contact-form { padding: 25px; }
}
