* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #e4dfd4;
}

#wrapper {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
  background: #fffaf0;
  border: 1px solid #c7b58f;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

#header {
  background: #d9c49a;
  border-bottom: 1px solid #b79b67;
}

#nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}

#nav a {
  color: #3d2d16;
  text-decoration: none;
  font-weight: bold;
}

#nav a:hover {
  text-decoration: underline;
}

#main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 32px;
}

#left-column,
#right-column {
  min-width: 0;
}

#logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d6c19a;
}

#logo img {
  flex: 0 0 auto;
}

.logotxt1 {
  font-size: 28px;
  font-weight: bold;
  color: #3a2b17;
}

.logotxt2 {
  font-size: 20px;
  color: #795f34;
  margin-left: 8px;
}

.tagline {
  margin: 4px 0 0;
  color: #5b4a2c;
}

.box {
  background: #f3ead8;
  border: 1px solid #d6c19a;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.box p:first-child {
  margin-top: 0;
}

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

.location-box {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.location-details p:first-child {
  margin-top: 0;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 6px;
  border: 1px solid #c9ad7a;
}

.content-image {
  display: block;
  width: 90%;
  max-width: 480px;
  height: auto;
  border: 1px solid #9d875b;
  margin: 0 auto 24px;
}

.award-section {
  text-align: center;
  margin-top: 24px;
}

.award-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 1px solid #9d875b;
}

#main-image {
  text-align: center;
  margin-bottom: 24px;
}

#main-image img {
  max-width: 180px;
  width: 100%;
  height: auto;
  border: 2px solid #9d875b;
}

.sidebar h3 {
  margin: 24px 0 10px;
  color: #3a2b17;
  border-bottom: 1px solid #d6c19a;
  padding-bottom: 6px;
}

.sidebar h3:first-child {
  margin-top: 0;
}

.sidebar p {
  margin-top: 0;
}

.sidebar ul {
  margin: 0;
  padding-left: 20px;
}

.sidebar li {
  margin-bottom: 8px;
}

a {
  color: #6f4518;
}

a:hover {
  color: #3d2d16;
}

#footer {
  text-align: center;
  padding: 18px 20px;
  font-size: 14px;
  color: #4a3a20;
  background: #d9c49a;
  border-top: 1px solid #b79b67;
}

/* Tablet */
@media (max-width: 900px) {
  #main-content {
    grid-template-columns: 1fr;
  }

  #right-column {
    border-top: 1px solid #d6c19a;
    padding-top: 28px;
  }

  #main-image img {
    max-width: 160px;
  }
}

/* Smaller tablet / large phone */
@media (max-width: 800px) {
  .location-box {
    grid-template-columns: 1fr;
  }

  .location-map iframe {
    height: 260px;
  }
}

/* Phone */
@media (max-width: 600px) {
  #wrapper {
    width: 100%;
    margin: 0;
    border-left: none;
    border-right: none;
  }

  #main-content {
    padding: 20px;
    gap: 24px;
  }

  #nav {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  #logo {
    align-items: flex-start;
  }

  .logotxt1 {
    display: block;
    font-size: 24px;
  }

  .logotxt2 {
    display: block;
    margin-left: 0;
    font-size: 18px;
  }

  .box {
    padding: 14px;
  }

  .location-map iframe {
    height: 240px;
  }
}


/* Shared layout for non-home pages */
#main-content-other {
  padding: 32px;
}

.content-page {
  max-width: 1060px;
  margin: 0 auto;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4 {
  color: #3a2b17;
  line-height: 1.25;
}

.content-page h1 {
  font-size: 30px;
  margin: 0 0 12px;
}

.content-page h2 {
  font-size: 22px;
  margin: 28px 0 10px;
  border-bottom: 1px solid #d6c19a;
  padding-bottom: 6px;
}

.content-page h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}

.page-intro h1,
.page-intro h2:first-of-type {
  margin-top: 0;
}

.article-content {
  font-size: 16px;
}

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

.article-content ol,
.article-content ul {
  padding-left: 24px;
}

.cv-heading {
  text-align: center;
  padding: 24px 20px;
  margin: 28px 0;
  border-top: 1px solid #d6c19a;
  border-bottom: 1px solid #d6c19a;
}

.cv-heading h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.two-column-list {
  columns: 2;
  column-gap: 48px;
}

.two-column-list li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.insurance-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px;
  background: #fffaf0;
  border: 1px solid #d6c19a;
  border-radius: 8px;
  text-decoration: none;
}

.insurance-card:hover {
  background: #fff4da;
  text-decoration: none;
}

.insurance-card img {
  display: block;
  max-width: 100px;
  max-height: 58px;
  width: auto;
  height: auto;
}

.notice {
  background: #fff4da;
  border-left: 4px solid #b79b67;
  padding: 12px 14px;
  border-radius: 6px;
}

.alert-box {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-warning {
  background: #fff0f0;
  border: 1px solid #d88a8a;
  border-left: 8px solid #b3261e;
  color: #5f1712;
}

.alert-title {
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.alert-message {
  font-size: 17px;
  font-weight: bold;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.inset-box {
  font-style: normal;
  margin: 18px 0 24px;
}

.privacy-notice h1,
.privacy-notice > h2:first-of-type,
.privacy-notice > h2:nth-of-type(2) {
  text-align: center;
}

@media (max-width: 900px) {
  #main-content-other {
    padding: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .insurance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #main-content-other {
    padding: 20px;
  }

  .content-page h1 {
    font-size: 25px;
  }

  .content-page h2 {
    font-size: 20px;
  }

  .two-column-list {
    columns: 1;
  }

  .insurance-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .insurance-card img {
    margin: 0 auto;
  }
}
