/* ShiftGlance - Elegant Classic CSS: style.css */

/* ========== CSS RESET / NORMALIZE ========== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F4F7FA;
  color: #1B2536;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; border: 0; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* ========== ROOT CUSTOM PROPERTIES ========== */
:root {
  --color-primary: #1B2536;
  --color-secondary: #00A782;
  --color-accent: #F4F7FA;
  --color-muted: #ECECEC;
  --color-text: #1B2536;
  --color-headline: #22243d;
  --color-border: #d8dadf;
  --color-card-bg: #fff;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;

  --shadow-elevate: 0 2px 12px 0 rgba(40,30,58,0.07);
  --shadow-card: 0 4px 16px rgba(40,30,58,0.10);
  --radius-main: 12px;
  --radius-btn: 28px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5 {
  color: var(--color-headline);
  font-family: var(--font-display);
  font-weight: 700;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.14;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
  padding-left: 0;
}
strong, b {
  font-weight: 600;
}

/* ========== CONTAINERS & SECTIONS ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:not(.hero):not(:last-of-type) {
  border-bottom: 1px solid var(--color-border);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  min-width: 240px;
  flex: 1 1 260px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-elevate);
  padding: 20px 28px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
  max-width: 620px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.feature-grid > li, .feature-grid > div {
  background: var(--color-card-bg);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-elevate);
  padding: 25px 20px;
  flex: 1 1 220px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
}
@media (max-width: 800px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > li, .feature-grid > div {
    flex: 1 1 100%;
    min-width: unset;
  }
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 768px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    padding: 20px 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(120deg, #F4F7FA 65%, #e6ebe7 100%);
  padding: 56px 0 36px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}
.hero h1 {
  font-size: 2.3rem;
}
.hero p {
  font-size: 1.22rem;
  color: #43495c;
  line-height: 1.6;
  max-width: 600px;
}
@media (max-width: 600px) {
  .hero {
    padding: 40px 0 24px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}

/* ========== BUTTONS & LINKS ========== */
.cta, .primary-cta {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.03);
  border: none;
  transition: background 0.16s, box-shadow 0.23s, color 0.16s;
  margin-top: 8px;
}
.cta:hover, .primary-cta:hover, .cookie-btn:hover {
  background: #016454;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(0,167,130,0.12);
}
.cta:focus, .primary-cta:focus, .cookie-btn:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.secondary-btn {
  background: #fff;
  color: var(--color-primary);
  padding: 10px 28px;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  margin-top: 5px;
  transition: border 0.15s, color 0.15s;
}
.secondary-btn:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Links in nav */
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-headline);
  margin: 0 10px;
  padding: 7px 0;
  border-radius: 2px;
  transition: color 0.17s, background 0.17s;
  display: inline-block;
}
nav a:hover, .mobile-nav a:hover {
  color: var(--color-secondary);
  background: #e8f7f1;
}
nav .primary-cta {
  margin-left: 14px;
  font-size: 1rem;
  padding: 9px 24px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 10px 0 rgba(0,0,0,0.02);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1020px) {
  header nav {
    gap: 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 890px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    font-size: 2.3rem;
    color: var(--color-primary);
    background: none;
    border: none;
    margin-left: 14px;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.14s;
    z-index: 1002;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #f4f7fa;
    outline: 2px solid var(--color-secondary);
    outline-offset: 1px;
  }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 32px rgba(20,30,44,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.62,.05,.12,1.08);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.4rem;
  font-weight: 400;
  cursor: pointer;
  z-index: 1003;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ecf9f4;
  color: var(--color-secondary);
  outline: 2px solid var(--color-secondary);
}
.mobile-nav {
  margin-top: 65px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0 30px;
}
.mobile-nav a {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.22rem;
  color: var(--color-primary);
  padding: 16px 0 9px 4px;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  transition: background 0.14s, color 0.14s;
  margin-left: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  background: #e9fcee;
}

@media (min-width: 891px) {
  .mobile-menu {
    display: none;  /* Only needed for safety */
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ========== BLOG/ARTICLE LISTS ========== */
.blog-list, .service-list, .benefit-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}

.blog-list li, .service-list li {
  background: var(--color-card-bg);
  box-shadow: var(--shadow-elevate);
  border-radius: var(--radius-main);
  padding: 22px 20px 16px 19px;
  transition: box-shadow 0.22s;
  margin-bottom: 6px;
}
.blog-list li:hover, .service-list li:hover {
  box-shadow: 0 7px 22px 0 rgba(30,34,60,0.12);
}

.benefit-grid li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 0;
}
.benefit-grid li:before {
  content: "•";
  position: absolute;
  left: 10px;
  color: var(--color-secondary);
  font-size: 1.2em;
  top: 3px;
}

/* ========== FOOTER ========== */
footer {
  background: #1B2536;
  color: #fff;
  margin-top: 70px;
  padding: 40px 0 22px 0;
  font-size: 1rem;
}
footer p {
  color: white;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer nav a {
  color: #e0e3e9;
  font-size: 1rem;
  margin: 0;
  padding: 4px 2px;
  border-radius: 3px;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover {
  color: var(--color-secondary);
  background: #16202e;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 10px;
}
@media (max-width: 960px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-contact {
    margin-top: 12px;
  }
}

/* ========== CARDS & TESTIMONIALS ========== */
.card {
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-elevate);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.17s;
  margin-bottom: 20px;
}
.card:hover {
  box-shadow: 0 7px 24px 0 rgba(30,34,60,0.12);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-primary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 4px;
}
.testimonial-card strong {
  display: block;
  color: var(--color-secondary);
  margin-bottom: 2px;
}
.testimonial-card span {
  color: #f3be40;
  letter-spacing: 2px;
  margin-left: 6px;
  font-size: 1.08em;
}
@media (max-width: 500px) {
  .testimonial-card {
    max-width: 100%;
    padding: 10px 8px 17px 12px;
  }
}

/* ========== LISTS ========== */
ul, ol {
  padding-left: 24px;
}
dt, dd {
  font-family: var(--font-body);
  font-size: 1rem;
}
.section ul li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 6px;
}
.section ul li:before {
  content: '';
  display: none;
}
.section ul li strong {
  color: var(--color-secondary);
}

/* ========== MAP & ICON BLOCKS ========== */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--color-muted);
  border-radius: var(--radius-main);
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
  font-family: var(--font-body);
  color: var(--color-primary);
}
.map-placeholder img {
  width: 34px;
  height: 34px;
}

/* ========== MISC EFFECTS & MICRO-ANIMATIONS ========== */
.card, .testimonial-card, .feature-grid > li, .feature-grid > div, .blog-list li, .service-list li {
  transition: box-shadow 0.22s, transform 0.20s;
}
.card:hover, .feature-grid > li:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(30,34,60,0.16);
  transform: translateY(-6px) scale(1.03);
}
.cta, .primary-cta, .secondary-btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.22s, transform 0.20s;
}
.cta:hover, .primary-cta:hover, .cookie-btn:hover {
  transform: translateY(-1px) scale(1.02);
}

/* ========== RESPONSIVE QUERIES ========== */
@media (max-width: 640px) {
  .container {
    padding: 0 8px;
    max-width: 100%;
  }
  .section {
    padding: 28px 4px;
  }
  header .container {
    padding: 0 7px;
  }
  .hero .content-wrapper {
    gap: 10px;
  }
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: #fff;
  border-top: 1px solid #d8dadf;
  box-shadow: 0 -2px 22px 0 rgba(30,34,60,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieSlideIn 0.6s;
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner p {
  color: var(--color-primary);
  margin: 0 18px 0 0;
  max-width: 510px;
}
.cookie-banner .cookie-btn {
  margin-right: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 25px;
  border-radius: var(--radius-btn);
  background: var(--color-secondary);
  color: #fff;
  border: none;
  transition: background 0.17s;
}
.cookie-banner .cookie-btn.secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  margin-right: 9px;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: #e3faf2;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 10px 17px 13px;
    gap: 18px;
  }
  .cookie-banner p {
    margin: 0 0 8px 0;
    max-width: 100%;
  }
}

/* COOKIE MODAL (hidden by default, .open is visible) */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: rgba(22,36,46,0.57);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-preference-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 7px 32px 0 rgba(30,34,60,0.20);
  max-width: 410px;
  width: 94vw;
  padding: 36px 28px 24px 28px;
  position: relative;
  animation: cookiePop 0.19s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes cookiePop {
  from {transform: scale(0.9); opacity:0;}
  to   {transform: scale(1); opacity:1;}
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 13px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.14s;
  padding: 3px 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e4f7f0;
  color: var(--color-secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-toggle {
  width: 38px;
  height: 24px;
  background: #e7eaea;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.17s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.14s;
  box-shadow: 0 2px 5px 0 rgba(30,34,60,0.10);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 17px;
  background: var(--color-secondary);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #cfcfcf;
}
.cookie-category label {
  flex: 1 1 auto;
  color: var(--color-text);
  font-weight: 500;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  flex-wrap: wrap;

}
.cookie-modal-actions .cookie-btn {
  font-size: 1.04rem;
  padding: 10px 24px;
}

/* ========== PRINT (optional) ========== */
@media print {
  .mobile-menu,.mobile-menu-toggle,.cookie-banner,.cookie-modal,script { display:none!important;}
  nav a, .primary-cta, .cta { color: #222!important; text-decoration: underline!important; background: none!important; }
  body { background: #fff!important; }
}

/* ==== END ==== */