/* ==========================================================================
   Luciano & Son Landscape — Modern Redesign
   Colors: #003300 dark green | #006600 med green | #00CC00 bright green | #cccc99 tan
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  background: url(/graphics/background_cyprbk.jpg) repeat;
  color: #333;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: #006600; text-decoration: none; }
a:hover { color: #cccc99; }
a:focus { outline: 2px solid #00CC00; outline-offset: 2px; }

h1, h2, h3 { color: #003300; line-height: 1.3; }
h1 { font-size: 1.75rem; margin: 1rem 0; }
h2 { font-size: 1.25rem; margin: 0.75rem 0; }
h3 { font-size: 1.1rem; margin: 0.75rem 0; }

p { margin-bottom: 1rem; }

/* --- Utility --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: #003300;
  text-align: center;
  padding: 0.5rem 0;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem;
}

.header-leaf {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.header-logo {
  max-width: 300px;
  border: 1px solid #444;
}

.tagline {
  font-style: italic;
  color: #00CC00;
  font-size: 0.9rem;
  padding: 0.25rem 1rem 0.5rem;
  text-align: center;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #00CC00;
  color: #00CC00;
  font-size: 1.5rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  margin: 0.25rem auto;
}

.nav-toggle:hover {
  background: #006600;
  color: #fff;
}

.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-nav {
  background: #003300;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.nav-menu li {
  flex: 0 0 auto;
}

.nav-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: #006600;
  color: #cccc99;
}

.nav-menu a.current {
  background: #00CC00;
  color: #003300;
}

/* ==========================================================================
   Layout: sidebar + content
   ========================================================================== */
.layout-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* Sidebar */
.sidebar {
  flex: 0 0 220px;
  min-width: 200px;
}

.sidebar-section {
  background: rgba(0, 51, 0, 0.04);
  border: 1px solid #d4d4a3;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.sidebar-section h3 {
  font-size: 0.95rem;
  border-bottom: 2px solid #00CC00;
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  color: #003300;
}

.sidebar-contact {
  font-size: 0.9rem;
  line-height: 1.5;
}

.sidebar-contact a {
  color: #006600;
  word-break: break-all;
}

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

.sidebar-orgs img {
  display: block;
  margin: 0.6rem auto;
  max-width: 120px;
}

/* Main content */
.main-content {
  flex: 1;
  min-width: 0;
}

.main-content img.featured-image {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 500px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { clear: both; margin-top: 2rem; }

.gallery h3 {
  border-bottom: 2px solid #00CC00;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.gallery-grid a {
  display: block;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-grid a:hover {
  border-color: #006600;
  transform: scale(1.03);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Quote Form
   ========================================================================== */
.quote-form {
  background: rgba(255,255,255,0.7);
  border: 1px solid #cccc99;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.quote-form h2 {
  color: #003300;
  border-bottom: 2px solid #00CC00;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.form-row {
  margin-bottom: 0.8rem;
}

.form-row label {
  display: block;
  font-weight: bold;
  color: #003300;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row textarea { resize: vertical; }

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: #00CC00;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 204, 0, 0.2);
}

.checkbox-group {
  border: 1px solid #cccc99;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.8rem;
  background: rgba(255,255,255,0.5);
}

.checkbox-group h3 {
  color: #003300;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-weight: normal;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
}

.checkbox-group label:hover {
  color: #006600;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #006600;
}

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.form-actions input[type="submit"],
.form-actions input[type="reset"] {
  padding: 0.65rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.form-actions input[type="submit"] {
  background: #006600;
  color: #fff;
}

.form-actions input[type="submit"]:hover {
  background: #00CC00;
  color: #003300;
}

.form-actions input[type="reset"] {
  background: #999;
  color: #fff;
  margin-left: 0.5rem;
}

.form-actions input[type="reset"]:hover {
  background: #777;
}

.form-actions input:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-info-box {
  background: rgba(255,255,255,0.7);
  border: 1px solid #cccc99;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-details {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-details strong {
  color: #003300;
}

.directions ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.directions li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #003300;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  clear: both;
}

.site-footer hr {
  border: none;
  border-top: 1px solid #006600;
  margin-bottom: 1rem;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #00CC00;
}

.site-footer a:hover {
  color: #cccc99;
}

/* ==========================================================================
   Form Success/Error
   ========================================================================== */
.form-msg {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: bold;
}
.form-msg.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.form-msg.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

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

/* Mobile: up to 768px */
@media (max-width: 768px) {
  .header-leaf { width: 60px; }
  .header-logo { max-width: 220px; }

  .nav-toggle { display: block; }

  .nav-menu {
    flex-direction: column;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    white-space: normal;
    text-align: center;
    border-top: 1px solid #005500;
  }

  .layout-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .sidebar {
    flex: 0 0 auto;
    width: 100%;
  }

  .sidebar-orgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .sidebar-orgs img {
    margin: 0;
  }

  .main-content img.featured-image {
    float: none;
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
  }

  h1 { font-size: 1.4rem; }
}

/* Desktop: 769px+ */
@media (min-width: 769px) {
  .nav-menu { display: flex !important; }
}
