:root {
  --bg: #f7efe7;
  --surface: #fff3eb;
  --surface-strong: #f0dfd5;
  --text: rgba(205, 142, 91);
  --muted: rgba(204, 157, 119, 0.7);
  --accent: #b36a50;
  --accent-soft: #e7cab8;
  --border: rgba(59, 44, 38, 0.12);
  --radius: 30px;
  --shadow: 0 20px 60px rgba(59, 44, 38, 0.12);
  --transition: 250ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(255, 242, 233, 0.7), transparent 42%), var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

button,
a.button,
a {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(218, 218, 218, 0.116);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(59, 44, 38, 0.08);
}

header + main,
.site-header + main,
main {
  padding-top: 115px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 5px 0;
}

.header-logo {
  height: 92px;
  width: auto;
}

.footer-logo {
  display: block;
  margin: 0 auto;
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(59, 44, 38, 0.8);
  text-decoration: none;
  font-size: 10px;
  transition: color var(--transition);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  background-image: url('favicon.ico');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.mobile-main-nav {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0;
}

.mobile-main-nav.open {
  display: flex;
}

.mobile-header-inner {
  align-items: center;
}

.mobile-footer-inner {
  gap: 1rem;
  padding: 1.5rem 0;
}

.footer-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  align-items: center;
  text-align: center;
}

.footer-links-mobile .footer-link {
  width: 100%;
  padding: 0.85rem 1rem;
}

.main-nav a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  border-radius: 999px;
  padding: 5px 10px;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 20px 45px rgba(179, 106, 80, 0.18);
}

.button-secondary,
.button-outline {
  background: #cb916b;
  color: #fff7f0;
  
}

.button-outline:hover {
  background: rgba(255, 250, 246, 0.8);
}

.hero-section {
  padding: 80px 0 40px;
}

.main-section {
  min-height: 600px;
  display: grid;
  align-items: center;
  padding: 0;
}

.main-section-inner {
  width: 70%;
  margin-left: auto;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.main-section-content {
  display: flex;
  align-items: center;
  gap: 1.5rem 2rem;
}

.main-section.reverse .main-section-content {
  flex-direction: row-reverse;
}

.main-section-text {
  flex: 1 1 0;
  min-width: 0;
}

.main-section-image {
  flex: 1 1 0;
  min-width: 0;
}

.image-only-section {
  min-height: 420px;
}

.image-only-section .main-section-inner {
  width: 100%;
  justify-content: center;
  min-height: auto;
  padding: 2rem 0;
}

.image-only-section .main-section-content {
  flex-direction: column;
}

.image-only-section .main-section-image {
  width: 100%;
  max-width: 1080px;
  min-height: 320px;
}

.image-only-section .main-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.image-only-section .main-section-image img[src=""] {
  display: none;
}

.image-only-section .main-section-image .image-placeholder {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(179, 106, 80, 0.35);
  border-radius: 24px;
  padding: 1.5rem;
  color: rgba(59, 44, 38, 0.7);
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 1rem;
}

.image-only-section .main-section-image img:not([src=""]) + .image-placeholder {
  display: none;
}

.form-group.hidden {
  display: none !important;
}

.main-section-image-slot {
  flex: 0 0 clamp(140px, 14vw, 200px);
  min-height: clamp(140px, 14vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px dashed rgba(179, 106, 80, 0.35);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  color: rgba(59, 44, 38, 0.7);
  text-align: center;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(179, 106, 80, 0.08);
}

.main-section-text h2 {
  margin: 0 0 1rem;
  font-size: clamp(5rem, 3vw, 3rem);
}

.main-section-text p {
  margin: 0;
  font-size: 0.875rem;
  text-align: justify;
  line-height: 1.9;
  color: rgba(59, 44, 38, 0.9);
}

.main-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.section-subtitle {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: rgba(59, 44, 38, 0.8);
  max-width: 760px;
  line-height: 1.75;
  text-align: justify;
}

.image-placeholder {
  width: 100%;
  max-width: 520px;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(59, 44, 38, 0.08);
  box-shadow: 0 30px 60px rgba(59, 44, 38, 0.08);
  border-radius: 32px;
}

.animated-square {
  width: 220px;
  height: 220px;
  background: linear-gradient(180deg, rgba(179, 106, 80, 0.18), rgba(255, 255, 255, 0.95));
  border: 2px solid rgba(179, 106, 80, 0.25);
  border-radius: 24px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.animated-square::before,
.animated-square::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, rgba(179, 106, 80, 0.35), transparent 40%);
  animation: floatGlow 8s ease-in-out infinite;
}

.animated-square::after {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 60%;
  background: radial-gradient(circle, rgba(183, 115, 73, 0.45), transparent 45%);
  animation-duration: 10s;
}

.animated-square::before {
  animation-duration: 7s;
}

@keyframes floatGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(12%, 10%) scale(1.18);
    opacity: 0.5;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .practice-card,
  .practice-section,
  .contact-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .practice-section,
  .practice-card,
  .contact-card {
    gap: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
  }

  .hero-text,
  .section-subtitle,
  .contact-form-card p,
  .feature-item p,
  .sidebar-card p,
  .article-page-content p {
    font-size: 1rem;
    line-height: 1.8;
  }
}

.section-1 {
  background: #9696963b;
  backdrop-filter: blur(12px);
}

.section-2 {
  background: rgba(231, 202, 184, 0.35);
}

.section-3 {
  background: #7975753b;
  backdrop-filter: blur(12px);
}

.section-4 {
  background: rgba(231, 202, 184, 0.35);
}

.section-5 {
  background: #acacac3a;
  backdrop-filter: blur(12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 4.5rem);
  letter-spacing: -0.05em;
}

.hero-text {
  margin: 1.8rem 0 2.4rem;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-decor {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 106, 80, 0.22), transparent 60%);
}

.category-tabs {
  display: flex;
  gap: 1rem;
  margin: 40px auto 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab {
  border: 0px solid rgba(59, 44, 38, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab:hover,
.tab.active {
  background: var(--accent-soft);
  border-color: rgba(179, 106, 80, 0.3);
  color: var(--accent);
}

.practice-section {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 60px;
}

.practice-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid rgba(59, 44, 38, 0.06);
}

.practice-reverse {
  grid-template-columns: 1fr 1fr;
}

.practice-content {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.82rem;
}

.practice-content h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
}

.practice-content p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.9rem;
  border-radius: 18px;
  background: rgba(247, 239, 231, 0.75);
}

.feature-item img {
  width: 38px;
  height: 38px;
}

.practice-image {
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
}

.practice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-sidebar {
  grid-column: 1 / -1;
}

.sidebar-card {
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.sidebar-card .button {
  width: 100%;
}

.sidebar-card p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-section {
  padding: 20px 0 80px;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.95rem;
}


.contact-page main {
  padding: 80px 0 100px;
}

.main-page {
  background: url('images/10.png') center/cover no-repeat, radial-gradient(circle at top, rgba(255, 242, 233, 0.7), transparent 42%), var(--bg);
  background-attachment: fixed;
}

body.main-page[data-page="medytacja"] {
  background: url('images/20.png') center/cover no-repeat, radial-gradient(circle at top, rgba(255, 242, 233, 0.7), transparent 42%), var(--bg);
  background-attachment: fixed;
}

body.practice-page {
  background: url('images/15.png') center/cover no-repeat;
  background-attachment: fixed;
}

.contact-form-card {
  width: 100%;
  max-width: 760px;
  margin: 300px auto;
  border-radius: 32px;
  padding: 40px 44px;
  
}

.contact-form-card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  color: var(--accent);
  text-align: center;
}

/* Center contact image above heading */
.contact-image {
  margin-bottom: 24px;
  text-align: center;
}
.contact-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.contact-form-card p {
  margin: 0 0 2.25rem;
  color: rgba(59, 44, 38, 0.8);
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.contact-field {
  display: grid;
  gap: 0.55rem;
}

.contact-field span {
  background: rgba(59, 44, 38, 0.08);
  font-size: 0.95rem;
  color: rgb(255, 255, 255);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: none;
  backdrop-filter: blur(12px);
  background: rgba(221, 219, 219, 0.342);
  padding: 20px 12px;
  border-radius: 12px;
  font: inherit;
  color: rgba(230, 230, 230, 0.9);
  outline: none;
}

/* Two-column row for email + phone */
.two-columns {
  display: flex;
  gap: 1rem;
}
.two-columns .contact-field {
  flex: 1 1 0;
}
.two-columns .contact-field input,
.two-columns .contact-field textarea {
  width: 100%;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(248, 248, 248, 0.685);
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: rgba(59, 44, 38, 0.8);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 4px;
}

.checkbox-field a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-field a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

/* Row with checkbox and submit button */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.contact-actions .button {
  min-width: 140px;
}

.blog-page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(34, 103, 206, 0.35), transparent 22%),
              radial-gradient(circle at top right, rgba(255, 146, 71, 0.35), transparent 18%),
              radial-gradient(circle at bottom left, rgba(255, 192, 72, 0.2), transparent 25%),
              linear-gradient(135deg, rgba(255, 243, 229, 0.95) 0%, rgb(255, 224, 195) 28%, rgb(211, 196, 187) 58%, rgb(230, 208, 169) 100%);
  background-attachment: fixed;
}

body.shop-page {
  background: url('images/13.png') center/cover no-repeat;
  background-attachment: fixed;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 40px auto 24px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(78, 58, 44, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 32px 110px rgba(78, 58, 44, 0.16);
}

.blog-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blog-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(224, 206, 187, 0.45);
}

.blog-card-content {
  padding: 28px 26px 32px;
}

.blog-card-title {
  margin: 0 0 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: #B87333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
          line-clamp: 3;
  overflow: hidden;
}

.blog-card-desc {
  margin: 0;
  color: #6b5f56;
  line-height: 1.8;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  background: transparent;
}

.article-page-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  color: #dba87d;
}

.article-page-content .article-image {
  margin-bottom: 2rem;
}

.article-page-content .article-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

.article-page-content p {
  margin: 0 0 1.5rem;
  color: rgba(32, 28, 24, 0.88);
  line-height: 1.95;
  font-size: 1.05rem;
}

.article-page-content p:last-child {
  margin-bottom: 0;
}

/* Article Header and Edit Button */
.article-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.article-header h1 {
  flex: 1;
  margin: 0;
}

.edit-btn {
  padding: 0.85rem 1.5rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 20px 45px rgba(179, 106, 80, 0.18);
}

.edit-btn:hover {
  background-color: #a5583f;
  transform: translateY(-2px);
  box-shadow: 0 30px 60px rgba(179, 106, 80, 0.25);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.5rem;
  border-radius: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(59, 44, 38, 0.08);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.modal-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  padding: 0.85rem 0;
  font: inherit;
  color: white;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.modal-close,
.modal-header h2,
.form-group label,
.btn,
.blog-toolbar-inner h1,
.blog-toolbar-inner p {
  color: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Button Styles */
.btn {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 20px 45px rgba(179, 106, 80, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #a5583f;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid rgba(59, 44, 38, 0.16);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive removed for phone-specific layouts */

/* Global responsive adjustments for all pages */
@media (max-width: 1120px) {
  .container {
    width: min(980px, calc(100% - 32px));
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .hero-section,
  .contact-page main,
  .practice-section,
  .contact-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-copy,
  .hero-image-frame,
  .practice-card,
  .contact-card,
  .sidebar-card,
  .contact-form-card {
    width: 100%;
  }
}

@media (max-width: 880px) {
  .hero-grid,
  .practice-section,
  .practice-card,
  .contact-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .practice-section,
  .practice-card,
  .contact-card {
    gap: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
  }

  .hero-text,
  .section-subtitle,
  .contact-form-card p,
  .feature-item p,
  .sidebar-card p,
  .article-page-content p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .practice-content h2,
  .contact-card h3,
  .article-page-content h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .button-primary,
  .button-secondary,
  .button-outline,
  .btn,
  .edit-btn {
    width: 100%;
    justify-content: center;
  }
}

.site-footer {
  padding: 30px 0 40px;
  background: rgba(161, 161, 161, 0.295);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(59, 44, 38, 0.08);
}

.site-footer .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  justify-items: center;
  gap: 160px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.footer-links-left,
.footer-links-right {
  align-items: flex-start;
  text-align: left;
}

.footer-links-right {
  align-items: flex-end;
  text-align: right;
}

.footer-center {
  align-items: center;
}

.footer-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: transform var(--transition), background-color var(--transition);
}

.icon-button:hover {
  transform: translateY(-2px);
  background: rgba(179, 106, 80, 0.14);
}

.icon-button img {
  width: 18px;
  height: 18px;
}

.footer-link {
  
  color: rgb(203, 145, 107);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition), background-color var(--transition);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-logo {
  display: block;
  margin: 0 auto;
  height: 40px;
  width: auto;
}

.footer-nav {
  display: block;
}
.footer-nav p {
  margin: 0;
  color: #a57f6c;
  font-size: 10px;
  line-height: 1.6;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .practice-card,
  .practice-section {
    grid-template-columns: 1fr;
  }

  .practice-sidebar {
    position: static;
  }
}

/* Homepage offset layout: shared left offset for main-page sections */
:root {
  --homepage-offset-desktop: 30%;
  --homepage-offset-tablet: 18%;
}

.main-page main.homepage-offset-layout > section,
.main-page main.homepage-offset-layout > .section {
  display: grid;
  grid-template-columns: var(--homepage-offset-desktop) 1fr;
  gap: 2rem;
  align-items: start;
}

.main-page main.homepage-offset-layout > section > .container,
.main-page main.homepage-offset-layout > .section > .container {
  grid-column: 2;
}

/* allow full-width elements to span across offset */
.main-page main.homepage-offset-layout > section .full-bleed,
.main-page main.homepage-offset-layout > .section .full-bleed {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) {
  .main-page main.homepage-offset-layout > section,
  .main-page main.homepage-offset-layout > .section {
    grid-template-columns: var(--homepage-offset-tablet) 1fr;
  }
}

@media (max-width: 760px) {
  .main-page main.homepage-offset-layout > section,
  .main-page main.homepage-offset-layout > .section {
    grid-template-columns: 1fr;
  }
  .main-page main.homepage-offset-layout > section > .container,
  .main-page main.homepage-offset-layout > .section > .container {
    grid-column: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* Homepage offset layout */
.homepage-offset-layout {
  padding-top: 115px;
}

/* Three alternating full-width sections with empty 30% left column */
.main-section {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 30% 70%;
  align-items: center;
}

.main-section-inner {
  grid-column: 2 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
}

.main-section-text,
.main-section-image {
  width: 50%;
}

.main-section.reverse .main-section-inner {
  flex-direction: row-reverse;
}

.main-section-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

@media (max-width: 880px) {
  .main-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem 0;
  }

  .main-section-inner {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .main-section-text,
  .main-section-image {
    width: 100%;
  }
}

/* Edit Mode and Modal Enhancements */
.modal.active {
  display: flex;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.close-modal:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

.form-group input[type="file"]:focus {
  outline: none;
  border-color: var(--accent);
}

.image-preview {
  margin-top: 10px;
  max-width: 200px;
  border-radius: 8px;
  display: none;
}

.image-preview.active {
  display: block;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-save,
.btn-cancel {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--transition);
  color: white;
}

.btn-save {
  background: var(--accent);
}

.btn-save:hover {
  background: #a5583f;
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cancel {
  background: var(--surface-strong);
  color: var(--text);
}

.btn-cancel:hover {
  background: var(--border);
}

.edit-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.edit-mode-toggle:hover {
  background: #a5583f;
}
