/* 
 * OV Property Solutions Design System
 * Pure CSS3 - No frameworks 
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --color-primary: #1B3A4B;       /* Deep navy */
  --color-secondary: #F4A261;     /* Warm amber */
  --color-secondary-hover: #e09459; 
  --color-accent: #2A9D8F;        /* Teal */
  --color-bg: #FAFAFA;            /* Off-white */
  --color-surface: #FFFFFF;       /* White cards/sections */
  --color-text-main: #1A1A1A;     /* Primary text */
  --color-text-muted: #555555;    /* Secondary text */
  --color-text-inverse: #FFFFFF;  /* Text on dark */
  --color-border: #E0E0E0;
  --color-success: #2A9D8F;
  --color-error: #E63946;

  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing & Sizes */
  --container-max: 1200px;
  --padding-section-desktop: 80px;
  --padding-section-mobile: 48px;
  --gap: 24px;
  --radius: 12px;
  --radius-btn: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-header: 0 4px 12px rgba(0,0,0,0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-weight: 400;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.7;
  font-size: 1.125rem; /* 18px */
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 1.5em; }
h3 { font-size: 1.5rem; margin-top: 1em; }
p { margin-bottom: 1rem; }
small, .text-small { font-size: 0.875rem; color: var(--color-text-muted); }

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--padding-section-desktop) 0;
  background-color: var(--color-bg);
}

.section.alt {
  background-color: var(--color-surface);
}

.section.dark {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.section.dark h2, .section.dark h3, .section.dark p {
  color: var(--color-text-inverse);
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text-main);
}
.btn-primary:hover {
  background-color: var(--color-secondary-hover);
  color: var(--color-text-main);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-white {
  background-color: var(--color-surface);
  color: var(--color-primary);
}
.btn-white:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-surface);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 1rem;
}

/* Dropdowns */
.nav-item-dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 12px 0;
  min-width: 240px;
  z-index: 10;
}
.nav-item-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 8px 24px;
  color: var(--color-text-main);
  font-size: 0.95rem;
}
.dropdown-menu a:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta .btn {
  padding: 12px 20px;
  white-space: nowrap;
}

.header-phone {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.7875rem; /* Reduced by 30% from base 1.125rem */
  white-space: nowrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(27, 58, 75, 0.7); /* Navy overlay */
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-text-inverse);
  max-width: 800px;
}
.hero-content h1 {
  color: var(--color-text-inverse);
}
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-phone {
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ==========================================================================
   Trust Badge Bar
   ========================================================================== */
.trust-bar {
  background-color: #EFEFEF;
  padding: 16px 0;
  overflow-x: auto;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-width: max-content;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}

/* ==========================================================================
   Cards & Layouts
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
}
.package-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.package-link {
  font-weight: 700;
  margin-top: 16px;
  display: inline-block;
  text-decoration: none;
}
.package-link:hover {
  text-decoration: underline;
}
.timeline-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 16px !important;
  display: flex !important;
  align-items: center;
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card h3 {
  margin-top: 0;
}
.card p {
  flex-grow: 1;
  color: var(--color-text-muted);
}
.card-link {
  font-weight: 700;
  margin-top: 16px;
  display: inline-block;
}

/* ==========================================================================
   Placeholder Images
   ========================================================================== */
.placeholder-image {
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
  transition: border-color 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}
textarea.form-control {
  resize: vertical;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"]::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  padding: 16px 0;
  background-color: var(--color-bg);
  font-size: 0.875rem;
}
.breadcrumbs a {
  color: var(--color-text-muted);
}
.breadcrumbs .separator {
  margin: 0 8px;
  color: var(--color-border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--color-text-inverse);
  font-size: 1.125rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--color-secondary);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.75rem; }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; } /* 30px */
  h2 { font-size: 1.5rem; }   /* 24px */
  h3 { font-size: 1.25rem; }  /* 20px */
  
  .section { padding: var(--padding-section-mobile) 0; }
  .grid-cards { grid-template-columns: 1fr; }
  .package-cards { grid-template-columns: 1fr; }
  
  /* Mobile Menu */
  .mobile-menu-toggle { display: block; }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.active {
    transform: translateX(0);
  }
  
  .header-cta { display: none; } /* Hide in header, maybe show in menu */
  
  .nav-item-dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    display: none; /* Can be toggled by JS on mobile or always show sub-items */
    box-shadow: none;
    border-radius: 0;
    padding-left: 16px;
    background-color: transparent;
  }
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .trust-inner { justify-content: flex-start; }
}

/* ==========================================================================
   Blog & Layout
   ========================================================================== */
.post-content {
  max-width: 800px;
  margin: 0 auto;
}
.post-content p {
  margin-bottom: 24px;
}
.post-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}
.post-card {
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.post-card h3 {
  margin-top: 0;
}

/* Visibility Helpers */
@media (min-width: 993px) {
  .hidden-desktop { display: none !important; }
}
@media (max-width: 992px) {
  .hidden-mobile { display: none !important; }
}