/* Reset CSS */
@import url('reset.css');

:root {
  --primary-color: #55123E;
  --tertiary-color: #104A1B;
  --alt-color: #9A9A22;
  --secondary-color: #4A6C6F;
  --dark-color: #333;
  --bright-color: #EEE;
  --primary-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2000' height='240' viewBox='0 0 1000 120'%3E%3Cg fill='none' stroke='%23104A1B' stroke-width='2.3' stroke-opacity='0.09'%3E%3Cpath d='M-500 75c0 0 125-30 250-30S0 75 0 75s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 45c0 0 125-30 250-30S0 45 0 45s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 105c0 0 125-30 250-30S0 105 0 105s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 15c0 0 125-30 250-30S0 15 0 15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500-15c0 0 125-30 250-30S0-15 0-15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 135c0 0 125-30 250-30S0 135 0 135s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3C/g%3E%3C/svg%3E");
  --secondary-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2000' height='240' viewBox='0 0 1000 120'%3E%3Cg fill='none' stroke='%2355123E' stroke-width='2.3' stroke-opacity='0.09'%3E%3Cpath d='M-500 75c0 0 125-30 250-30S0 75 0 75s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 45c0 0 125-30 250-30S0 45 0 45s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 105c0 0 125-30 250-30S0 105 0 105s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 15c0 0 125-30 250-30S0 15 0 15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500-15c0 0 125-30 250-30S0-15 0-15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 135c0 0 125-30 250-30S0 135 0 135s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3C/g%3E%3C/svg%3E");
}

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

body { 
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background: #333;
  position: sticky;
  top: 0;
  z-index: 100; 
}

nav img {
  height: 80px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--bright-color);
  font-weight: 700;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--bright-color);
  margin: 4px 0;
}

main {
  flex: 1 0 auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: var(--dark-color);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
  }

  .navbar ul.active {
    display: flex;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border: 1px solid var(--bright-color);
    border-radius: 8px;
  }

  .navbar ul.active li {
    margin-left: 0.5em;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-height: 1200px) {
  nav {
    max-height: 90px;
    padding: 0.5rem 2rem;
  }

  nav img {
    padding-top: 0.5em;
    height: 80px;
  }

}

@media (max-height: 1000px) {
  nav {
    max-height: 80px;
    padding: 0.5rem 2rem;
  }

  nav img {
    padding-top: 0.5em;
    height: 80px;
  }

}

header {
  text-align: center;
  background-color: var(--primary-color);
  padding: 8rem 2rem;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

header img {
  max-height: 350px;
  width: 80%;
}

header p {
  font-size: 1.2rem;
}

.bob {
  visibility: hidden !important; 
  height: 0px !important;
  padding: 0px !important;
  border: 0px !important;
}

.section {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 0rem;
  padding: 0rem 0rem;
}

.section.reverse {
  flex-direction: row-reverse;
}

.section .text { 
    flex: 1;
    min-width: 300px;
}

.section .image { 
    flex: 1;
    margin-bottom: -0.5em;
}

.section .image img { 
    max-height: 85vh;
    max-width: 50vw;
    border-radius: 0px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 0.5rem;
}

.section .gallery img { 
    width: 100%;
    border-radius: 0px;
    margin-bottom: 0.5em;
}

.primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0rem;
}

.primary .text { 
  flex: 1;
  min-width: 300px;
}

.primary .image { 
  flex: 0 1 auto;
  min-width: 300px;
  margin-bottom: -0.5em;
}


.primary .image img { 
  /*width: 100%;*/
  max-height: 85vh;
  max-width: 50vw;
  border-radius: 50%;
  padding: 20px;
}

@media (max-width: 1200px) {
  .primary .image img { 
    max-height: 85vh;
    max-width: 60vw;
    border-radius: 50%;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .primary .image img { 
    max-height: 85vh;
    max-width: 80vw;
    border-radius: 50%;
    padding: 20px;
  }
}

.primary p {
  margin-bottom: 1em;
}


h1 {
    display: block;
    font-size: 2.2em;
    font-weight: bold;
    unicode-bidi: isolate;
}
h2 {
    display: block;
    font-size: 1.7em;
    font-weight: bold;
    unicode-bidi: isolate;
}
h2 a {
  color: inherit;
  text-decoration: inherit;
}
h2 a:link {
  color: inherit;
  text-decoration: inherit;
}
h2 a:visited {
  color: inherit;
  text-decoration: inherit;
}
h3 {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  unicode-bidi: isolate;
  margin-bottom: 1em;;
}

.chevron {
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  transition: color 0.7s;
}

.chevron:hover {
  color: #0077cc;
}

.text-wrapper {
    margin-left: 4em;
    margin-right: 4em;
 }

 .text-block {
  margin-left: 4em;
  margin-right: 4em;
  margin-bottom: 8em;
}

.text-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: sans-serif;
  margin-top: 2em;
  width: 100%;
  height: 300px;
}

.text-switcher-container {
  position: relative;
  align-items: center;
  display: flex;
  width: 100%;
  height: auto;
  overflow: visible;
}

.text-switcher-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
  font-size: 1.2rem;
}

.text-switcher-item.active {
  opacity: 1;
}

.pricing table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.pricing th, .pricing td {
  border: 1px solid var(--bright-color);
  padding: 0.75rem;
  text-align: left;
}

.pricing .text-wrapper {
  text-align: center;
}

.contact form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1em;
}

.contact input, .contact textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--bright-color);
  border-radius: 4px;
}

.contact button {
  padding: 0.75rem;
  border: none;
  background: var(--dark-color);
  color: var(--bright-color);
  cursor: pointer;
  border-radius: 4px;
}

.contact-details {
  padding-bottom: 5em;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--dark-color);
  color: var(--bright-color);
}

@media (max-height: 1200px) {
  footer {
    padding: 1.5rem;
  }
}

@media (max-height: 1000px) {
  footer {
    padding: 1.0rem;
  }
}

@media (max-height: 800px) {
  footer {
    padding: 0.5rem;
  }
}

@media (max-width: 1200px) {
  header h1 { font-size: 2.25rem; }
  h2 { font-size: 1.2rem; }
  .section { flex-direction: column; }
}

#about {
    background-color: var(--primary-color);
    background-image: var(--primary-texture);
    color: var(--bright-color);
}

#about p{
  margin-bottom: 1em;
}

#about span a:link { color:  cyan; }
#about span a:visited { color: #05668d; }

#pricing {
    background-color: var(--alt-color);
}
#contact {
    background-color: var(--secondary-color);
    background-image: var(--primary-texture);
}

#services {
  background-color: var(--primary-color);
  background-image: var(--primary-texture);
  color: var(--bright-color);
}

#about-full {
  background-color: var(--tertiary-color);
  background-image: var(--secondary-texture);
  color: var(--bright-color);
}

#contact-full{
  background-color: var(--secondary-color);
  color: var(--bright-color);
}

.expandable-list {
  list-style: none;
}

.expandable-item {
  background-color: var(--bright-color);
  margin-bottom: 10px;
  /*border-radius: 5px;*/
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
  overflow: hidden;
}

.item-header {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-header h2 {
  font-size: 1.5em;
  color: var(--dark-color);
}

.short-desc {
  font-size: 1em;
  color: var(--dark-color);
}

.toggle-btn {
  padding: 10px 20px;
  background-color: #007BFF;
  color: var(--bright-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  width: fit-content;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #0056b3;
}

.item-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.item-content.expanded {
  max-height: 200px; /* Adjust based on content size */
  padding: 15px;
}

.item-content p {
  color: var(--dark-color);
}

.thanks {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin: 25vh auto;
  max-width: 980px;
}

@media (max-width: 760px) {
  .thanks {
    margin: 15vh auto;
    padding: 0 1rem;
  }
}

/*Services Section*/
/* Container and table layout */
.services-table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0 auto;
  max-width: 980px;
}

.services-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--primary-color);
  border-bottom: 2px solid var(--bright-color);
  font-weight: 600;
  color: var(--bright-color);

}

.services-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--bright-color);
}

/* Service name and price columns */
.svc-name {
  width: 34%;
  font-weight: 600;
  color: var(--bright-color);
}

.svc-subtitle{
  font-weight:500;
  font-size:0.9rem;
  color: var(--bright-color);
}

.svc-short {
  width: 46%;
  color: var(--bright-color);
}

.svc-price {
  width: 20%;
  text-align: right;
  font-weight: 700;
  color: var(--bright-color);
  white-space: nowrap;
}

/* Short description + "view more" area */
.short-text {
  display: block;
  margin-bottom: 8px;
  line-height: 1.45;
}

.view-toggle {
  background: none;
  border: none;
  color: #05668d;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: 0.95rem;
}

.view-toggle:focus {
  outline: 3px solid var(--bright-color);
  border-radius: 4px;
}

/* Hidden long description area (collapsible panel) */
.long-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 200ms ease;
  opacity: 0;
}

.long-desc.open {
  opacity: 1;
  max-height: 1200px; /* large value to allow multiple paragraphs */
  transition: max-height 420ms ease, opacity 250ms ease;
  margin-top: 8px;
}

.long-desc p {
  margin: 0 0 0.9rem 0;
  line-height: 1.6;
  color: var(--bright-color);
}

/* Small helpers */
.price-note {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--bright-color);
  margin-top: 6px;
  text-align: right;
}

/* Responsive: stack on narrow viewports */
@media (max-width: 760px) {
  .services-table thead {
    display: none;
  }

  .services-table, .services-table tbody, .services-table tr, .services-table td {
    display: block;
    width: 100%;
  }

  .services-table tr {
    margin-bottom: 14px;
    border: 1px solid  var(--bright-color);
    border-radius: 8px;
    padding: 12px;
  }

  .svc-name {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-bottom: 8px;
  }

  .svc-price {
    text-align: right;
    width: auto;
    font-size: 1rem;
  }

  .svc-short {
    width: 100%;
  }
}

@media  (max-width: 1600px) and (max-height: 1000px) {

  .primary .text:not(.thanks){ 
    font-size: small;
  }

}
