/*
Theme Name: RM Exterior Landing
Theme URI: https://randmexteriors.com
Author: R & M Exterior Renovations, LLP
Author URI: https://randmexteriors.com
Description: One-page landing theme for R & M Exterior Renovations, LLP with projects gallery, lead logging, tuned quote calculator, and safe quote-to-form handoff.
Version: 1.11
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rm-exterior-landing
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #09090b;
  color: #f9fafb;
}

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

a:hover {
  text-decoration: underline;
}

.rm-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.rm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 9, 11, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

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

.rm-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rm-logo-mark {
  height: 36px;
  width: 36px;
  border-radius: 0.75rem;
  border: 1px solid #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 700;
}

.rm-logo-text {
  line-height: 1.1;
}

.rm-logo-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.rm-logo-sub {
  font-size: 0.7rem;
  color: #9ca3af;
}

.rm-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.rm-nav a {
  position: relative;
  padding-bottom: 2px;
}

.rm-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #8b1116;
  transition: width 0.2s ease;
}

.rm-nav a:hover::after {
  width: 100%;
}

.rm-header-cta {
  display: flex;
  gap: 0.5rem;
}

.rm-btn {
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background-color: #09090b;
  color: #f9fafb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.rm-btn-primary {
  background-color: #f9fafb;
  color: #09090b;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
}

.rm-btn-primary:hover {
  background-color: #e5e7eb;
}

.rm-btn-outline:hover {
  background-color: #18181b;
}

.rm-hero {
  padding: 3rem 0 2rem;
}

.rm-hero-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .rm-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.rm-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #9ca3af;
}

.rm-hero-title {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 0.75rem;
}

.rm-accent-bar {
  width: 64px;
  height: 3px;
  border-radius: 999px;
  margin-top: 0.75rem;
  background: #8b1116;
}

.rm-hero-text {
  margin-top: 1rem;
  color: #e5e7eb;
  font-size: 1rem;
  max-width: 34rem;
}

.rm-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rm-hero-tagline {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: #d1d5db;
}

.rm-hero-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(248, 250, 252, 0.16);
  background: radial-gradient(circle at top left, rgba(148, 27, 39, 0.45), rgba(24, 24, 27, 0.95));
  overflow: hidden;
  min-height: 220px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.75);
}

.rm-hero-card-inner {
  position: relative;
  width: 100%;
  padding: 0.75rem;
  height: 100%;
}

.rm-hero-img-wrap {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  height: 100%;
  min-height: 220px;
}

.rm-hero-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45), transparent 50%);
}

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

.rm-hero-card-label {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  font-size: 0.75rem;
  color: #f9fafb;
}

.rm-hero-card-label span {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(9, 9, 11, 0.9);
  border: 1px solid rgba(248, 250, 252, 0.18);
}

.rm-pills {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .rm-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rm-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(24, 24, 27, 0.95);
  padding: 0.5rem 0.7rem;
  text-align: center;
  font-size: 0.7rem;
  color: #e5e7eb;
}

section.rm-section {
  padding: 2.75rem 0;
}

.rm-section-title {
  font-size: 1.55rem;
  font-weight: 600;
}

.rm-section-sub {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.rm-section-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rm-section-grid.rm-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rm-section-grid.rm-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rm-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(24, 24, 27, 0.96);
  padding: 1.2rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.rm-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.rm-card p {
  margin-top: 0.2rem;
  margin-bottom: 0;
  color: #cbd5f5;
}

.rm-facts-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.85rem;
}

.rm-fact-label {
  color: #9ca3af;
  font-size: 0.75rem;
}

.rm-fact-value {
  font-weight: 500;
}

/* Projects grid */
.rm-projects-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .rm-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rm-project-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(24, 24, 27, 0.95);
}

.rm-project-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.rm-project-body {
  padding: 0.75rem 0.85rem 0.85rem;
  font-size: 0.85rem;
}

.rm-project-title {
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.rm-project-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.rm-contact-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .rm-contact-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    align-items: flex-start;
  }
}

.rm-input,
.rm-select,
.rm-textarea {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background-color: rgba(15, 23, 42, 0.98);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: #f9fafb;
}

.rm-input::placeholder,
.rm-textarea::placeholder {
  color: #6b7280;
}

.rm-textarea {
  min-height: 120px;
  resize: vertical;
}

.rm-status {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
}

.rm-status-ok {
  background-color: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.rm-status-error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

/* Calculator styles */
.rm-calculator-wrapper {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .rm-calculator-wrapper {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

.rm-calculator-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(24, 24, 27, 0.98);
  padding: 1.1rem;
  font-size: 0.9rem;
}

.rm-calc-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .rm-calc-row {
    grid-template-columns: 1fr;
  }
}

.rm-calc-label {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.rm-calc-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

.rm-calc-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.rm-calc-switches label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rm-calc-type-toggle {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem;
  background-color: #020617;
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 0.75rem;
}

.rm-calc-type-toggle button {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.rm-calc-type-toggle button.rm-calc-type-active {
  background-color: #f9fafb;
  color: #020617;
}

.rm-calc-panel {
  margin-top: 0.5rem;
}

.rm-calc-panel[hidden] {
  display: none;
}

.rm-calc-output {
  margin-top: 1rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  background-color: rgba(15, 23, 42, 0.9);
}

.rm-calc-output-figure {
  font-size: 1.1rem;
  font-weight: 600;
}

.rm-calc-output-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

.rm-calc-send-block {
  margin-top: 0.5rem;
}

.rm-calc-side-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: rgba(15, 23, 42, 0.98);
  padding: 1.1rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

footer.rm-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.75rem 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.rm-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .rm-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* Hero video handling */
.rm-hero-img-wrap video.rm-hero-img { width: 100%; height: 100%; object-fit: cover; display:block; }
.rm-hero-img-wrap { background-color: rgba(2, 6, 23, 0.9); }
