/* ==========================================================
   01-base.css
   Base styles, page-shell layout, and global typography
   AquaTerra brand values sourced from 00-settings.css variables
   ========================================================== */

/* ------------------------------
   Universal reset (transferred verbatim from main.css)
------------------------------ */
* {
  margin: 0;
  padding: 0;
  border: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  min-width: 1px;
  -webkit-box-sizing: border-box;
  -khtml-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

/* HTML5 semantic element reset (transferred verbatim from main.css) */
article, aside, details, figcaption, figure, header, footer, nav, section, summary {
  display: block;
}

/* Global focus outline reset (transferred verbatim from main.css) */
:focus {
  outline: none;
}

/* ------------------------------
   HTML & body
   Page-shell layout: sticky-footer flex pattern.
   body is the flex container, #main grows, footer stays put.
------------------------------ */
html {
  height: 100%;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

#main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

footer {
  flex: none;
}

/* ------------------------------
   Images & media
------------------------------ */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a img {
  border: 0;
  display: block;
}

/* ------------------------------
   Paragraphs & inline text
------------------------------ */
p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  letter-spacing: 0;
  padding-bottom: 10px;
}

p strong,
strong {
  font-weight: var(--font-weight-medium);
}

em {
  font-style: italic;
}

@media (max-width: 1024px) {
  p {
    font-size: 18px;
    line-height: 1.4;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  p {
    padding-bottom: 15px;
  }
}

@media (max-width: 576px) {
  p {
    font-size: 16px;
  }
}

/* ------------------------------
   Headings — all h1-h6 use color: var(--color-secondary) = #514a4f
------------------------------ */
h1 {
  margin: 0 0 0.6em;
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h1);
  line-height: 1;
  padding-bottom: 20px;
}
@media (max-width: 1024px) { h1 { font-size: 65px; } }
@media (max-width: 768px)  { h1 { font-size: 45px; } }
@media (max-width: 576px)  { h1 { font-size: 35px; } }

h2 {
  margin: 0 0 0.6em;
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h2);
  line-height: 1;
  padding-bottom: 15px;
}
@media (max-width: 1024px) { h2 { font-size: 45px; } }
@media (max-width: 768px)  { h2 { font-size: 35px; } }
@media (max-width: 576px)  { h2 { font-size: 25px; } }

h3 {
  margin: 0 0 0.6em;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h3);
  line-height: 1.2;
  padding-bottom: 20px;
}
@media (max-width: 1024px) { h3 { font-size: 32px; } }
@media (max-width: 768px)  { h3 { font-size: 26px; } }
@media (max-width: 576px)  { h3 { font-size: 22px; } }

h4 {
  margin: 0 0 0.6em;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-h4);
  line-height: 1.1;
  padding-top: 15px;
  padding-bottom: 20px;
}
@media (max-width: 1024px) { h4 { font-size: 22px; } }
@media (max-width: 768px)  { h4 { font-size: 20px; } }
@media (max-width: 576px)  { h4 { font-size: 19px; } }

h5 {
  width: 90%;
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-blockquote);
  line-height: 1.1;
  color: var(--color-text);
}
@media (max-width: 1024px) { h5 { font-size: 27px; } }

h6 {
  margin: 0 0 0.6em;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-h6);
  line-height: var(--line-height-base);
  padding-top: 5px;
  padding-bottom: 10px;
}
@media (max-width: 1024px) { h6 { font-size: 26px; padding-bottom: 10px; } }
@media (max-width: 768px)  { h6 { font-size: 24px; padding-bottom: 10px; } }

/* ------------------------------
   Blockquote
------------------------------ */
blockquote {
  width: 90%;
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--font-weight-light);
  position: relative;
}

blockquote:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -40px;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
}

blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-blockquote);
  line-height: 1.1;
  padding-bottom: 30px;
  color: var(--color-text);
}

@media (max-width: 1024px) {
  blockquote p {
    font-size: 33px;
  }
}
@media (max-width: 768px) {
  blockquote {
    width: 100%;
  }
}

/* ------------------------------
   Links
------------------------------ */
a {
  color: var(--color-primary);
  font-weight: var(--font-weight-body);
  letter-spacing: 0.16px;
  outline: none;
  vertical-align: top;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

/* ------------------------------
   Lists — list-style reset (moved from main.css)
------------------------------ */
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol,
li {
  list-style: none;
}

li {
  margin-bottom: 0.4em;
}

/* ------------------------------
   Forms
------------------------------ */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ------------------------------
   Tables
------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.6em;
  text-align: left;
}

/* ------------------------------
   Utility helpers
------------------------------ */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------
   WordPress core alignment
------------------------------ */
.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------
   Clearfix
------------------------------ */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
