/* ============================================================
   Silvature Design System
   Author: Silvature Consulting
   Version: 1.0
   ============================================================ */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --primary: #c7b299;
  --accent: #5b89b2;
  --orange: #cc7a00;
  --dark: #16191d;
  --light: #f8f9fb;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --bg: var(--light);
  --text: var(--dark);
}

body.dark {
  --bg: #121416;
  --text: #f1f2f4;
  --primary: #d7c2a9;
  --accent: #8bb1d3;
  --orange: #ff8c1a;
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background-color 0.5s ease, color 0.5s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- HEADER ---------- */
header {
  background: linear-gradient(90deg, var(--dark), #2a3139, var(--dark));
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  color: var(--light);
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.6s ease;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

nav a {
  color: var(--orange);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.superscript-mark {
    font-size: 0.4em;         /* much smaller */
    color: white;             /* ivory white color */
    vertical-align: super;    /* keep as superscript */
}

.circled-mark {
    font-size: 0.3em;           /* smaller size */
    color: ivory;               /* ivory white text */
    background-color: transparent; /* or a subtle background */
    border: 1px solid ivory;   /* circle border color */
	border-radius: 50%;        /* makes it round */    
    padding: 2px 2px;          /* spacing inside circle */
    vertical-align: super;     /* keep superscript position */
    display: inline-block;     /* needed for padding and circle */
    line-height: 1;            /* tighten height */
}

.login-btn {
  border: 1px solid var(--orange);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  color: var(--orange);
  background: transparent;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover {
  background: var(--orange);
  color: var(--dark);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg);
  color: var(--primary);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 25, 29, 0.75);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 10%;
}

/* Zoom effect on hero background on hover or load (small scale) */
.hero:hover,
.hero.zoomed {
  transform: scale(1.05);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: #dfe4ea;
}

/* ---------- ABOUT TODO -jb ---------- */
.silvature-about {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1551836022-4c4c79ecde18'); /* Professional consulting theme */
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: black;
}

/* Overlay to ensure text readability */
.silvature-about::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  /* background: rgba(255, 255, 240, 0.85);  ivory translucent overlay */
  /* backdrop-filter: blur(2px); */
  /* z-index: 1; */
}

.silvature-about-content {
  position: relative;
  z-index: 2; 
  padding: 0 10%;
}

/* Subtle zoom hover effect 
.about:hover,
.about.zoomed {
  transform: scale(1.05);
  transition: transform 0.6s ease;
}
*/

/* Headings and paragraph styling */
.silvature-about h2 {
  color: #000000;
  font-family: 'Georgia', serif;
  font-weight: bold;
}

.silvature-about p {
  font-size: 1.2rem;
  color: #000000;
  font-family: 'Helvetica', Arial, sans-serif;
  line-height: 1.6;
}


/* ---------- GENERIC SECTIONS ---------- */
section {
  padding: 5rem 10%;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.05rem;
}

/* ---------- ABOUT ---------- */
.about {
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- SECTORS GRID ---------- */
.sectors {
  text-align: center;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.sector {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

body.dark .sector {
  background: #1d1f23;
  color: #f1f2f4;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.05);
}

.sector:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sector h3 {
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

/* ---------- CASE STUDIES ---------- */
.case-studies {
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .card {
  background: #1d1f23;
  color: #f1f2f4;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card strong {
  color: var(--orange);
}

/* ---------- CONTACT ---------- */
.contact {
  text-align: center;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: white;
  transition: border-color 0.3s;
}

body.dark input, body.dark textarea {
  background: #1d1f23;
  border-color: #555;
  color: #f1f2f4;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}

button[type="submit"] {
  background: var(--orange);
  color: var(--dark);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: var(--primary);
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  background: var(--dark);
  color: #cfcfcf;
  padding: 2.5rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--primary);
}


.ai-lead-footer-text {
  color: #cc7a00;
 }

/* ---------- TEXT RANDOMIZER EVERY 3 SECS ---------- */

  .random-text {
    position: relative;
    height: 1.5em;
    overflow: hidden;
  }

  .random-text p {
    position: absolute;
    width: 100%;
    opacity: 0;
    /* animation: cycle 6s infinite; */
	animation: fadeIn 9s ease-in-out infinite;
  }

  .random-text p:nth-child(1) {
    animation-delay: 0s;
  }

  .random-text p:nth-child(2) {
    animation-delay: 6s;
  }

  @keyframes cycle {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
  }
   @keyframes fadeIn {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
  }
  

/* ---------- TEXT RANDOMIZER WITH FADE EFFECT ---------- */
  .fade-container {
    position: relative;
    height: 1.5em;
    overflow: hidden;
  }

  .fade-container p {
    position: absolute;
    width: 100%;
    opacity: 0;
    animation: fadeIn 6s ease-in-out infinite;
  }

  .fade-container p:nth-child(1) {
    animation-delay: 0s;
  }

  .fade-container p:nth-child(2) {
    animation-delay: 6s;
  }

 
/* --- Founding Principles Section Divider --- */
.section-divider {
  width: 80px;
  height: 2px;
  margin: 2rem auto 0;
  background-color: #fff;
  opacity: 0.6;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}

/* Make sure it adapts for light mode */
body.light-mode .section-divider {
  background-color: #333;
  opacity: 0.3;
}

.section-divider-branded {
  width: 100px;
  height: 3px;
  margin: 2rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #c06c2b, #ffffff);
  opacity: 0.8;
  transition: opacity 0.3s ease, background 0.3s ease;
}

/* Light mode adaptation */
body.light-mode .section-divider-branded {
  background: linear-gradient(90deg, #c06c2b, #333333);
  opacity: 0.7;
}

/* -- Elegant Colonial Line : Evokes the look of a quill flourish or document underline — strong center, tapered ends --  */
.section-divider-heritage {
  width: 140px;
  height: 1px;
  margin: 2rem auto 0;
  background: linear-gradient(to right, transparent, #c06c2b 40%, #c06c2b 60%, transparent);
  opacity: 0.9;
  position: relative;
}

.section-divider-heritage::before,
.section-divider-heritage::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 6px;
  height: 6px;
  border: 1px solid #c06c2b;
  border-radius: 50%;
}

.section-divider-heritage::before {
  left: -12px;
}

.section-divider-heritage::after {
  right: -12px;
}

/* Light mode adaptation */
body.light-mode .section-divider-heritage {
  background: linear-gradient(to right, transparent, #7a3e17 40%, #7a3e17 60%, transparent);
}

body.light-mode .section-divider-heritage::before,
body.light-mode .section-divider-heritage::after {
  border-color: #7a3e17;
}

/* -- Quill-Inspired Double Rule : A more “printed document” style — two fine parallel lines separated slightly. -- */

.section-divider-double {
  width: 180px;
  height: 3px;
  margin: 2rem auto 0;
  background: repeating-linear-gradient(
    to bottom,
    #c06c2b,
    #c06c2b 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.8;
}

/* Light mode */
body.light-mode .section-divider-double {
  background: repeating-linear-gradient(
    to bottom,
    #7a3e17,
    #7a3e17 1px,
    transparent 1px,
    transparent 2px
  );
}



/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 0.8rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}



/* ---------- ALT STYLES ---------- */




    .case-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 4rem auto;
      padding: 0 2rem;
    }

    .case-card {
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
      opacity: 1;
    }

    .case-card.hidden {
      display: none;
      opacity: 0;
      transform: translateY(30px);
    }

    .case-card.show {
      display: block;
      animation: fadeSlideUp 0.6s ease forwards;
    }

    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .case-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }

    .case-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .case-content {
      padding: 1.5rem;
    }

    .case-tag {
      display: inline-block;
      background: #fff7f0;
      color: #c06c2b;
      border: 1px solid #f0d2b0;
      border-radius: 50px;
      padding: 0.3rem 0.9rem;
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 0.8rem;
    }

    .case-content h3 {
      margin: 0.3rem 0 0.8rem;
      font-size: 1.2rem;
      color: #111;
    }

    .case-content a {
      color: #c06c2b;
      font-weight: 600;
      text-decoration: none;
    }

    .case-content a:hover {
      text-decoration: underline;
    }

    .load-more {
      text-align: center;
      margin-top: 2rem;
    }

    .load-more button {
      background: #c06c2b;
      color: #fff;
      border: none;
      padding: 0.8rem 2rem;
      font-size: 1rem;
      font-weight: 600;
      border-radius: 50px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .load-more button:hover {
      background: #a45721;
    }
	
	
	
/* ---------- MOBILE OPTIMIZATION ---------- */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
  }

  .logo {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
  }

  nav a {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 60vh;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 0 5%;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .sector-grid, .grid, .case-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sector, .card, .case-card {
    padding: 1.2rem;
  }

  .silvature-about {
    min-height: 60vh;
    padding: 2rem 1rem;
    background-position: center center;
  }

  form {
    width: 100%;
    padding: 0 0.5rem;
  }

  input, textarea, button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }

  footer {
    font-size: 0.85rem;
    padding: 1.5rem 1rem;
  }

  .theme-toggle {
    font-size: 1.1rem;
  }

  .login-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}
