/*
Theme Name: TTT
Theme URI: https://example.com/simple-five
Author: JF
Description: A clean 5-page starter theme with a logo, top nav, home sections, image carousel, and a footer with contact and business hours areas.
Version: 1.0.0
Text Domain: simple-five
*/
:root{
  --bg:#ffffff;
  --card:#005D6C;
  --text:#0f0f0f;
  --muted:#b7bbc7;
  --accent:#005D9B;
  --accent-2:#005D9B;
  --border:#005D6C;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,'Noto Sans',sans-serif;line-height:1.6}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* Header */
.site-header { 
  position:sticky; 
  top:0; 
  background:#ffffff; 
  border-bottom:1px solid #005D6C; 
  z-index:100; 
}
.nav-container { 
  max-width:1100px; 
  margin:0 auto; 
  padding:0 16px; 
  height:85px; 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
}

/* Brand */
.brand { 
  display:flex; 
  align-items:center; 
  gap:10px; 
  text-decoration:none; 
  z-index:102;
}
.brand-logo { 
  height:50px; 
  width:auto; 
  display:block; 
}
.brand-title { 
  color:#e8e8e8; 
  font-weight:700; 
  letter-spacing:.2px; 
}

/* Menu desktop */
.menu-wrap { 
  display:flex; 
}
.menu { 
  list-style:none; 
  display:flex; 
  gap:18px; 
  margin:0; 
  padding:0;
  text-align: center;
}
.menu > li { 
  position: relative; 
}
.menu a { 
  color:#000000; 
  text-decoration:none; 
  padding:8px 10px; 
  border-radius:10px; 
  display:block; 
}
.menu a:hover { 
  background:#005D6C; 
  color: #ffffff;
  text-decoration: none;
}

/* Dropdown Menu Styles */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #005D6C;
  border-radius: 10px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 93, 108, 0.15);
  display: none; /* Hidden by default */
  z-index: 1000;
}

/* ONLY apply hover effect on Desktop (screens larger than 800px) */
@media (min-width: 801px) {
  .menu-item-has-children:hover .sub-menu {
    display: block;
  }
}

/* This class is toggled by JS on desktop if needed, or handles focus states */
.menu-item-has-children.show-submenu .sub-menu {
  display: block;
}

.sub-menu li {
  margin: 0;
  padding: 0;
}

.sub-menu a {
  padding: 10px 16px;
  color: #000000;
  border-radius: 0;
  display: block;
  white-space: nowrap;
}

.sub-menu a:hover {
  background: #005D6C;
  color: #ffffff;
}

/* Dropdown indicator */
.menu-item-has-children > a::after {
  content: ' ▼';
  font-size: 10px;
  margin-left: 4px;
}

/* Hamburger */
.nav-toggle {
  display: none; 
  position: relative; 
  width: 42px; 
  height: 36px; 
  border: none;
  background: transparent; 
  cursor: pointer;
  z-index: 102;
  padding: 0;
}

.nav-toggle .bar { 
  position: absolute; 
  left: 9px; 
  right: 9px; 
  height: 2px; 
  background: #000000; 
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle .bar:nth-child(1) { top: 11px; }
.nav-toggle .bar:nth-child(2) { top: 17px; }
.nav-toggle .bar:nth-child(3) { top: 23px; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { 
  top: 17px; 
  transform: rotate(45deg); 
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { 
  opacity: 0; 
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { 
  top: 17px; 
  transform: rotate(-45deg); 
}

/* Mobile behavior */
@media (max-width: 800px) {
  .nav-container {
    height: 80px;
  }
  
  .brand-logo {
    height: 60px;
  }
  
  .nav-toggle { 
    display: block; 
  }
  
  /* Mobile menu hidden by default */
  .menu-wrap {
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 80px;
    background: #ffffff;
    z-index: 101;
    max-height: 0; /* Hidden state */
    overflow: hidden;
    box-shadow: none;
    transition: max-height 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  
  /* When menu-open class is added, show the menu */
  .menu-wrap.menu-open { 
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .menu { 
    flex-direction: column; 
    gap: 0; 
    padding: 12px 16px;
  }
  
  .menu > li {
    border-bottom: 1px solid #e0e0e0;
  }
  
  .menu > li:last-child {
    border-bottom: none;
  }
  
  .menu a { 
    width: 100%;
    padding: 14px 10px;
    border-radius: 0;
  }
  
  /* Mobile dropdown styles */
  .sub-menu {
    position: static;
    display: block; /* VITAL: Overrides the global 'display: none' so animation works */
    border: none;
    border-left: 3px solid #005D6C;
    margin-left: 16px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 0; /* Collapsed state padding */
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 0;
    
    /* Animation props */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    opacity: 0; /* Optional: Fades in/out smoothly */
    transition: all 0.3s ease-in-out;
  }
  
  /* The class toggled by our JavaScript */
  .menu-item-has-children.show-submenu .sub-menu {
    max-height: 1000px; /* Large number to allow expansion */
    padding: 8px 0;
    opacity: 1;
  }
  
  .sub-menu a {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .sub-menu li {
    border-bottom: 1px solid #e0e0e0;
  }
  
  .sub-menu li:last-child {
    border-bottom: none;
  }
  
  /* Adjust arrow for mobile */
  .menu-item-has-children > a::after {
    float: right;
    transition: transform 0.3s ease;
  }
  
  .menu-item-has-children.show-submenu > a::after {
    transform: rotate(180deg);
  }
}

/* Content sections */
.hero {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

@media(max-width:900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.card {
  background: linear-gradient(180deg,#005D6C, #005D6C);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 20px #005D6C;
}

.card h1 {
  margin: 0 0 10px;
  font-size: 32px;
  color: #ffffff;
}

.card p {
  color: #ffffff;
  margin: 0 0 20px;
}

.btn {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  opacity: .95;
  text-decoration: none;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
}

.hero-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 25px;
}

/* Three images layout */
.three-images-layout h1 {
  text-align: center;
  margin-bottom: 30px;
}

.three-images {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.three-images .image-box {
  flex: 1 1 30%;
  max-width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.three-images .image-box img {
  width: 75%;
  height: auto;
  object-fit: cover;
}

@media(max-width: 800px) {
  .three-images .image-box {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: #005D6C;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 26px 26px;
}

@media(max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .footer-right {
    text-align: left !important;
  }
}

.footer-left .footer-title {
  color: #ffffff;
  font-weight: 800;
  margin: 0 0 6px;
}

.footer-left address {
  font-style: normal;
  color: #ffffff;
  white-space: pre-line;
}

.footer-right {
  text-align: right;
  color: #ffffff;
}

.smallprint {
  border-top: 1px solid var(--border);
  color: #ffffff;
  padding: 12px 12px;
  font-size: 12px;
  opacity: .9;
}

/* Content pages */
.page-wrap {
  padding: 18px 20px;
}

.page-wrap h1 {
  margin-top: 0;
}

/* Utility */
.hidden {
  display: none;
}

.grecaptcha-badge { visibility: hidden; }