/**
 * La Camera Verde - Custom Grid System
 * Lightweight replacement for Foundation framework
 * Maintains exact visual appearance with cleaner code
 */

/* ==========================================================================
   Base Reset & Box Sizing
   ========================================================================== */

html {
  box-sizing: border-box;
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
  font-size: 100%; /* 16px base */
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.6;
}

p {
  margin: 0 0 1rem 0;
  font-size: 1em; /* 16px */
  line-height: 1.6;
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
}

li {
  font-size: 1em; /* 16px */
  line-height: 1.6;
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
}

ul, ol {
  margin: 0 0 1rem 1.25rem;
  font-size: 1em; /* 16px */
}

td, th {
  font-size: 1em; /* 16px */
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
}

blockquote {
  font-size: 1em; /* 16px */
  line-height: 1.6;
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', Georgia, "Times New Roman", Times, serif;
}

/* ==========================================================================
   Links - Foundation Default Styles
   ========================================================================== */

a {
  line-height: inherit;
  color: #003200;
  text-decoration: none;
  cursor: pointer;
}

a:hover,
a:focus {
  color: #003200;
}

a img {
  border: 0;
}

/* ==========================================================================
   Grid System - Flexbox Based
   ========================================================================== */

.row {
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5%;
  padding-right: 2.5%;
  display: flex;
  flex-flow: row wrap;
}

/* Responsive max-width for very large screens */
@media screen and (min-width: 90em) {
  .row {
    max-width: 1800px;
  }
}

/* Footer - temporarily simplified while debugging */
#copy {
  width: 100%;
  max-width: 100%;
}

#copy .row {
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#copy .columns {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.row .row {
  margin-left: -0.625rem;
  margin-right: -0.625rem;
}

.columns {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  width: 100%;
  flex: 0 0 auto;
}

/* When columns contain other columns, act as a flex container */
.columns .columns {
  display: inline-block;
  vertical-align: top;
}

/* Handle orphan columns (columns not inside .row) */
body > .columns:not(.footer-links) {
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5%;
  padding-right: 2.5%;
  box-sizing: border-box;
}

@media screen and (min-width: 90em) {
  body > .columns:not(.footer-links) {
    max-width: 1800px;
  }
}

/* Small Grid (Mobile First - Default) */
.small-1 { width: 8.33333%; }
.small-2 { width: 16.66667%; }
.small-3 { width: 25%; }
.small-4 { width: 33.33333%; }
.small-5 { width: 41.66667%; }
.small-6 { width: 50%; }
.small-7 { width: 58.33333%; }
.small-8 { width: 66.66667%; }
.small-9 { width: 75%; }
.small-10 { width: 83.33333%; }
.small-11 { width: 91.66667%; }
.small-12 { width: 100%; }

/* Medium Grid (Tablets - 641px and up) */
@media screen and (min-width: 40.063em) {
  .medium-1 { width: 8.33333%; }
  .medium-2 { width: 16.66667%; }
  .medium-3 { width: 25%; }
  .medium-4 { width: 33.33333%; }
  .medium-5 { width: 41.66667%; }
  .medium-6 { width: 50%; }
  .medium-7 { width: 58.33333%; }
  .medium-8 { width: 66.66667%; }
  .medium-9 { width: 75%; }
  .medium-10 { width: 83.33333%; }
  .medium-11 { width: 91.66667%; }
  .medium-12 { width: 100%; }
}

/* Large Grid (Desktop - 1025px and up) */
@media screen and (min-width: 64.063em) {
  .large-1 { width: 8.33333%; }
  .large-2 { width: 16.66667%; }
  .large-3 { width: 25%; }
  .large-4 { width: 33.33333%; }
  .large-offset-2 { margin-left: 16.66667%; }
  .large-5 { width: 41.66667%; }
  .large-6 { width: 50%; }
  .large-7 { width: 58.33333%; }
  .large-8 { width: 66.66667%; }
  .large-9 { width: 75%; }
  .large-10 { width: 83.33333%; }
  .large-11 { width: 91.66667%; }
  .large-12 { width: 100%; }
}

/* ==========================================================================
   Menu System
   ========================================================================== */

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.menu li {
  display: inline-block;
}

.menu a {
  display: block;
  padding: 0.7rem 1rem;
  line-height: 1;
}

/* Vertical Menu (Mobile) */
.menu.vertical {
  flex-direction: column;
}

.menu.vertical li {
  display: block;
  width: 100%;
}

/* Horizontal Menu (Tablet and up) */
@media screen and (min-width: 40.063em) {
  .menu.medium-horizontal {
    flex-direction: row;
  }

  .menu.medium-horizontal li {
    display: inline-block;
    width: auto;
  }
}

/* Menu Centered */
.menu-centered {
  text-align: center;
}

.menu-centered .menu {
  justify-content: center;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: inline-block;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: #cacaca;
  position: relative;
  top: 1px;
}

.breadcrumbs li.current {
  color: #0a0a0a;
  cursor: default;
}

/* ==========================================================================
   Text Alignment Utilities
   ========================================================================== */

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

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

.text-justify {
  text-align: justify;
}

/* ==========================================================================
   Basic Elements
   ========================================================================== */

img {
  max-width: 90%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Desktop: images at 65% max-width */
@media screen and (min-width: 64.063em) {
  img {
    max-width: 65%;
  }
}

hr {
  max-width: 75rem;
  height: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid #cacaca;
  border-left: 0;
  margin: 1.25rem auto;
  clear: both;
}

/* ==========================================================================
   Flex Video (Responsive Embeds)
   ========================================================================== */

.flex-video {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  margin-bottom: 1rem;
  overflow: hidden;
}

.flex-video.widescreen {
  padding-bottom: 56.25%;
}

.flex-video.vimeo {
  padding-bottom: 56.25%;
}

.flex-video iframe,
.flex-video object,
.flex-video embed,
.flex-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Visibility & Display Utilities
   ========================================================================== */

.show-for-sr,
.show-for-screen-reader {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  margin-left: 0;
  margin-bottom: 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.pagination li {
  margin-right: 0.0625rem;
  border-radius: 0;
  font-size: 0.875rem;
  display: inline-block;
}

.pagination a,
.pagination button,
.pagination span {
  display: block;
  padding: 0.1875rem 0.625rem;
  border-radius: 0;
  color: #0a0a0a;
}

.pagination .current {
  padding: 0.1875rem 0.625rem;
  background: #1779ba;
  color: #fefefe;
  cursor: default;
}

.pagination .disabled {
  padding: 0.1875rem 0.625rem;
  color: #cacaca;
  cursor: not-allowed;
}

.pagination-previous,
.pagination-next {
  font-weight: bold;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0;
  border-collapse: collapse;
}

table thead,
table tbody,
table tfoot {
  border: 1px solid #f1f1f1;
  background-color: #fefefe;
}

table thead tr,
table tfoot tr {
  background: transparent;
}

table thead th,
table thead td,
table tfoot th,
table tfoot td {
  padding: 0.5rem 0.625rem 0.625rem;
  font-weight: bold;
  text-align: left;
}

table tbody tr {
  border-bottom: 0;
}

table tbody th,
table tbody td {
  padding: 0.5rem 0.625rem 0.625rem;
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

/* Mobile: slightly smaller */
@media screen and (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.3em;
  }
}

/* Large desktop: slightly bigger */
@media screen and (min-width: 1200px) {
  body {
    font-size: 17px;
  }
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */

/* Hamburger button - hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
}

.hamburger span {
  width: 2rem;
  height: 0.2rem;
  background: #003200;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Navigation menu */
.nav-menu {
  display: block;
}

.nav-menu ul.menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.nav-menu ul.menu li {
  margin: 0 15px;
}

.nav-menu ul.menu li a {
  text-decoration: none;
  color: #003200;
  font-size: 1em;
  transition: color 0.3s ease;
}

.nav-menu ul.menu li a:hover {
  color: #196b52;
}

.nav-menu ul.menu li.active a {
  font-weight: bold;
}

/* Mobile styles */
@media screen and (max-width: 640px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #196b52;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu ul.menu {
    flex-direction: column;
    padding: 60px 0 20px 0;
  }

  .nav-menu ul.menu li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-menu ul.menu li a {
    font-size: 1.1em;
    display: block;
    padding: 10px 20px;
  }
}

/* ==========================================================================
   Misc
   ========================================================================== */

.no-js {
  /* Class for HTML element when JS is disabled */
}

[role="navigation"] {
  /* Accessibility */
}
