/* ============================================
   Ashcroft Homes — Custom Site Stylesheet
   Mobile-first. Purple brand. Architectural feel.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7a00df;
  --purple-dark: #5c00a8;
  --purple-light: #9b3def;
  --purple-glow: rgba(122, 0, 223, 0.12);
  --accent: #007cba;
  --dark: #1a1a2e;
  --text: #2d2d3d;
  --text-light: #6b6b7b;
  --light: #f8f6fb;
  --white: #ffffff;
  --border: #e8e4ed;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.14);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dark); }

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.65rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 36px; width: auto; }

/* Desktop nav — hidden on mobile */
.nav-links {
  display: none;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  background: var(--purple-glow);
}

.nav-links .nav-cta {
  background: var(--purple);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--purple-dark);
  color: var(--white);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--light);
}

/* Mobile burger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--purple); }

.mobile-nav .mobile-sub {
  padding-left: 16px;
}

.mobile-nav .mobile-sub a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
}

.mobile-nav .mobile-cta {
  display: block;
  margin-top: 20px;
  padding: 16px;
  background: var(--purple);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: none;
}

.mobile-nav .mobile-cta:hover {
  background: var(--purple-dark);
  color: var(--white);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 61px;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 50%;
  min-height: 45vh;
  min-height: 45svh;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.5), transparent);
  pointer-events: none;
}

.hero-content {
  padding: 32px 20px 40px;
  background: var(--white);
}

.hero-content .hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 1.85rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Page Heroes (inner pages) --- */
.page-hero {
  position: relative;
  padding-top: 61px;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.75) 0%, rgba(26, 26, 46, 0.3) 50%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-hero-content .hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.page-hero-content h1 {
  color: var(--white);
  font-size: 2rem;
  max-width: 600px;
}

.page-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 500px;
  margin-top: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  min-height: 48px;
  min-width: 44px;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(122, 0, 223, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn-secondary:hover {
  background: var(--purple-glow);
  color: var(--purple-dark);
}

.btn-white {
  background: var(--white);
  color: var(--purple);
}

.btn-white:hover {
  background: var(--light);
  color: var(--purple-dark);
  transform: translateY(-1px);
}

.btn-phone {
  background: var(--purple);
  color: var(--white);
  font-size: 1.05rem;
}

.btn-phone:hover {
  background: var(--purple-dark);
  color: var(--white);
}

/* --- Sections --- */
.section {
  padding: 60px 0;
}

.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255, 255, 255, 0.8); }

.section-header {
  margin-bottom: 40px;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.section--dark .section-tag { color: var(--purple-light); }

.section-header h2 {
  font-size: 1.65rem;
  max-width: 600px;
}

.section-header p {
  color: var(--text-light);
  max-width: 560px;
  margin-top: 12px;
}

.section--dark .section-header p { color: rgba(255, 255, 255, 0.7); }

/* --- Value Props Grid --- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.value-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-card .icon {
  width: 48px;
  height: 48px;
  background: var(--purple-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img { transform: scale(1.05); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, rgba(26, 26, 46, 0.2) 60%, transparent 100%);
}

.service-card-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 100%;
}

.service-card-content h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.service-card-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.service-card-content .service-link {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-content .service-link:hover { color: var(--purple-light); }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
  font-style: normal;
}

.testimonial-card .author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.testimonial-card .author span {
  font-weight: 400;
  color: var(--text-light);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 6px;
}

.section--dark .stat-number { color: var(--purple-light); }

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.section--dark .stat-label { color: rgba(255, 255, 255, 0.7); }

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-left: 60px;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.process-step h3 { margin-bottom: 6px; }
.process-step p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 0; }

/* --- CTA Band --- */
.cta-band {
  padding: 60px 0;
  background: var(--purple);
  text-align: center;
}

.cta-band h2 { color: var(--white); font-size: 1.65rem; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-band .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info h3 { margin-bottom: 20px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail .detail-icon {
  width: 40px;
  height: 40px;
  background: var(--purple-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail .detail-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-detail .detail-text span,
.contact-detail .detail-text a {
  font-size: 0.92rem;
  color: var(--text-light);
}

.form-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-card h3 { margin-bottom: 20px; }

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
  font-family: inherit;
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

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

/* --- Content Sections (service pages) --- */
.content-section { padding: 48px 0; }

.content-block { margin-bottom: 40px; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 { margin-bottom: 12px; }
.content-block h3 { margin-bottom: 8px; color: var(--purple); }
.content-block p { max-width: 680px; }

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0;
}

.content-image img {
  width: 100%;
  height: auto;
}

.feature-list {
  list-style: none;
  margin: 16px 0;
}

.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

/* --- Image + Text Blocks --- */
.split-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.split-block:last-child { margin-bottom: 0; }

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-logo { height: 32px; width: auto; margin-bottom: 16px; filter: brightness(10); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.footer-bottom a { display: inline; padding: 0; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   Tablet — 768px+
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .section { padding: 80px 0; }
  .container { padding: 0 32px; }

  .hero {
    flex-direction: row;
    min-height: 90vh;
  }

  .hero-image-wrap {
    flex: 1 1 55%;
    min-height: auto;
    order: 2;
  }

  .hero-content {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px;
    order: 1;
  }

  .hero-actions { flex-direction: row; }

  .page-hero { min-height: 50vh; }
  .page-hero-content { padding: 60px 32px; }
  .page-hero-content h1 { font-size: 2.6rem; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .split-block { grid-template-columns: 1fr 1fr; }
  .split-block.reverse .split-image { order: 2; }
  .split-block.reverse .split-text { order: 1; }
  .split-image img { height: 360px; }

  .cta-band .cta-actions { flex-direction: row; justify-content: center; }

  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================
   Desktop — 1024px+
   ============================================ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .nav-links { display: flex; }

  .header-inner { padding: 14px 32px; }
  .logo-link img { height: 40px; }

  .hero-content { padding: 60px 60px; }
  .hero-content h1 { font-size: 2.8rem; }

  .value-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

  .form-card { padding: 40px 36px; }

  .service-card { min-height: 340px; }
}

/* ============================================
   Large Desktop — 1280px+
   ============================================ */
@media (min-width: 1280px) {
  .container { padding: 0 40px; }
  .hero-content { padding: 80px 80px; }
  .hero-content h1 { font-size: 3.2rem; }
  .section { padding: 100px 0; }
}

/* --- Print --- */
@media print {
  .site-header, .nav-toggle, .mobile-nav, .cta-band { display: none; }
  body { font-size: 12pt; color: #000; }
}
