/* Sundeep Construction Co Inc - Stylesheet */

:root {
  --navy: #0f2346;
  --navy-dark: #0a1830;
  --navy-light: #1a3463;
  --beige: #e8dcc4;
  --beige-light: #f5efe1;
  --concrete: #c9c5be;
  --gray: #5a5f66;
  --gray-light: #f4f5f7;
  --gray-border: #e2e4e8;
  --white: #ffffff;
  --text: #1f2733;
  --shadow: 0 2px 12px rgba(15, 35, 70, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 35, 70, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy-light); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
p  { margin-bottom: 1rem; color: var(--text); }

/* ======= Top Bar ======= */
.topbar {
  background: var(--navy-dark);
  color: var(--beige-light);
  font-size: 0.88rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--beige-light); }
.topbar a:hover { color: var(--white); }
.topbar-info span { margin-right: 18px; }

/* ======= Header / Nav ======= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 4px;
  font-size: 1.2rem;
  letter-spacing: -1px;
}
.logo small { display: block; font-size: 0.7rem; color: var(--gray); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.main-nav .btn-nav {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 4px;
  border: none;
}
.main-nav .btn-nav:hover { background: var(--navy-light); border-bottom-color: transparent; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: 0.3s;
}

/* ======= Buttons ======= */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ======= Hero ======= */
.hero {
  position: relative;
  background: linear-gradient(rgba(10, 24, 48, 0.72), rgba(10, 24, 48, 0.78)),
              url('../images/hero-stucco.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 90px 0 100px;
}
.hero h1 { color: var(--white); }
.hero p.lead {
  font-size: 1.1rem;
  max-width: 640px;
  color: var(--beige-light);
  margin-bottom: 1.8rem;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page header (smaller hero for inner pages) */
.page-header {
  background: linear-gradient(rgba(10, 24, 48, 0.78), rgba(10, 24, 48, 0.82)),
              url('../images/facade-work.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-header p { color: var(--beige-light); margin: 0; }

/* ======= Sections ======= */
.section { padding: 70px 0; }
.section-alt { background: var(--gray-light); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; max-width: 680px; margin: 0 auto 40px; color: var(--gray); }

/* ======= Services Grid ======= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--beige);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 700;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.95rem; color: var(--gray); margin: 0; }

/* ======= Why Choose Us ======= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.feature {
  text-align: center;
  padding: 20px 16px;
}
.feature-num {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-weight: 700;
  font-size: 1.2rem;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--gray); font-size: 0.95rem; }

/* ======= Two-column ======= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col img { border-radius: 6px; box-shadow: var(--shadow); }

/* ======= Service Area ======= */
.service-area {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.service-area h2 { color: var(--white); }
.service-area p { color: var(--beige-light); }
.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.area-list span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ======= Contact Block / CTA ======= */
.cta-block {
  background: var(--beige-light);
  border-left: 4px solid var(--navy);
  padding: 40px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.cta-block h2 { margin-bottom: 6px; }
.cta-block p { margin: 0; color: var(--gray); }

/* ======= Services Page (detailed) ======= */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid var(--gray-border);
}
.service-detail:nth-child(even) .service-detail-text { order: 2; }
.service-detail:last-child { border-bottom: none; }
.service-detail img { border-radius: 6px; box-shadow: var(--shadow); }
.service-detail h2 { color: var(--navy); }

/* ======= Contact Page ======= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info { background: var(--gray-light); padding: 30px; border-radius: 6px; }
.contact-info h3 { margin-top: 18px; margin-bottom: 4px; font-size: 1rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a { color: var(--text); font-size: 0.98rem; margin-bottom: 0; }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.93rem;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  font-size: 0.97rem;
  font-family: inherit;
  margin-bottom: 16px;
  background: var(--white);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--navy);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  padding: 14px;
  background: #e6f4ea;
  border-left: 3px solid #2e7d32;
  color: #1e5026;
  border-radius: 4px;
  margin-bottom: 16px;
}

.map-wrap {
  margin-top: 40px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ======= Footer ======= */
.site-footer {
  background: var(--navy-dark);
  color: var(--beige-light);
  padding: 50px 0 20px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-footer a { color: var(--beige-light); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 239, 225, 0.7);
}

/* ======= Responsive ======= */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    align-items: stretch;
  }
  .main-nav ul li { border-bottom: 1px solid var(--gray-border); }
  .main-nav ul li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 0; }
  .main-nav .btn-nav { text-align: center; margin: 10px 0; }

  .two-col, .contact-grid, .cta-block, .service-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-detail:nth-child(even) .service-detail-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 60px 0 70px; }
  .section { padding: 50px 0; }
  .topbar-info span { display: block; margin-right: 0; }
  .topbar .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: 0.95rem; }
  .hero-buttons .btn { width: 100%; }
}
