/*
Theme Name: Petra Homes Theme
Theme URI: https://www.petrahomes.com.au
Author: Antigravity AI
Author URI: https://www.petrahomes.com.au
Description: A luxury architectural WordPress theme for Petra Homes - Design | Build | Interiors.
Version: 1.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petra-homes
Tags: construction, builders, luxury-design, custom-header, custom-menu, featured-images, responsive-layout
*/

/* ==========================================================================
   PETRA HOMES DESIGN SYSTEM & COLOR PALETTE
   ========================================================================== */

:root {
  --primary-color: #966f1f;
  --primary-hover: #785817;
  --primary-light: rgba(150, 111, 31, 0.12);
  --dark-bg: #eee3d2;
  --dark-header: #faf6ee;
  --dark-subtle: #e4d5bd;
  --text-dark: #30291f;
  --text-muted: #665e52;
  --text-light: #756b5e;
  --bg-light: #fbf8f2;
  --bg-alt: #f3ecdf;
  --border-color: #ded2bf;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 35px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: all 0.3s ease;
}

.petra-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.13em;
}

.petra-icon-star {
  fill: currentColor;
  stroke-width: 1.4;
}

.btn .petra-icon {
  margin-right: 0.4em;
}

.link-arrow .petra-icon {
  margin-left: 0.3em;
  transition: transform 0.2s ease;
}

.link-arrow:hover .petra-icon {
  transform: translateX(3px);
}

.feature-item .icon .petra-icon {
  width: 1em;
  height: 1em;
}

.footer-accent-icon {
  color: #966f1f;
  margin-right: 8px;
}

.footer-widget a .petra-icon {
  width: 0.8em;
  height: 0.8em;
  margin-right: 5px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; }

p { margin-bottom: 1.25rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--primary-hover);
}

.boxed-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background-color: #ffffff;
  overflow: hidden;
}

.container {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

/* Section Title */
.section-title {
  position: relative;
  margin-bottom: 2.8rem;
  text-align: center;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--primary-color);
}

.section-title p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.35);
}

.btn-dark {
  background-color: #5b4630;
  color: #ffffff;
  border-color: #5b4630;
}

.btn-dark:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Gutenberg Button block styled to match the Petra Homes primary button. */
.wp-block-button.petra-primary-button {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.wp-block-button.petra-primary-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 2px solid #966f1f;
  border-radius: var(--radius-sm);
  background: #966f1f;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  transition: var(--transition);
}

.wp-block-button.petra-primary-button .wp-block-button__link:hover,
.wp-block-button.petra-primary-button .wp-block-button__link:focus {
  border-color: #f4e7d3;
  background: #f4e7d3;
  color: #74382d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(150, 111, 31, 0.25);
}

/* Automated service-page layouts */
.service-hero {
  background: linear-gradient(120deg, #f5efe3, #fbf9f5);
  border-bottom: 1px solid #e5dac6;
}

.service-hero-inner {
  max-width: 900px;
  padding: 82px 20px 78px;
}

.service-eyebrow {
  display: inline-block;
  color: #966f1f;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-hero h1 {
  max-width: 780px;
  margin: 10px 0 16px;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: 1.06;
}

.service-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.16rem;
  line-height: 1.7;
}

.service-page-content {
  padding: 78px 0;
  background: #fff;
}

.service-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
  padding-bottom: 70px;
  border-bottom: 1px solid #e9e2d8;
}

.service-overview h2,
.service-detail-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.service-overview p {
  max-width: 650px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  padding-top: 55px;
}

.service-detail-card {
  padding: 34px;
  border: 1px solid #e8dfd2;
  border-top: 4px solid #966f1f;
  border-radius: var(--radius-md);
  background: #fbf9f5;
}

.service-check-list,
.service-process-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-check-list li,
.service-process-list li {
  position: relative;
  padding: 13px 0 13px 27px;
  border-bottom: 1px solid #e8dfd2;
  color: var(--text-muted);
}

.service-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #966f1f;
  font-family: var(--font-heading);
  font-weight: 800;
}

.service-process-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-left: 0;
}

.service-process-list li > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 50%;
  background: #966f1f;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
}

.service-cta {
  padding: 72px 0;
}

@media (max-width: 700px) {
  .service-hero-inner { padding: 58px 20px; }
  .service-page-content { padding: 52px 0; }
  .service-overview,
  .service-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-overview { padding-bottom: 48px; }
  .service-detail-grid { padding-top: 40px; }
  .service-detail-card { padding: 25px 22px; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--dark-header);
  border-bottom: 3px solid var(--primary-color);
}

.top-bar {
  background: var(--dark-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  color: var(--text-light);
  font-size: 0.88rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.site-logo-img {
  max-height: 65px;
  width: auto;
  display: block;
}

.header-widgets {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* On wide screens the logo occupies the left page margin, while the contact
   details align with the same content edge as the main navigation. */
@media (min-width: 1400px) {
  .top-bar {
    min-height: 80px;
    display: flex;
    align-items: center;
  }

  .top-bar-inner {
    position: relative;
  }

  .site-logo {
    position: absolute;
    top: 50%;
    right: calc(100% + 20px);
    width: calc((100vw - 100%) / 2 - 20px);
    height: 80px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-logo-img {
    width: auto;
    height: 80px;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .header-widgets {
    width: 100%;
    justify-content: space-between;
  }
}

.header-widget-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.header-widget-item .icon {
  font-size: 1.4rem;
  color: var(--primary-color);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
}

.header-widget-item .icon svg,
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.social-icon .svg-fill {
  fill: currentColor;
  stroke: none;
}

.social-icon span {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
}

.header-widget-item .text h4 {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.header-widget-item .text span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Main Navigation */
.main-navigation-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-menu {
  display: flex;
  list-style: none;
}

.main-menu > li > a {
  display: block;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
  color: #ffffff;
  background-color: var(--primary-color);
}

/* Dropdown Menu */
.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  list-style: none;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.main-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-menu .sub-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f0f0;
}

.main-menu .sub-menu li a:hover {
  background: var(--primary-color);
  color: #ffffff;
  padding-left: 25px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--primary-color);
  border: none;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-slider {
  position: relative;
  background: linear-gradient(rgba(55,42,27,0.68), rgba(55,42,27,0.68)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  min-height: 550px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-content {
  max-width: 940px;
  padding: 70px 0;
}

.hero-tagline {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

.hero-title {
  max-width: 720px;
  font-size: 3.3rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-description {
  max-width: 820px;
  font-size: 1.2rem;
  color: #e2e2e2;
  margin-bottom: 35px;
}

.hero-buttons {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 15px;
  width: max-content;
}

.hero-buttons .btn {
  padding: 13px 22px;
  box-shadow: 0 5px 18px rgba(38, 28, 18, 0.28);
}

.hero-buttons .btn-primary {
  background: #966f1f;
  border-color: #966f1f;
  color: #fff8ee;
}

.hero-buttons .btn-dark {
  background: #f4e7d3;
  border-color: #f4e7d3;
  color: #74382d;
}

.hero-buttons .btn-outline {
  grid-column: 1;
  justify-self: stretch;
  background: #f4e7d3;
  border-color: transparent;
  color: #74382d;
}

.hero-buttons .btn-primary:hover {
  background: #f4e7d3;
  border-color: #f4e7d3;
  color: #74382d;
}

.hero-buttons .btn-dark:hover {
  background: #a94f3d;
  border-color: #a94f3d;
  color: #fff8ee;
}

.hero-buttons .btn-outline:hover {
  background: #a94f3d;
  border-color: transparent;
  color: #fff8ee;
}

/* ==========================================================================
   Features Stripe
   ========================================================================== */
.features-stripe {
  background: var(--bg-alt);
  padding: 35px 0;
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.feature-item .icon {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Contact-page icons are inline SVGs, so they never rely on an icon CDN. */
.contact-detail-icon {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: rgba(197, 155, 39, 0.12);
	color: #966f1f;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 45px;
}

.contact-detail-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-inline-icon,
.button-inline-icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.14em;
	margin-right: 0.35em;
}

.consultation-success {
  margin-top: 24px;
  padding: 15px 18px;
  border-left: 4px solid #966f1f;
  background: #f5ead5;
  color: #4c3a1e;
  font-weight: 600;
}

.consultation-errors {
  margin-top: 24px;
  padding: 15px 18px;
  border-left: 4px solid #a94f3d;
  background: #f9e9e5;
  color: #6f2d21;
}

.consultation-errors ul {
  margin: 7px 0 0 18px;
}

.field-error {
  margin: 6px 0 0;
  color: #a33d2f;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-control.has-error {
  border-color: #a33d2f;
  box-shadow: 0 0 0 2px rgba(163, 61, 47, 0.12);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-section {
  padding: 85px 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.service-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 25px;
}

.service-card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.link-arrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   Portfolio Showcase
   ========================================================================== */
.projects-section {
  padding: 85px 0;
  background: var(--bg-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}

.portfolio-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px;
  background: linear-gradient(to top, rgba(55,42,27,0.92), rgba(55,42,27,0));
  color: #ffffff;
}

.portfolio-category {
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.portfolio-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 4px 0 0;
}

/* ==========================================================================
   Calculator Teaser
   ========================================================================== */
.calculator-teaser {
  background: linear-gradient(135deg, #eee3d2 0%, #faf6ee 100%);
  color: var(--text-muted);
  padding: 75px 0;
  border-top: 4px solid var(--primary-color);
}

.calc-box {
  background: #ffffff;
  color: var(--text-dark);
  padding: 42px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.estimator-page-hero {
  padding: 48px 0;
  background: linear-gradient(120deg, #f5efe3, #fbf9f5);
  border-bottom: 1px solid #e5dac6;
}

.estimator-page-hero h1 {
  margin: 5px 0 7px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.estimator-page-hero p {
  max-width: 660px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.estimator-eyebrow {
  color: #966f1f;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.estimator-page-body {
  padding: 64px 0 80px;
  background: #faf9f7;
}

.estimator-shell {
  max-width: 920px;
  margin: 0 auto;
}

.estimator-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid #eee6d9;
}

.estimator-intro h2,
.estimator-intro p {
  margin: 0;
}

.estimator-intro p {
  margin-top: 4px;
  color: var(--text-muted);
}

.estimator-intro-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  color: #966f1f;
  background: #f5ead5;
}

.estimator-intro-icon svg,
.scope-card svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.estimator-step {
  margin-bottom: 30px;
}

.estimator-step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.estimator-step-title > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #966f1f;
  color: #fff;
  font-size: 0.75rem;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.scope-card {
  display: block;
  cursor: pointer;
}

.scope-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scope-card-inner {
  display: flex;
  min-height: 128px;
  padding: 20px 14px;
  border: 1px solid #ded8cf;
  border-radius: 8px;
  background: #fff;
  color: #5c5041;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.2s ease;
}

.scope-card-inner svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: #966f1f;
}

.scope-card-inner strong {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

.scope-card-inner small {
  margin-top: 2px;
  color: var(--text-muted);
}

.scope-card:hover .scope-card-inner {
  transform: translateY(-2px);
  border-color: #b99854;
  box-shadow: 0 7px 18px rgba(73, 51, 19, 0.09);
}

.scope-card input:checked + .scope-card-inner {
  border-color: #966f1f;
  background: #fbf4e7;
  box-shadow: 0 0 0 2px rgba(150, 111, 31, 0.13);
}

.scope-card input:focus-visible + .scope-card-inner {
  outline: 3px solid rgba(150, 111, 31, 0.3);
  outline-offset: 2px;
}

.size-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: center;
}

.size-control input[type="range"] {
  width: 100%;
  accent-color: #966f1f;
}

.size-output {
  padding: 9px 12px;
  border-radius: 6px;
  background: #f5ead5;
  text-align: center;
  color: #4c3a1e;
}

.calc-result-box {
  margin-top: 36px;
}

.quote-submit-wrap {
  margin-top: 15px;
}

@media (max-width: 650px) {
  .estimator-page-body { padding: 35px 0 55px; }
  .calc-box { padding: 24px 18px; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-card-inner { min-height: 105px; }
  .estimator-intro { align-items: flex-start; }
  .size-control { grid-template-columns: 1fr; }
  .size-output { width: 92px; }
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fcfcfc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.25);
}

.calc-result-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.calc-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   Testimonials & CTA
   ========================================================================== */
.testimonials-section {
  padding: 85px 0;
  background: #ffffff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.cta-banner {
  background: var(--primary-color);
  padding: 55px 0;
  text-align: center;
  color: #ffffff;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.cta-banner p {
  color: #f8f8f8;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 25px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: var(--text-muted);
  padding-top: 65px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-color);
}

.footer-widget h3 {
  color: var(--text-dark);
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li a {
  color: var(--text-light);
}

.footer-widget ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom-bar {
  background: var(--primary-color);
  color: #ffffff;
  padding: 20px 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-bar a {
  color: #ffffff;
}

.footer-bottom-bar a:hover {
  text-decoration: underline;
}

/* About Petra */
.about-hero {
  padding: 95px 0;
  background: linear-gradient(90deg, rgba(47, 41, 31, 0.92), rgba(47, 41, 31, 0.48)), url('images/projects/38-tesla-road.jpg') center/cover no-repeat;
  color: #ffffff;
}

.about-hero-inner { max-width: 820px; }
.about-eyebrow { display: inline-block; margin-bottom: 14px; color: #cfa34a; font-family: Arial, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.about-hero h1 { max-width: 760px; margin-bottom: 20px; color: #ffffff; font-family: Arial, sans-serif; font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1.05; }
.about-hero p { max-width: 670px; margin: 0; color: #f5f0e8; font-size: 1.2rem; }

.about-story, .about-showcase { padding: 90px 0; }
.about-story-grid, .about-showcase-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 65px; align-items: center; }
.about-story-image img { width: 100%; min-height: 480px; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.about-story-copy h2, .about-showcase-copy h2 { font-family: Arial, sans-serif; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; }

.about-values { padding: 85px 0; background: var(--bg-alt); }
.about-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-value-card { padding: 34px; background: #ffffff; border-top: 4px solid var(--primary-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.about-value-card span { color: var(--primary-color); font-size: .82rem; font-weight: 800; letter-spacing: 1px; }
.about-value-card h3 { margin-top: 16px; font-family: Arial, sans-serif; }
.about-value-card p { margin-bottom: 0; }

.about-showcase { background: #ffffff; }
.about-service-list { display: grid; gap: 12px; margin: 26px 0 32px; list-style: none; }
.about-service-list li { position: relative; padding-left: 25px; color: var(--text-dark); font-weight: 600; }
.about-service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); font-weight: 800; }
.about-showcase-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-showcase-images img { width: 100%; height: 390px; object-fit: cover; border-radius: var(--radius-md); }
.about-showcase-images img:last-child { margin-top: 45px; }

@media (max-width: 767px) {
  .about-hero { padding: 70px 0; }
  .about-story, .about-showcase, .about-values { padding: 65px 0; }
  .about-story-grid, .about-showcase-grid, .about-values-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-story-image img { min-height: 320px; }
  .about-showcase-images img { height: 280px; }
}

/* Mobile Breakpoints */
@media (max-width: 991px) {
  .top-bar-inner { justify-content: center; }
  .header-widgets { display: none; }
  .mobile-nav-toggle { display: block; margin: 15px 0; }
  .main-menu { display: none; flex-direction: column; width: 100%; background: #ffffff; }
  .main-menu.is-active { display: flex; }
  .main-menu > li > a { padding: 14px 20px; border-bottom: 1px solid #eee; }
  .main-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: #f9f9f9; }
  .hero-title { font-size: 2.3rem; }
  .hero-description { font-size: 1rem; }
  .hero-buttons { grid-template-columns: 1fr; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .hero-buttons .btn-outline { grid-column: 1; }
}
