/* style.css - Loggfi Website Theme - FINAL VERSION */

/* 1. Variables & Base Styles */
:root {
  --apple-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --text-dark: #1d1d1f;
  --text-secondary: #6e6e73;
  --bg-light-gray: #f5f5f7;
  --border-color: #d2d2d7;

  /* -- Theme Color Variables -- */
  --primary-color: #FF385C; /* Airbnb-like Pink/Red */
  --primary-dark: #E01E50;  /* Darker shade for hover */
  --primary-light: #ff708d; /* Lighter tint */
  --primary-bg-tint: rgba(255, 56, 92, 0.08); /* Very light tint for backgrounds */
  --primary-header-tint-light: #ffdbe1; /* Light tint for table header */
  --primary-header-tint-medium: #ff95a6; /* Medium tint */


  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-dark);
}

body {
  font-family: var(--apple-font-family);
  color: var(--text-dark);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Utility Classes */
.bg-light-gray {
  background-color: var(--bg-light-gray);
}

/* Section Subtitle Highlight */
.section-subtitle-highlight {
    color: var(--primary-color) !important; /* Force override if needed */
    font-weight: 700 !important; /* Make it bolder */
}


/* Section Padding */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.mb-6 {
    margin-bottom: 3.5rem !important;
}
@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* 2. Navbar */
.apple-nav {
  border-bottom: 1px solid var(--border-color);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.apple-nav .navbar-brand img {
    height: 28px;
}
.apple-nav .nav-link {
  color: var(--text-dark);
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.apple-nav .nav-link:hover,
.apple-nav .nav-link.active { /* Active state can be added via JS if needed */
  color: var(--primary-color);
}
/* Navbar CTA uses general .apple-button styles now, defined below */


/* 3. Hero Section */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 992px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
   }
}
.hero-section h1 {
    font-size: calc(1.6rem + 2.2vw);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}
@media (min-width: 1200px) {
  .hero-section h1 { font-size: 3.5rem; }
}
.hero-section .lead {
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 992px) {
  .hero-section .lead { font-size: 1.25rem; }
  .text-lg-start .lead { margin-left: 0; }
}
.hero-image-placeholder img { max-width: 100%; height: auto; }


/* 4. Buttons */
.apple-button, .apple-button-outline, .apple-cta-button {
  border-radius: 100px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-width: 1px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Solid button */
.apple-button {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.apple-button:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Outline button */
.apple-button-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}
.apple-button-outline:hover {
  background-color: var(--primary-bg-tint);
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
/* Specific Hero Button Overrides */
.hero-section .apple-button-outline {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}
.hero-section .apple-button-outline:hover {
     background-color: var(--bg-light-gray);
     border-color: var(--text-dark);
     color: var(--text-dark);
}
/* Navbar CTA Button style */
 .apple-nav .apple-cta-button {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    background-color: var(--primary-color); /* Use theme color */
    border-color: var(--primary-color);
    color: #fff;
}
.apple-nav .apple-cta-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.apple-nav .apple-cta-button i {
    font-size: 0.9em;
}


/* 5. Solutions Section Icons & Cards */
.solution-icon {
  font-size: 2.5rem;
  display: inline-block;
  /* Color is set via text-success, text-danger etc in HTML */
}
.solution-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

/* 6. Forms */
.apple-input {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background-color: #fff;
}
.apple-input::placeholder { color: #a1a1a6; }
.apple-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 56, 92, 0.2); /* Use primary color tint */
  outline: none;
}
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}
.contact-form-wrapper {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 7. FAQ Accordion */
.accordion-button {
    font-weight: 500;
    color: var(--text-dark);
    background-color: #fff;
    font-size: 1rem;
}
.accordion-button:not(.collapsed) {
    background-color: #fff;
    color: var(--primary-color); /* Use theme color for open question */
    box-shadow: inset 0 -1px 0 var(--border-color);
}
.accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(255, 56, 92, 0.2);
    border-color: transparent;
    z-index: 3;
}
.accordion-button::after { transition: transform 0.2s ease-in-out; }
.accordion-button:not(.collapsed)::after { transform: rotate(-180deg); }
.accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
}
#faq .accordion-item { background-color: #fff; } /* Ensure white background inside light gray FAQ section */
.accordion-item:first-of-type {
    border-top: 1px solid var(--border-color);
    border-top-left-radius: 0; border-top-right-radius: 0;
}
.accordion-item:last-of-type {
     border-bottom-left-radius: 0; border-bottom-right-radius: 0;
     border-bottom: none;
}
.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.accordion-body {
    font-size: 0.95rem;
    padding: 1.25rem 1.25rem;
     background-color: #fff; /* Keep white background */
}

/* 8. Footer */
footer { border-top: 1px solid #3a3a3c; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
footer .small { font-size: 0.85rem; line-height: 1.5; }
.footer-social-icon { color: var(--text-secondary); font-size: 1.2rem; transition: color 0.2s ease; }
.footer-social-icon:hover { color: #fff; }

/* 9. Customer Logos (Static styles) */
.customer-logo {
    max-height: 45px; width: auto; filter: grayscale(100%); opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease; vertical-align: middle;
}
.customer-logo:hover { filter: grayscale(0%); opacity: 1; }

/* 10. Responsive Adjustments */
@media (max-width: 991.98px) {
    .py-6 { padding-top: 4rem; padding-bottom: 4rem; }
     .apple-nav .navbar-nav { margin-top: 1rem; text-align: center; }
     .apple-nav .ms-auto { margin-left: auto !important; margin-right: auto !important; margin-top: 1rem; }
     .contact-section .col-lg-7, .contact-section .col-lg-5 { text-align: center !important; }
      .contact-section .whatsapp-button { margin-left: auto; margin-right: auto; }
}
@media (max-width: 767.98px) {
     .hero-section h1 { font-size: calc(1.4rem + 2vw); }
     .hero-section .lead { font-size: 1rem; }
     .display-5 { font-size: 1.8rem; }
     .display-6 { font-size: 1.6rem; }
     .solution-icon { font-size: 2rem; }
     .apple-button, .apple-button-outline { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
     .footer-links li span { word-break: break-word; }
     .text-center.text-lg-start { text-align: center !important; }
      .tech-tabs .nav-link, .product-tabs .nav-link { padding: 0.6rem 0.8rem; font-size: 0.85rem; }
}


/* 11. Logo Marquee Section Specific Styles */
.logo-marquee-wrapper {
    width: 100%; overflow: hidden; position: relative; padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}
.logo-marquee-track {
    flex-shrink: 0; min-width: fit-content; white-space: nowrap;
    animation-name: marquee-scroll; animation-duration: 60s; animation-timing-function: linear;
    animation-iteration-count: infinite; will-change: transform;
    -webkit-animation-name: marquee-scroll; -webkit-animation-duration: 60s;
    -webkit-animation-timing-function: linear; -webkit-animation-iteration-count: infinite;
}
.logo-marquee-wrapper:hover .logo-marquee-track { animation-play-state: paused; -webkit-animation-play-state: paused; }
.logo-item { display: inline-block; flex-shrink: 0; }
@keyframes marquee-scroll { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
@-webkit-keyframes marquee-scroll { 0% { -webkit-transform: translateX(0%); } 100% { -webkit-transform: translateX(-50%); } }


/* 12. Tech/Innovation Tabs Section */
.tech-tabs { border-bottom: 1px solid var(--border-color); }
.tech-tabs .nav-item { margin-bottom: -1px; }
.tech-tabs .nav-link {
    border: 1px solid transparent; border-bottom: none; background-color: transparent;
    color: var(--text-secondary); margin: 0 0.5rem; padding: 0.8rem 1.5rem; font-weight: 500;
    border-top-left-radius: 8px; border-top-right-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex; align-items: center; white-space: nowrap;
}
.tech-tabs .nav-link i { margin-right: 0.5rem; font-size: 1.1em; }
.tech-tabs .nav-link:hover { color: var(--text-dark); background-color: var(--bg-light-gray); border-color: var(--border-color); }
.tech-tabs .nav-link.active { /* Use Theme color for active tech tab */
    background-color: var(--primary-color); color: #fff; font-weight: 600;
    border-color: var(--primary-color); border-bottom-color: var(--primary-color);
    position: relative; z-index: 1; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.tech-tab-content { padding-top: 2.5rem; }
@media (max-width: 767.98px) {
    .tech-tabs { justify-content: flex-start !important; flex-wrap: wrap; }
    .tech-tabs .nav-link { margin-bottom: 0.5rem; }
    .tech-tab-content { padding-top: 1.5rem; }
}


/* 13. Product Details Tabs Section */
.product-tabs { border-bottom: 1px solid var(--border-color); }
.product-tabs .nav-item { margin-bottom: -1px; }
.product-tabs .nav-link {
    border: 1px solid transparent; border-bottom: none; background-color: transparent;
    color: var(--text-secondary); margin: 0 0.25rem; padding: 0.8rem 1.5rem; font-weight: 500;
    border-top-left-radius: 8px; border-top-right-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex; align-items: center; white-space: nowrap;
}
.product-tabs .nav-link i { margin-right: 0.5rem; font-size: 1.1em; }
.product-tabs .nav-link:hover { color: var(--text-dark); background-color: var(--bg-light-gray); border-color: var(--border-color); }
.product-tabs .nav-link.active { /* Active product tab uses theme color text */
    background-color: var(--bg-light-gray); color: var(--primary-color); font-weight: 600;
    border-color: var(--border-color); border-bottom-color: var(--bg-light-gray);
    position: relative; z-index: 1;
}
.product-tab-content {
    padding: 2.5rem 1.5rem; background-color: var(--bg-light-gray);
    border: 1px solid var(--border-color); border-top: none;
    border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
}
.product-image { max-width: 300px; margin-left: auto; margin-right: auto; }
.feature-list li { margin-bottom: 0.6rem; display: flex; align-items: flex-start; font-size: 0.95rem; }
.feature-list i { /* Apply theme color to product feature icons */
    margin-right: 0.75rem; margin-top: 0.15rem; width: 1.2em;
    flex-shrink: 0; color: var(--primary-color);
}
.spec-list dt { font-weight: 600; color: var(--text-dark); float: left; clear: left; width: 120px; margin-bottom: 0.5rem; font-size: 0.9rem; }
.spec-list dd { margin-left: 130px; color: var(--text-secondary); margin-bottom: 0.5rem; font-size: 0.9rem; }
@media (max-width: 767.98px) {
    .product-tabs { justify-content: flex-start !important; flex-wrap: wrap; }
     .product-tabs .nav-link { margin-bottom: 0.5rem; }
     .spec-list dt { width: 100px; } .spec-list dd { margin-left: 110px; }
    .product-tab-content { padding: 1.5rem 1rem; }
}

/* 14. Comparison Table Section */
#logger-comparison .table-responsive { border-radius: 8px; overflow: hidden; margin-top: 1rem; border: 1px solid var(--border-color); }
.comparison-table { border-collapse: collapse; width: 100%; margin-bottom: 0; font-size: 0.9rem; color: var(--text-secondary); border: none; }
.comparison-table thead th {
    color: var(--text-dark); font-weight: 600; padding: 1rem 0.75rem; text-align: center; vertical-align: middle;
    border: 1px solid var(--border-color); border-width: 0 1px 2px 1px; background-color: #e9ecef;
}
.comparison-table thead th:first-child { background-color: #fff; text-align: left; border-left: none; }
/* Reversed theme colors for comparison headers */
.comparison-table thead th:nth-child(2) { background-color: var(--primary-color); color: #fff; } /* GSM - Now Primary */
.comparison-table thead th:nth-child(3) { background-color: var(--primary-header-tint-medium); color: var(--text-dark); } /* WiFi */
.comparison-table thead th:nth-child(4) { background-color: var(--primary-light); color: #fff; } /* Bluetooth */
.comparison-table thead th:nth-child(5) { background-color: var(--primary-header-tint-light); color: var(--text-dark); border-right: none; } /* USB - Now Light Tint */

.comparison-table tbody th[scope="row"] {
    background-color: #f8f9fa; font-weight: 500; color: var(--text-dark); text-align: left;
    padding: 0.75rem 1rem; vertical-align: top; border: 1px solid var(--border-color); border-left: none;
}
.comparison-table tbody td {
    padding: 0.75rem; vertical-align: top; text-align: center; border: 1px solid var(--border-color); line-height: 1.5;
}
.comparison-table tbody td:last-child { border-right: none; }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table tbody td:nth-child(2), /* GSM Column Data */
.comparison-table tbody td:nth-child(3) { /* WiFi Column Data */ background-color: var(--primary-bg-tint); } /* Use primary bg tint */
.comparison-table tbody th[scope="row"] { background-color: #f8f9fa !important; } /* Keep row header bg consistent */

.comparison-table tbody td:nth-child(2),
.comparison-table tbody td:nth-child(3) { font-weight: 600; }

.text-yes { color: #198754; font-weight: 700; }

.comparison-table tbody tr:hover td,
.comparison-table tbody tr:hover th[scope="row"] { background-color: #e9f5ff; }
.comparison-table tbody tr:hover td:nth-child(1), .comparison-table tbody tr:hover td:nth-child(4), .comparison-table tbody tr:hover td:nth-child(5) { background-color: var(--bg-light-gray); }
.comparison-table tbody tr:hover th[scope="row"] { background-color: #e2e6ea !important; }

.comparison-table td br { display: block; content: ""; margin-top: 0.3rem; }


/* 15. Features Section (New UI Style) */
.feature-block-card {
    background-color: #fff; border-radius: 16px; padding: 2rem 1.5rem; text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.feature-block-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08); }
.feature-block-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; } /* Use theme color */
.feature-block-card h3 { color: var(--text-dark); }
.feature-block-card p { line-height: 1.5; }

.feature-list-item { margin-bottom: 1.5rem; }
.feature-list-icon { /* Apply theme color */
    font-size: 1.5rem; margin-right: 1rem; flex-shrink: 0; margin-top: 0.1rem;
    width: 1.5em; text-align: center; color: var(--primary-color);
}
.feature-list-item h5 { color: var(--text-dark); margin-bottom: 0.25rem !important; }

/* Section 16: Contact Section */
.contact-section {
    background-color: var(--primary-color); /* Theme background */
    color: #fff;
}
.contact-section h2, .contact-section p.lead { color: #fff; }
.contact-section .contact-form-wrapper .form-label { color: var(--text-secondary); } /* Labels on white form bg */

.whatsapp-button {
    display: inline-flex; align-items: center; background-color: #25D366; color: white;
    padding: 0.8rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 600;
    font-size: 0.95rem; transition: background-color 0.2s ease, transform 0.2s ease;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.whatsapp-button i { font-size: 1.2em; margin-right: 0.5rem; }
.whatsapp-button:hover { background-color: #128C7E; color: white; text-decoration: none; transform: translateY(-2px);}

/* 17. Blog Listing Page Styles */

.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px; /* Slightly less rounded than feature blocks maybe */
  border: 1px solid var(--border-color); /* Add subtle border */
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; /* Use !important to override .shadow-sm if needed */
}

.blog-card-link {
  display: block; /* Ensure link covers image area */
  text-decoration: none;
}

.blog-card-image {
  aspect-ratio: 16 / 9; /* Maintain a consistent aspect ratio */
  object-fit: cover; /* Cover the area without distortion */
  border-top-left-radius: 12px; /* Match card radius */
  border-top-right-radius: 12px;
  /* Remove bottom radius as card body is below */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.blog-card .card-body {
  padding: 1.25rem; /* Adjust padding */
}

.blog-card-title-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title-link:hover {
  color: var(--primary-color); /* Use theme color on hover */
  text-decoration: underline;
}

/* Ensure Bootstrap's stretched-link works correctly with card structure */
.blog-card .card-title a.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
  border-radius: 12px; /* Match card radius */
}
/* 18. Blog Post Feature Grid Styles */

.feature-list-item-boxed {
  /* Inherits display: flex, align-items: baseline from general feature-list rules */
  background-color: #fff; /* White background for contrast */
  padding: 1.25rem; /* Padding inside the box */
  border-radius: 8px; /* Rounded corners */
  border: 1px solid var(--border-color); /* Subtle border */
  height: 100%; /* Make boxes in the same row equal height */
  margin-bottom: 0; /* Remove margin from item itself, rely on grid gap */
}

/* Ensure icon style is consistent */
.feature-list-item-boxed .feature-list-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem; /* Adjust if baseline looks off */
  width: 1.5em;
  text-align: center;
}

/* Ensure heading style is consistent */
.feature-list-item-boxed h3 { /* Targeting h3 used in new layout */
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem !important;
  font-size: 1rem; /* Consistent title size */
}

/* Ensure description style is consistent */
.feature-list-item-boxed p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0 !important;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Optional: Add disclaimer text to comply with Google's terms */
.recaptcha-disclaimer {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: left;
}