/* ===== R AND M EXTERIORS LLC — Master Stylesheet ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B3A5C;
  --navy-dark:  #122840;
  --sky:        #2980B9;
  --orange:     #E67E22;
  --orange-dk:  #CF6D17;
  --green:      #27AE60;
  --light-bg:   #F5F7FA;
  --white:      #FFFFFF;
  --dark:       #2C3E50;
  --muted:      #6C7A89;
  --border:     #DEE2E6;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --radius:     8px;
  --max-w:      1140px;
  --font:       'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.7; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* --- Header / Nav --- */
header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.top-bar {
  background: var(--navy-dark);
  color: #ccc;
  font-size: .85rem;
  padding: 6px 0;
  text-align: center;
}
.top-bar a { color: var(--orange); font-weight: 600; }
nav.container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.logo {
  font-size: 1.45rem; font-weight: 800; color: var(--white);
  letter-spacing: .5px; line-height: 1.2;
}
.logo span { color: var(--orange); }
nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li a {
  color: #dce6f0; font-weight: 600; font-size: .95rem;
  transition: color .2s;
}
nav ul li a:hover, nav ul li a.active { color: var(--orange); }

/* Hamburger (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: -40px; left: -5%; right: -5%;
  height: 80px;
  background: var(--white);
  border-radius: 50% 50% 0 0;
}
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; line-height: 1.25; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; color: #c9d6e3; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .4px;
  transition: background .25s, transform .2s;
  border: none; cursor: pointer;
}
.btn:hover { background: var(--orange-dk); transform: translateY(-2px); color: var(--white); }
.btn-outline {
  background: transparent; border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-sm { padding: 10px 24px; font-size: .95rem; }

/* --- Section Defaults --- */
section { padding: 70px 0; }
section.alt { background: var(--light-bg); }
.section-title {
  text-align: center; margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2rem; font-weight: 800; color: var(--navy);
  margin-bottom: 10px;
}
.section-title p {
  color: var(--muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto;
}
.section-title .accent-line {
  width: 60px; height: 4px; background: var(--orange);
  margin: 12px auto 0; border-radius: 2px;
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 36px;
  padding: 40px 20px; background: var(--light-bg);
}
.trust-item {
  text-align: center; font-size: .9rem; color: var(--navy);
  font-weight: 600;
}
.trust-item .icon { font-size: 2rem; margin-bottom: 6px; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.service-card .card-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.service-card h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
  margin-bottom: 10px;
}
.service-card p { color: var(--muted); font-size: .95rem; }

/* --- About / Two-Col --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 { font-size: 1.9rem; color: var(--navy); margin-bottom: 16px; font-weight: 800; }
.about-text p { margin-bottom: 14px; color: var(--muted); }
.about-image {
  background: linear-gradient(135deg, var(--navy), var(--sky));
  border-radius: var(--radius);
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3.5rem;
}
.cert-list { list-style: none; margin: 18px 0; }
.cert-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-weight: 600;
  color: var(--dark);
}
.cert-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.why-card {
  text-align: center;
  padding: 30px 20px;
}
.why-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .92rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #d35400 100%);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 12px; font-weight: 800; }
.cta-banner p { font-size: 1.05rem; margin-bottom: 24px; opacity: .92; }
.cta-banner .btn {
  background: var(--white); color: var(--orange);
  font-weight: 700;
}
.cta-banner .btn:hover { background: var(--navy); color: var(--white); }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 16px; }
.contact-info .info-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info .info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-info .info-text strong { display: block; color: var(--dark); }
.contact-info .info-text span, .contact-info .info-text a { color: var(--muted); font-size: .95rem; }
.contact-form label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: 6px; color: var(--dark);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  margin-bottom: 18px;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--sky);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
footer {
  background: var(--navy-dark);
  color: #9bb0c7;
  padding: 50px 0 24px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand .logo { margin-bottom: 12px; font-size: 1.25rem; }
.footer-brand p { color: #7f97ad; line-height: 1.6; }
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #9bb0c7; transition: color .2s; }
footer ul li a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  color: #6a8399;
  font-size: .85rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 20px 50px;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-header p { color: #b0c4d8; font-size: 1.05rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 20px;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  nav ul.open { display: flex; }
  nav.container { position: relative; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 50px 20px 60px; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-image { height: 220px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 20px; }
}
