/* RK Development Group — site styles */

:root {
  --bg: #f6f6f3;
  --bg-alt: #ffffff;
  --bg-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #555555;
  --text-soft: #777777;
  --accent: #2a2a2a;
  --border: #e5e3dc;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; }

p { margin-bottom: 1.25rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container, .container-narrow { padding: 0 1.25rem; }
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .logo img { height: 36px; }
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.nav-cta {
  background: var(--text);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-links a.nav-cta:hover { opacity: 0.85; color: #ffffff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
section.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #1a1a1a;
}

section.hero .hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

section.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

section.hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: #fff;
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 600px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  max-width: 900px;
}

.hero-proof-item {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

.hero-proof-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover { background: #000; color: var(--bg); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover { background: var(--text); color: var(--bg); }

.btn-light {
  background: #fff;
  color: var(--text);
}

.btn-light:hover { background: rgba(255,255,255,0.9); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Sections */
.section-header {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Starting points grid (homepage) */
.starting-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.starting-point {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.starting-point:last-child { border-right: none; }

@media (max-width: 1024px) {
  .starting-point:nth-child(2) { border-right: none; }
}

@media (max-width: 600px) {
  .starting-point { border-right: none; }
}

.starting-point .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.starting-point h3 { font-size: 1.25rem; }

.starting-point p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.why-item h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}

.why-item p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Featured work (homepage) */
.featured {
  background: var(--bg-alt);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.featured-main {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: #2a2a2a;
}

.featured-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.featured-tile {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  background: #2a2a2a;
}

.featured-tile img, .featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-tile:hover img, .featured-main:hover img {
  transform: scale(1.04);
}

.featured-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}

.featured-caption h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
}

.featured-caption p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

/* Two-column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* Portfolio entries */
.portfolio-entry {
  margin-bottom: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-meta .award {
  color: #8a6d2a;
  font-weight: 600;
}

.portfolio-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.portfolio-images.two-up {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .portfolio-images.two-up { grid-template-columns: 1fr; }
}

.portfolio-images img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.portfolio-images.hero img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  object-position: center bottom;
}

@media (max-width: 768px) {
  .portfolio-images.hero img { max-height: 400px; }
}

.portfolio-specs {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Plan pages list */
.plan-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.plan-card:hover { border-color: var(--text-soft); }

.plan-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.plan-card .specs {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.plan-card .built-in {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 1rem;
}

.plan-section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan-section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.plan-section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Process steps */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.process-step:last-of-type {
  border-bottom: none;
}

.process-step-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.process-step .sub {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
  .process-step { grid-template-columns: 1fr; gap: 0.5rem; }
  .process-step-num { font-size: 2.25rem; }
}

/* Contact form */
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 2px;
}

@media (max-width: 600px) {
  .contact-form { padding: 1.75rem; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-field label .req { color: #b14a3a; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-info-block {
  margin-bottom: 2.5rem;
}

.contact-info-block .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.contact-info-block .value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.contact-info-block .value a:hover {
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-grid h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* CTA banner */
.cta-banner {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: 5rem 2rem;
}

.cta-banner h2 {
  color: var(--bg);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-light { display: inline-block; }

/* Sub-page hero */
.subhero {
  background: var(--bg-alt);
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.subhero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  max-width: 800px;
  margin-bottom: 1rem;
}

.subhero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 0;
}

/* Utility */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }

ul.clean {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

ul.clean li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  line-height: 1.6;
}

ul.clean li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-soft);
}

ul.clean.dark li { color: var(--text); }
ul.clean.dark li strong { color: var(--text); }

blockquote {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid var(--text);
  padding-left: 2rem;
  margin: 2.5rem 0;
  line-height: 1.4;
}
