:root {
  --primary: #781d2a; /* Bordeaux */
  --primary-light: #9c2b3b;
  --secondary: #f3e5dc; /* Cream/Beige */
  --text: #2c2c2c;
  --text-light: #666;
  --white: #ffffff;
  --black: #111111;
  --border: #e0e0e0;
  --container: 1200px;
  --font-head: "Playfair Display", serif;
  --font-body: "Lato", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

h1 {
  font-size: 3.5rem;
  color: var(--black);
}

h2 {
  font-size: 2.8rem;
  color: var(--primary);
}

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

/* Utilities */
.text-center {
  text-align: center;
}
.bg-paper {
  background-color: #f9f7f2;
}
.bg-beige {
  background-color: var(--secondary);
}
.bg-dark {
  background-color: var(--black);
  color: var(--white);
}
.text-light {
  color: #ccc;
}

/* Buttons */
.btn-solid {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-solid:hover {
  background-color: var(--black);
  transform: translateY(-2px);
}

.btn-line {
  padding: 10px 25px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  transition: 0.3s;
}

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

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--black);
  border-bottom: 1px solid transparent;
}

.btn-text:hover {
  border-bottom-color: var(--primary);
  gap: 15px;
}

.link-under {
  text-decoration: underline;
  font-weight: 700;
  color: var(--primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  backdrop-filter: blur(5px);
}

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

.nav-desktop {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 1.1rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.line {
  width: 30px;
  height: 2px;
  background-color: var(--black);
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: 0.4s ease-in-out;
}

.mobile-overlay.active {
  transform: translateX(0);
}

.mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.menu-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-links a {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--black);
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #fff 50%, var(--secondary) 50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.hero-image {
  position: relative;
}

.img-mask {
  overflow: hidden;
  /* artistic shape */
  border-radius: 0 100px 0 0;
}

.floating-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--white);
  padding: 20px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--primary);
}

.floating-badge span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.floating-badge strong {
  display: block;
  font-size: 1.2rem;
  font-family: var(--font-head);
  color: var(--black);
}

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

.grid-text-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-text-img.reverse .text-col {
  order: 2;
}
.grid-text-img.reverse .img-col {
  order: 1;
}

.img-col img {
  width: 100%;
  filter: sepia(20%);
}

/* Expertise Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--border);
  transition: 0.3s;
  position: relative;
  top: 0;
}

.service-card:hover {
  top: -10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.card-num {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--secondary);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.blog-item {
  background: #1a1a1a;
  border: 1px solid #333;
  overflow: hidden;
  transition: 0.3s;
}

.blog-item:hover {
  border-color: var(--primary);
}

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.blog-item:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
}

.blog-content .date {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-content h4 {
  color: var(--white);
  margin-top: 10px;
  font-size: 1.3rem;
}

.blog-content p {
  color: #999;
  font-size: 0.95rem;
}

.read-more {
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}

/* Stats */
.stats-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 3.5rem;
  color: var(--primary);
  font-weight: 700;
}

.stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* FAQ */
.narrow-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.faq-btn:hover {
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
}

.faq-content p {
  padding-bottom: 20px;
  padding-right: 20px;
}

.faq-item.active .faq-btn {
  color: var(--primary);
}

.faq-item.active .faq-btn i {
  transform: rotate(180deg);
}

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

.contact-details {
  margin-top: 40px;
}

.cd-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.cd-item i {
  color: var(--primary);
}

.styled-form {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 20px 20px 0 var(--secondary);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #fffafa;
}

.captcha-box input {
  width: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}

.checkbox-group input {
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-group a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: var(--primary);
}

/* Footer */
.footer {
  background: var(--black);
  color: #fff;
  padding: 80px 0 20px;
}

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

.f-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
}

.brand p {
  color: #999;
}

.footer-block h4 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

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

.footer-block ul li a {
  color: #bbb;
  transition: 0.3s;
}

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

.highlight-link {
  color: var(--primary-light) !important;
  font-weight: 700;
}

.footer-block p {
  color: #bbb;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #777;
}

/* Cookie Pop-up */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 350px;
  background: var(--white);
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--primary);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 15px;
}

.cookie-text {
  font-size: 0.95rem;
  color: var(--text);
}

.btn-cookie {
  align-self: flex-end;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero {
    background: var(--secondary);
  }
  .hero-image {
    order: -1;
    margin-bottom: 40px;
  }
  .nav-desktop,
  .header-right .btn-line {
    display: none;
  }
  .burger {
    display: flex;
  }
  .grid-text-img,
  .cards-grid,
  .blog-grid,
  .stats-wrapper,
  .footer-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-text-img.reverse .text-col {
    order: 1;
  }
  .grid-text-img.reverse .img-col {
    order: 2;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .stats-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    text-align: left;
    font-size: 20px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  h3 {
    font-size: 20px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
