/* Global foundation */
:root {
  --primary-color: #4a6da7;
  --secondary-color: #c89b7b;
  --light-bg: #f8f9fa;
  --dark-text: #333;
  --medium-text: #555;
  --light-text: #777;
  --white: #fff;
  --border-light: #e9e9e9;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --btn-height: 48px;
  --btn-padding-y: 12px;
  --btn-padding-x: 24px;
  --btn-radius: 4px;
  --btn-font-size: 1rem;
  --btn-font-weight: 600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--medium-text);
}

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

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

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

/* Shared animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none !important;
    transform: none !important;
  }
}

/* Header and navigation */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 30px; }
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-text);
  position: relative;
  padding-bottom: 5px;
}
.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}
.nav-menu a:hover:after { width: 100%; }

/* Active menu item */
.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}
.nav-menu a.active:after { width: 100%; }

/* Also support li.active > a for flexibility */
.nav-menu li.active > a {
  color: var(--primary-color);
  font-weight: 600;
}
.nav-menu li.active > a:after { width: 100%; }

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}
.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--dark-text);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
  }

  .nav-menu.active { left: 0; }
  .nav-menu li { margin: 15px 0; }
  .hamburger { display: block; }
  .hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Hero layout: use flex to prevent overlap and keep buttons stable */
.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(20px, 3vw, 40px);
  padding-right: 0; /* desktop keeps image flush to edge */
}

.hero-content { flex: 1 1 55%; }
.hero-image {
  position: relative !important; /* override earlier absolute positioning */
  right: auto !important;
  top: auto !important;
  width: 45% !important;
  height: 500px !important;
}

@media screen and (max-width: 1200px) {
  .hero-content { flex-basis: 58%; }
  .hero-image { width: 42% !important; height: 480px !important; }
}

@media screen and (max-width: 992px) {
  .hero .container { 
    flex-direction: column; 
    gap: 30px; 
    padding-inline: 20px !important; /* equal left/right padding on mobile */
  }
  .hero-content { flex-basis: auto; }
  .hero-image { width: 100% !important; height: 400px !important; }
}

/* Center utility for single CTA button rows */
.text-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; /* fallback for inline elements */
}

.breadcrumbs a {
  color: var(--medium-text);
  font-size: 0.95rem;
  margin: 0 10px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumbs a:active {
  opacity: 0.85;
}

.breadcrumbs span {
  color: var(--secondary-color);
  font-size: 0.95rem;
  margin: 0 10px;
}

@media screen and (max-width: 768px) {
  .breadcrumbs a, .breadcrumbs span {
    font-size: 0.9rem;
    margin: 0 8px;
  }
}

@media screen and (max-width: 480px) {
  .breadcrumbs a, .breadcrumbs span {
    font-size: 0.85rem;
    margin: 0 6px;
  }
}

/* Button system */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
}

.cta-button,
.cta-button-secondary,
.submit-button,
.step-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
}

/* Accessible focus and active states for all buttons */
.cta-button:focus-visible,
.cta-button-secondary:focus-visible,
.submit-button:focus-visible,
.step-button:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.cta-button:active,
.cta-button-secondary:active,
.submit-button:active,
.step-button:active {
  transform: translateY(1px);
}
/* Captcha */
.captcha-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 15px 0 10px 0;
}
.captcha-label {
  font-weight: 500;
  color: var(--dark-text);
}
.captcha-box input[name="captcha_answer"] {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.95rem;
}
.captcha-refresh {
  padding: 8px 12px;
  background-color: var(--light-bg);
  color: var(--dark-text);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
}
.captcha-refresh:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}
.captcha-error {
  color: #e74c3c;
  font-size: 0.85rem;
}
.captcha-box.error input[name="captcha_answer"] {
  border-color: #e74c3c;
}
@media screen and (max-width: 768px) {
  .captcha-box { flex-wrap: wrap; }
  .captcha-box input[name="captcha_answer"] { width: 100%; max-width: 220px; }
}
 .success-message { display: none; background-color: #d4edda; color: #155724; padding: 15px; border-radius: 4px; text-align: center; margin-bottom: 20px; }
 .success-message.show { display: block; }
 .submit-status { margin-top: 10px; font-size: 0.95rem; padding: 10px 12px; border-radius: 4px; text-align: center; position: relative; }
 .submit-status.ok { background-color: #d4edda; color: #155724; }
 .submit-status.err { background-color: #fdecea; color: #611a15; }
 .submit-status.mobile-toast { position: fixed; left: 0; right: 0; top: 0; margin: 0; border-radius: 0; z-index: 10000; box-shadow: 0 6px 18px rgba(0,0,0,0.12); opacity: 1; transition: opacity .3s ease, transform .2s ease; }
 .submit-status.mobile-toast.fade-out { opacity: 0; }
 .submit-status.fade-out { opacity: 0; transition: opacity .3s ease; }
 .submit-status .close-btn { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
 .cookie-banner {
   position: fixed;
   left: 0;
   right: 0;
   bottom: 0;
   background: var(--white);
   box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
   z-index: 9999;
   padding-bottom: calc(env(safe-area-inset-bottom, 0px));
 }
 .cookie-content {
   max-width: 1200px;
   margin: 0 auto;
   padding: 16px 20px;
   display: flex;
   align-items: center;
   gap: 16px;
 }
 .cookie-text {
   flex: 1;
   color: var(--medium-text);
   font-size: 0.95rem;
   line-height: 1.5;
   overflow-wrap: anywhere;
 }
 .cookie-text a { text-decoration: underline; }
 .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
 .cookie-btn {
   padding: 10px 16px;
   border-radius: 4px;
   border: 1px solid var(--border-light);
   background: var(--light-bg);
   color: var(--dark-text);
   cursor: pointer;
 }
 .cookie-btn.primary { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
 .cookie-btn.outline { background: transparent; border-color: var(--primary-color); color: var(--primary-color); }
 .cookie-btn.primary:hover { background: var(--secondary-color); border-color: var(--secondary-color); }
 .cookie-btn:hover { filter: brightness(0.98); }
 .cookie-modal {
   position: fixed;
   inset: 0;
   background: rgba(0,0,0,0.4);
   display: none;
   align-items: center;
   justify-content: center;
   z-index: 10000;
 }
 .cookie-modal.show { display: flex; }
 .cookie-modal-box {
   width: 92%;
   max-width: 520px;
   background: var(--white);
   border-radius: 8px;
   box-shadow: var(--shadow);
   padding: 20px;
 }
 .cookie-modal-box h4 { margin-bottom: 12px; }
 .cookie-form { display: grid; gap: 12px; margin-bottom: 16px; }
 .cookie-row { display: grid; gap: 6px; }
 .cookie-row-top { display: flex; align-items: center; gap: 10px; }
 .cookie-row small { color: var(--medium-text); font-size: 0.9rem; }
.cookie-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media screen and (max-width: 576px) {
  .cookie-content { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
  .cookie-text { width: 100%; }
  .cookie-actions { width: 100%; flex-direction: column; gap: 8px; }
  .cookie-btn { width: 100%; }
}

.page-header { background-color: var(--light-bg); padding: 80px 0; position: relative; text-align: center; }
.page-header:after { content: ''; position: absolute; bottom: -50px; left: 0; width: 100%; height: 100px; background: linear-gradient(to bottom right, transparent 49%, var(--white) 50%); }
.page-header h1 { line-height: 1.2; margin-bottom: 12px; }
.page-header p { max-width: 800px; margin: 0 auto; line-height: 1.6; }
@media screen and (max-width: 768px) { .page-header { padding: 60px 0; } .page-header h1 { font-size: 2rem; } .page-header p { font-size: 1rem; max-width: 680px; } }
@media screen and (max-width: 576px) { .page-header { padding: 50px 0; } .page-header p { max-width: 90%; } }

/* Shared page section styles used by static content pages */
.header-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  text-align: center;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 15px;
  display: inline-block;
}

.content-section {
  padding: 100px 0 80px;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}

.privacy-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 auto 20px;
  max-width: 900px;
  text-align: left;
}

.privacy-list li {
  margin-bottom: 10px;
  color: var(--medium-text);
}

/* Privacy policy page */
.privacy-policy-section {
  padding-top: 90px;
}

.privacy-policy-intro {
  max-width: 900px;
  margin: 0 auto 36px;
  text-align: center;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}

.privacy-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.privacy-card .section-subtitle {
  margin-bottom: 8px;
}

.privacy-card h2 {
  margin-bottom: 14px;
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

.privacy-card .privacy-list {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

@media screen and (max-width: 768px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  .privacy-policy-section { padding-top: 80px; }
  .privacy-card { padding: 24px 20px; }
}

@media screen and (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

.cta-section { padding: 100px 0; text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-buttons { margin-top: 30px; }

.contact-strip { background-color: var(--primary-color); color: var(--white); padding: 20px 0; position: static; }
.contact-strip-container { display: flex; justify-content: space-between; align-items: center; }
.contact-strip-text { font-size: 1.1rem; font-weight: 500; }
.contact-strip-buttons { display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(10px, 2vw, 16px); }
.contact-strip-buttons a { margin-left: 0; color: var(--white); display: inline-flex; align-items: center; font-weight: 500; }
.contact-strip-buttons i { margin-right: 8px; font-size: 1.2rem; }

footer { background-color: var(--dark-text); color: var(--white); padding: 80px 0 20px; }
.footer-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-logo { color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; display: block; }
.footer-logo span { color: var(--secondary-color); }
.footer-about p { color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; }
.footer-contact-item { display: flex; align-items: center; margin-bottom: 15px; }
.footer-contact-item i { color: var(--secondary-color); margin-right: 10px; font-size: 1.2rem; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.7); }
.footer-contact-item a:hover { color: var(--white); }
.footer-title { color: var(--white); margin-bottom: 25px; font-size: 1.3rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: var(--transition); display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-links a i { margin-right: 8px; font-size: 0.8rem; }
.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { height: 70px; background-size: cover; background-position: center; border-radius: 4px; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.05); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }

.project-details-section { padding: 80px 0; }
.project-details-section .container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.project-gallery img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: var(--shadow); transition: transform .2s ease; }
.project-gallery img:hover { transform: translateY(-2px); }
.project-info h2 { margin-bottom: 15px; }
.project-info ul { margin: 0; padding-left: 18px; }
.project-info li { margin-bottom: 8px; }
@media screen and (max-width: 992px) { .project-details-section .container { grid-template-columns: 1fr; } }
/* Base variables and resets */
/* (temporary block removed) */

