/*
 Theme Name: Avada Child - Digital Sør
 Description: Child theme for Avada. Nye sider og innlegg bruker Gutenberg.
 Author: Digital Sør AS
 Template: Avada
 Version: 1.0.1
 Text Domain: avada-child-digitalsor
*/

/* ─── Gutenberg Content Wrapper ─── */

.gutenberg-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

@media (max-width: 768px) {
  .gutenberg-content-wrap {
    padding: 30px 16px 50px;
  }
}

/* ─── H1 Page Title ─── */

.gutenberg-page-title {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-size: 2.6em;
  font-weight: 600;
  line-height: 1.2;
  color: #0e0f11;
  margin-bottom: 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 3px solid #16697a;
}

@media (max-width: 768px) {
  .gutenberg-page-title {
    font-size: 1.8em;
  }
}

/* ─── Typography (matcher Avadas Outfit-font) ─── */

.gutenberg-content-wrap,
.gutenberg-content-wrap p,
.gutenberg-content-wrap li {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: #2a2a2a;
}

.gutenberg-content-wrap h2 {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-size: 2em;
  font-weight: 600;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  color: #0e0f11;
  letter-spacing: -0.01em;
}

.gutenberg-content-wrap h3 {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-size: 1.35em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: #16697a;
}

.gutenberg-content-wrap p {
  margin-bottom: 1.3em;
}

/* ─── Lists ─── */

.gutenberg-content-wrap ul,
.gutenberg-content-wrap ol {
  margin-bottom: 1.4em;
  padding-left: 1.2em;
}

.gutenberg-content-wrap li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

.gutenberg-content-wrap li strong {
  color: #0e0f11;
}

/* ─── Links ─── */

.gutenberg-content-wrap a {
  color: #16697a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gutenberg-content-wrap a:hover {
  color: #125460;
}

/* ─── CTA Buttons (Gutenberg button blocks) ─── */

.gutenberg-content-wrap .wp-block-buttons {
  margin-top: 1.5em;
  margin-bottom: 2em;
}

.gutenberg-content-wrap .wp-block-button__link {
  background-color: #16697a;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}

.gutenberg-content-wrap .wp-block-button__link:hover {
  background-color: #125460;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ─── FAQ styling (details/summary + H3 Q&A) ─── */

.gutenberg-content-wrap details {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 10px;
  background: #fafafa;
}

.gutenberg-content-wrap details summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.05em;
  color: #0e0f11;
}

.gutenberg-content-wrap details[open] summary {
  margin-bottom: 12px;
  color: #16697a;
}

/* ─── Blockquote / pullquote ─── */

.gutenberg-content-wrap blockquote,
.gutenberg-content-wrap .wp-block-quote {
  border-left: 4px solid #16697a;
  padding: 16px 24px;
  margin: 1.5em 0;
  background: #f5f9fa;
  font-style: italic;
  color: #333;
}

/* ─── Separator ─── */

.gutenberg-content-wrap hr,
.gutenberg-content-wrap .wp-block-separator {
  border: none;
  height: 2px;
  background: #e0e0e0;
  margin: 2.5em 0;
}

/* ─── Code blocks ─── */

.gutenberg-content-wrap code {
  background: #f0f2f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: Consolas, Monaco, monospace;
}

/* ─── Images ─── */

.gutenberg-content-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1em 0;
}

/* ─── Tables ─── */

.gutenberg-content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.gutenberg-content-wrap th,
.gutenberg-content-wrap td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.gutenberg-content-wrap th {
  background: #16697a;
  color: #fff;
  font-weight: 500;
}

.gutenberg-content-wrap tr:nth-child(even) {
  background: #f8f8f8;
}

/* ─── Also apply post-content class (used in Avada single.php) ─── */

.post-content {
  font-family: "Outfit", Arial, Helvetica, sans-serif;
}
