:root {
  --primary: #1F3A5F;
  --primary-light: #2A4D7C;
  --secondary: #C9A227;
  --secondary-hover: #B5901F;
  --bg-light: #FAFAFA;
  --text-main: #333333;
  --text-muted: #666666;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --spacing-base: 8px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.2;
}

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

a:hover {
  color: var(--secondary);
}

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

/* Typography */
.text-center { text-align: center; }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--white);
}

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

.section-primary h2, .section-primary h3, .section-primary p {
  color: var(--white);
}

/* Header & Nav */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo:hover .logo-path-main {
  stroke: var(--secondary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-path-main {
  stroke: var(--primary);
  transition: var(--transition);
}

.logo-path-sub {
  stroke: var(--secondary);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.logo:hover .logo-main {
  color: var(--secondary);
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-cta {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 4px;
  border: 1px solid var(--primary);
}

.nav-cta:hover {
  background-color: var(--white);
  color: var(--primary) !important;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

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

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

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

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 48px;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.card-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* Article/Guide content */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.article-content h2 {
  margin: 48px 0 24px;
  font-size: 2rem;
}

.article-content h3 {
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
}

/* Estimator Widget */
.estimator-widget {
  background: var(--white);
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-select, .form-input {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.estimator-result {
  margin-top: 32px;
  padding: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
  display: none;
}

.estimator-result h3 {
  color: var(--secondary);
  margin-bottom: 16px;
}

.estimator-result .price {
  font-size: 3rem;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

/* Contact Info Box */
.contact-box {
  background: var(--white);
  padding: 64px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  margin-bottom: 32px;
}

.contact-icon {
  color: var(--secondary);
  margin-bottom: 16px;
}

.contact-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer .logo-main {
  color: var(--white);
}

.footer .logo-path-main {
  stroke: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-title {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 0.9rem;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .nav-links { display: none; }
  .section { padding: 48px 0; }
  .contact-box { padding: 32px; }
  .estimator-widget { padding: 24px; }
}