/*
Theme Name: Lifetime Roofers
Theme URI: https://example.com/lifetime-roofers
Author: Lifetime Roofers
Author URI: https://example.com
Description: Roofing & construction theme for Lifetime Roofers (St. Elizabeth, Jamaica). Yellow-and-white brand on the Industry design system; page-builder friendly (Gutenberg / Elementor / Bricks).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lifetime-roofers
*/


/* Lifetime Roofers — tropical theme layer (rides on the Industry design-system tokens) */
.trop {
  container-type: inline-size;
  --color-bg: #ffffff; --color-surface: #faf7ee;
  --ink: #1c1c1a;
  --color-accent: #f5b301; --color-accent-100: #fef6dc; --color-accent-200: #fce8a6;
  --color-accent-300: #f9d766; --color-accent-400: #f7c62e; --color-accent-500: #f5b301;
  --color-accent-600: #d99a00; --color-accent-700: #9a6f00; --color-accent-800: #2a2a27; --color-accent-900: #1c1c1a;
  --sun: #f5b301; --coral: #f5b301; --coral-d: #d99a00;
  background: var(--color-bg); color: var(--color-text); font-family: var(--font-body);
}
.trop .wrap { max-width: 1040px; margin: 0 auto; padding: 0 40px; }
.trop .sec { padding: 66px 0; }
.trop .eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-700); margin: 0 0 12px; }
.trop .navlinks { display: flex; gap: 24px; align-items: center; }
.trop .navlinks a { font-size: 14px; color: inherit; text-decoration: none; }
.trop .navlinks a:hover { color: var(--color-accent-700); }
.trop .menu-btn { display: none; cursor: pointer; }
.trop .nav-toggle-cb { display: none; }
.trop .mobile-menu { display: none; flex-direction: column; padding: 8px 20px 20px; gap: 4px; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.trop .mobile-menu a { padding: 13px 6px; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--color-divider); }
.trop .mobile-menu a:last-child { border-bottom: 0; }
.trop .mobile-menu a.btn-quote { margin-top: 10px; text-align: center; border-bottom: 0; }
.trop .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trop .g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.trop .g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.trop .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trop .heroWrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; align-items: stretch; }
.trop .h1 { font-size: 62px; line-height: 1.0; }
.trop .sectitle { font-size: 36px; margin: 0; }
.trop .heroPad { padding: 84px 48px 84px 0; }
.trop .btn-quote { background: var(--color-accent); color: var(--ink); border: 1px solid var(--color-accent); font-weight: 600; }
.trop .btn-quote:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); }
.trop .corner { display: none; }
.trop .roofclip { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
.trop .lift { transition: transform .18s ease; }
.trop .lift:hover { transform: translateY(-3px); }
.trop .fig { position: relative; overflow: hidden; }
.trop .fig image-slot, .trop .fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trop .roofclip { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); border-radius: 0 0 28px 28px; }
/* modern shapes: soften the blueprint frame into rounded cards, pills and figures */
.trop .card, .trop .blueprint, .trop figure.blueprint { border-radius: 20px; }
.trop .btn { border-radius: 999px; }
.trop .input, .trop textarea.input { border-radius: 14px; }
.trop .fig, .trop .fig img, .trop .fig image-slot { border-radius: 20px; }
.trop .tag { border-radius: 999px; }
.trop .menu-btn { border-radius: 14px; }
.trop details.faq { border-bottom: 1px solid var(--color-divider); }
/* lightbox */
.trop .lb-open { display: block; height: 100%; cursor: zoom-in; }
.trop .lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(12,12,10,.92); padding: 4vw; }
.trop .lightbox:target { display: flex; }
.trop .lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.trop .lb-back { position: absolute; inset: 0; cursor: zoom-out; }
.trop .lb-x { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 40px; line-height: 1; text-decoration: none; z-index: 2; }
.trop .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 54px; line-height: 1; text-decoration: none; padding: 8px 18px; z-index: 2; user-select: none; }
.trop .lb-prev { left: 12px; }
.trop .lb-next { right: 12px; }
.trop .lb-nav:hover, .trop .lb-x:hover { color: var(--color-accent); }
/* no colour wash on photos — show them in natural colour */
.trop .duotone::after { display: none; }
.trop details.faq > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 4px; font-family: var(--font-heading); font-weight: 600; font-size: 19px; }
.trop details.faq > summary::-webkit-details-marker { display: none; }
.trop details.faq .pm { flex: none; width: 20px; height: 20px; color: var(--color-accent); transition: transform .2s; }
.trop details.faq[open] .pm { transform: rotate(45deg); }
.trop details.faq > div { padding: 0 4px 20px; font-size: 15px; max-width: 62ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
@container (max-width: 760px) {
  .trop .wrap { padding: 0 20px; }
  .trop .sec { padding: 40px 0; }
  .trop .navlinks { display: none; }
  .trop .menu-btn { display: inline-flex; }
  .trop:has(.nav-toggle-cb:checked) .mobile-menu { display: flex; }
  .trop .g2, .trop .g3, .trop .g4, .trop .split, .trop .heroWrap { grid-template-columns: 1fr; gap: 22px; }
  .trop .h1 { font-size: 37px; }
  .trop .sectitle { font-size: 28px; }
  .trop .heroPad { padding: 40px 20px 44px; }
  .trop .hideM { display: none !important; }
  .trop .heroFig { min-height: 260px !important; }
}
/* work gallery collapses on small screens (both canvas mount and real viewport) */
@container (max-width: 760px) {
  .trop .workgrid, .trop .workgrid3 { grid-template-columns: 1fr 1fr !important; }
  .trop .workgrid figure[style*="span 2"] { grid-column: span 2 !important; grid-row: auto !important; }
}
@media (max-width: 760px) {
  .trop .workgrid, .trop .workgrid3 { grid-template-columns: 1fr 1fr !important; }
  .trop .workgrid figure[style*="span 2"] { grid-column: span 2 !important; grid-row: auto !important; }
}
/* fall back to viewport width for the same breakpoints on a real WordPress front end */
@media (max-width: 760px) {
  .trop .wrap { padding: 0 20px; }
  .trop .navlinks { display: none; }
  .trop .menu-btn { display: inline-flex; }
  .trop:has(.nav-toggle-cb:checked) .mobile-menu { display: flex; }
  .trop .g2, .trop .g3, .trop .g4, .trop .split, .trop .heroWrap { grid-template-columns: 1fr; gap: 22px; }
  .trop .h1 { font-size: 37px; }
  .trop .sectitle { font-size: 28px; }
  .trop .heroPad { padding: 40px 20px 44px; }
  .trop .hideM { display: none !important; }
  .trop .heroFig { min-height: 260px !important; }
}
