/* ==========================================================================
   UTALE BUILDERS LTD — Global Stylesheet
   Palette: charcoal/steel grey + safety amber accent
   ========================================================================== */

:root {
  --charcoal: #1f2933;
  --steel: #323f4b;
  --steel-light: #52606d;
  --amber: #f5a623;
  --amber-dark: #d98c07;
  --off-white: #f7f9fb;
  --white: #ffffff;
  --grey-100: #eef1f4;
  --grey-300: #cbd2d9;
  --grey-600: #616e7c;
  --text: #1f2933;
  --shadow: 0 10px 25px rgba(31, 41, 51, 0.12);
  --shadow-lg: 0 20px 40px rgba(31, 41, 51, 0.18);
  --radius: 10px;
  --max-width: 1180px;
  --nav-height: 72px;
  --transition: 0.25s ease;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                        */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--amber-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--amber);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--grey-600);
  max-width: 640px;
  margin: 0 auto 2.75rem;
  font-size: 1.05rem;
}

.accent-bar {
  width: 68px;
  height: 4px;
  background: var(--amber);
  border-radius: 4px;
  margin: 0 auto 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Navigation                                                                  */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--charcoal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--amber);
  color: var(--charcoal);
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-name span {
  color: var(--amber);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--grey-300);
  font-weight: 500;
  font-size: 0.97rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover {
  color: var(--white);
  background: var(--steel);
}

.nav-menu a.active {
  color: var(--charcoal);
  background: var(--amber);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-image: linear-gradient(
      rgba(31, 41, 51, 0.72),
      rgba(31, 41, 51, 0.78)
    ),
    url("../images/hero.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--grey-100);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Page banner (service/contact pages)                                         */
/* -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  color: var(--white);
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(
      rgba(31, 41, 51, 0.72),
      rgba(31, 41, 51, 0.8)
    ),
    url("../images/hero.jpeg");
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.breadcrumb {
  color: var(--grey-300);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.breadcrumb a {
  color: var(--amber);
}

/* -------------------------------------------------------------------------- */
/* About                                                                       */
/* -------------------------------------------------------------------------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--steel-light);
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  color: var(--amber-dark);
}

.stat span {
  color: var(--grey-600);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* Services overview                                                           */
/* -------------------------------------------------------------------------- */
.services-overview {
  background: var(--off-white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.service-card-body p {
  color: var(--grey-600);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.service-link {
  font-weight: 600;
  color: var(--amber-dark);
}

.service-link::after {
  content: " \2192";
}

/* -------------------------------------------------------------------------- */
/* Projects gallery                                                            */
/* -------------------------------------------------------------------------- */
.projects {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-item:hover img {
  transform: scale(1.06);
}

.project-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(31, 41, 51, 0.85));
  color: var(--white);
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Service page content                                                        */
/* -------------------------------------------------------------------------- */
.service-detail {
  background: var(--white);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail-text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 1rem;
}

.service-detail-text p {
  color: var(--steel-light);
  margin-bottom: 1rem;
}

.service-detail-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.feature-list {
  list-style: none;
  margin: 1.25rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--steel);
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--amber);
  color: var(--charcoal);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* CTA banner                                                                  */
/* -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--steel);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--grey-300);
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

/* -------------------------------------------------------------------------- */
/* Contact page                                                                */
/* -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--steel-light);
  margin-bottom: 1.5rem;
}

.contact-highlight {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}

.contact-highlight span {
  display: block;
  color: var(--grey-300);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.contact-highlight a {
  color: var(--amber);
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--grey-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #d64545;
}

.field-error {
  display: none;
  color: #d64545;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-group.invalid .field-error {
  display: block;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.error {
  background: #fbe4e4;
  color: #b81c1c;
}

.form-status.success {
  background: #e3f6e9;
  color: #1a7f45;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: var(--grey-300);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col li {
  color: var(--grey-300);
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--grey-300);
}

.footer-col ul a:hover {
  color: var(--amber);
}

.footer-contact a {
  color: var(--amber);
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-contact .contact-name {
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-contact .contact-role {
  color: var(--grey-300);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--steel);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--grey-600);
}

.footer-bottom span {
  color: var(--amber);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 0.85rem 0.75rem;
    border-radius: 6px;
  }

  .about-grid,
  .service-detail-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}
